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)
Thu, May 2, 2:38 PM
Unknown Object (File)
Mar 28 2024, 4:28 PM
Unknown Object (File)
Feb 10 2024, 6:37 PM
Unknown Object (File)
Dec 20 2023, 7:28 AM
Unknown Object (File)
Sep 5 2023, 12:31 PM
Unknown Object (File)
Aug 31 2023, 11:37 AM
Unknown Object (File)
Aug 31 2023, 11:33 AM
Unknown Object (File)
Aug 31 2023, 11:23 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!