Page MenuHomeFreeBSD

if_clone: migrate some consumers to the new KPI
ClosedPublic

Authored by melifaro on Sep 20 2022, 2:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jan 27, 4:32 PM
Unknown Object (File)
Mon, Jan 27, 3:38 PM
Unknown Object (File)
Dec 11 2024, 11:46 PM
Unknown Object (File)
Dec 5 2024, 10:24 PM
Unknown Object (File)
Nov 14 2024, 6:58 PM
Unknown Object (File)
Oct 30 2024, 2:20 AM
Unknown Object (File)
Sep 24 2024, 3:58 AM
Unknown Object (File)
Sep 21 2024, 9:32 AM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 47459
Build 44346: arc lint + arc unit

Event Timeline

LGTM, at least for bridge, epair, ovpn, vlan and pflog.

stf panics during its test.

sys/net/if_stf.c
310

I think we're forgetting *ifpp = ifp; here.

I see this panic:

login: panic: Assertion *ifpp != NULL failed at /usr/src/sys/net/if_clone.c:263
cpuid = 10
time = 1663762123
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe015f2eea20
vpanic() at vpanic+0x151/frame 0xfffffe015f2eea70
panic() at panic+0x43/frame 0xfffffe015f2eead0
if_clone_createif() at if_clone_createif+0x24e/frame 0xfffffe015f2eeb20
ifc_create_ifp() at ifc_create_ifp+0xe2/frame 0xfffffe015f2eeb80
if_clone_create() at if_clone_create+0x34/frame 0xfffffe015f2eebd0
ifioctl() at ifioctl+0x92b/frame 0xfffffe015f2eecc0
kern_ioctl() at kern_ioctl+0x202/frame 0xfffffe015f2eed30
sys_ioctl() at sys_ioctl+0x12a/frame 0xfffffe015f2eee00
amd64_syscall() at amd64_syscall+0x12e/frame 0xfffffe015f2eef30
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe015f2eef30
--- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x3336352ab7aa, rsp = 0x33362fd09528, rbp = 0x33362fd09540 ---
KDB: enter: panic
This revision was not accepted when it landed; it landed in state Needs Review.Sep 22 2022, 12:32 PM
This revision was automatically updated to reflect the committed changes.
melifaro added inline comments.
sys/net/if_stf.c
310

Indeed, thank you!