login: kernel: protection fault trap, code=0 Stopped at in_delmulti+0x8d: movl 0xc(%r14),%r15d ddb{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic the kernel did not panic ddb{0}> trace in_delmulti(fffdfefffdffffff) at in_delmulti+0x8d sys/netinet/in.c:914 in_purgeaddr(ffff800000aa2900) at in_purgeaddr+0x156 sys/netinet/in.c:760 in_ifdetach(ffff800000ac6000) at in_ifdetach+0x74 sys/netinet/in.c:971 if_detach(ffff800000ac6000) at if_detach+0x140 sys/net/if.c:1142 tun_clone_destroy(ffff800000ac6000) at tun_clone_destroy+0x1f2 sys/net/if_tun.c:329 ifioctl(fffffd806f689af0,80206979,ffff800020ecc580,ffff800020dddad8) at ifioctl+0x3ea sys/net/if.c:1929 soo_ioctl(fffffd806cf57990,80206979,ffff800020ecc580,ffff800020dddad8) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020dddad8,ffff800020ecc698,ffff800020ecc6e0) at sys_ioctl+0x4a5 syscall(ffff800020ecc760) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020ecc760) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbd070, count: -10 ddb{0}> show registers rdi 0x2 rsi 0 rbp 0xffff800020ecc2f0 rbx 0 rdx 0x8b rcx 0x1 rax 0x1 r8 0xffffffff82293543 rt_ifa_purge+0x153 r9 0x5 r10 0x3 r11 0xf473c24d4db03d90 r12 0 r13 0x3 r14 0xfffdfefffdffffff r15 0x1 rip 0xffffffff81d45fed in_delmulti+0x8d cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800020ecc290 ss 0x10 in_delmulti+0x8d: movl 0xc(%r14),%r15d ddb{0}> show proc PROC (syz-executor.0) pid=370257 stat=onproc flags process=0 proc=0 pri=32, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020ddc9c8,0xffffffff82915f90 process=0xffff800020df1b30 user=0xffff800020ec7000, vmspace=0xfffffd807f0005c0 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND *80721 370257 29678 0 7 0 syz-executor.0 29678 96564 41442 0 7 0x2 syz-executor.0 41442 168209 30959 0 3 0x82 thrsleep syz-execprog 41442 248784 30959 0 3 0x4000082 thrsleep syz-execprog 41442 38260 30959 0 3 0x4000082 thrsleep syz-execprog 41442 444560 30959 0 3 0x4000082 thrsleep syz-execprog 41442 513365 30959 0 3 0x4000082 kqread syz-execprog 41442 39274 30959 0 3 0x4000082 thrsleep syz-execprog 41442 467192 30959 0 3 0x4000082 thrsleep syz-execprog 41442 361304 30959 0 3 0x4000082 thrsleep syz-execprog 30959 497630 18420 0 3 0x10008a pause ksh 18420 229419 62974 0 3 0x92 select sshd 52167 368176 1 0 3 0x100083 ttyin getty 62974 291407 1 0 3 0x80 select sshd 88889 270758 59138 74 3 0x100092 bpf pflogd 59138 284953 1 0 3 0x80 netio pflogd 35679 223941 20559 73 3 0x100090 kqread syslogd 20559 97339 1 0 3 0x100082 netio syslogd 99978 128203 1 77 2 0x100090 dhclient 85622 233586 1 0 3 0x80 poll dhclient 64770 153039 0 0 3 0x14200 bored smr 17231 210846 0 0 3 0x14200 pgzero zerothread 13837 321253 0 0 3 0x14200 aiodoned aiodoned 34896 432833 0 0 3 0x14200 syncer update 38392 625 0 0 3 0x14200 cleaner cleaner 31847 383614 0 0 3 0x14200 reaper reaper 65674 22718 0 0 3 0x14200 pgdaemon pagedaemon 19543 185778 0 0 3 0x14200 bored crynlk 71631 486045 0 0 3 0x14200 bored crypto 58177 288669 0 0 3 0x40014200 acpi0 acpi0 88497 323832 0 0 3 0x40014200 idle1 52250 423219 0 0 3 0x14200 bored softnet 52126 58217 0 0 2 0x14200 systqmp 28036 335027 0 0 3 0x14200 bored systq 41046 108008 0 0 3 0x40014200 bored softclock 3597 455394 0 0 3 0x40014200 idle0 1 21660 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 80721 (syz-executor.0) thread 0xffff800020dddad8 (370257) exclusive rwlock netlock r = 0 (0xffffffff82728958) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 if_detach+0x70 sys/net/if.c:1120 #2 tun_clone_destroy+0x1f2 sys/net/if_tun.c:329 #3 ifioctl+0x3ea sys/net/if.c:1929 #4 soo_ioctl+0x27c sys/kern/sys_socket.c:138 #5 sys_ioctl+0x4a5 #6 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #6 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #7 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff828eb278) #0 witness_lock+0x4c7 stacktrace_save sys/sys/stacktrace.h:36 [inline] #0 witness_lock+0x4c7 sys/kern/subr_witness.c:1164 #1 __mp_acquire_count+0x51 sys/kern/kern_lock.c:227 #2 mi_switch+0x392 sys/kern/sched_bsd.c:435 #3 sleep_finish+0x113 sys/kern/kern_synch.c:418 #4 cond_wait+0x76 sys/kern/kern_synch.c:907 #5 smr_barrier_impl+0xf9 sys/kern/kern_smr.c:271 #6 tun_clone_destroy+0x136 sys/net/if_tun.c:312 #7 ifioctl+0x3ea sys/net/if.c:1929 #8 soo_ioctl+0x27c sys/kern/sys_socket.c:138 #9 sys_ioctl+0x4a5 #10 syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] #10 syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 #11 Xsyscall+0x128 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 9465 6396K 6396K 78643K 10560 0 pcb 13 8K 8K 78643K 13 0 rtable 75 2K 2K 78643K 165 0 ifaddr 37 9K 9K 78643K 39 0 counters 41 33K 33K 78643K 41 0 ioctlops 0 0K 4K 78643K 1468 0 mount 1 1K 1K 78643K 1 0 vnodes 1182 74K 75K 78643K 1188 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 1K 78643K 2 0 VM map 2 1K 1K 78643K 2 0 sem 2 0K 0K 78643K 2 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 3 8K 12K 78643K 18 0 proc 59 63K 83K 78643K 398 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 in_multi 25 1K 1K 78643K 26 0 ether_multi 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 19 95K 95K 78643K 19 0 exec 0 0K 1K 78643K 197 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 7 26K 26K 78643K 7 0 UVM amap 75 12K 12K 78643K 946 0 UVM aobj 3 2K 2K 78643K 3 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 NDP 7 0K 0K 78643K 7 0 temp 29 3853K 3917K 78643K 1874 0 kqueue 3 4K 4K 78643K 3 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 4 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 17 0 15 1 0 1 1 0 8 0 rtentry 112 34 0 5 1 0 1 1 0 8 0 unpcb 120 29 0 19 1 0 1 1 0 8 0 syncache 264 5 0 5 2 1 1 1 0 8 1 tcpcb 544 9 0 5 1 0 1 1 0 8 0 inpcb 296 35 0 27 1 0 1 1 0 8 0 nd6 48 3 0 0 1 0 1 1 0 8 0 pfosfp 40 846 0 423 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfstitem 24 11 0 1 1 0 1 1 0 8 0 pfstkey 112 11 0 1 1 0 1 1 0 8 0 pfstate 328 11 0 1 1 0 1 1 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 145 0 0 10 0 10 10 0 8 0 art_table 32 146 0 0 2 0 2 2 0 8 0 art_node 16 33 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1424 0 23 88 0 88 88 0 8 0 ffsino 272 1424 0 23 94 0 94 94 0 8 0 nchpl 144 1643 0 38 60 0 60 60 0 8 0 uvmvnodes 72 1434 0 0 27 0 27 27 0 8 0 vnodes 208 1434 0 0 76 0 76 76 0 8 0 namei 1024 4230 0 4230 2 1 1 1 0 8 1 percpumem 16 31 0 0 1 0 1 1 0 8 0 scxspl 192 4661 0 4661 9 3 6 7 0 8 6 plimitpl 152 15 0 8 1 0 1 1 0 8 0 sigapl 424 241 0 211 4 0 4 4 0 8 0 knotepl 112 47 0 36 1 0 1 1 0 8 0 kqueuepl 144 2 0 0 1 0 1 1 0 8 0 pipepl 304 77 0 70 2 1 1 1 0 8 0 fdescpl 496 226 0 211 3 0 3 3 0 8 0 filepl 152 1117 0 1057 3 0 3 3 0 8 0 lockfpl 104 5 0 4 1 0 1 1 0 8 0 lockfspl 48 3 0 2 1 0 1 1 0 8 0 sessionpl 112 19 0 9 1 0 1 1 0 8 0 pgrppl 48 19 0 9 1 0 1 1 0 8 0 ucredpl 96 62 0 53 1 0 1 1 0 8 0 zombiepl 144 211 0 211 2 1 1 1 0 8 1 processpl 992 241 0 211 5 0 5 5 0 8 1 procpl 624 248 0 211 3 0 3 3 0 8 0 srpgc 64 2 0 2 1 0 1 1 0 8 1 sockpl 400 81 0 61 2 0 2 2 0 8 0 mcl4k 4096 2 0 0 1 0 1 1 0 8 0 mcl2k 2048 74 0 0 10 0 10 10 0 8 0 mtagpl 96 1 0 0 1 0 1 1 0 8 0 mbufpl 256 108 0 0 6 0 6 6 0 8 0 bufpl 280 3050 0 133 209 0 209 209 0 8 0 anonpl 16 22339 0 20682 14 2 12 12 0 124 3 amapchunkpl 152 792 0 725 5 0 5 5 0 158 2 amappl16 192 151 0 118 2 0 2 2 0 8 0 amappl15 184 3 0 0 1 0 1 1 0 8 0 amappl14 176 30 0 26 1 0 1 1 0 8 0 amappl13 168 23 0 21 2 1 1 1 0 8 0 amappl12 160 7 0 4 2 1 1 1 0 8 0 amappl11 152 52 0 37 1 0 1 1 0 8 0 amappl10 144 17 0 14 1 0 1 1 0 8 0 amappl9 136 235 0 233 1 0 1 1 0 8 0 amappl8 128 271 0 263 1 0 1 1 0 8 0 amappl7 120 116 0 103 1 0 1 1 0 8 0 amappl6 112 21 0 19 2 1 1 1 0 8 0 amappl5 104 124 0 109 1 0 1 1 0 8 0 amappl4 96 497 0 471 1 0 1 1 0 8 0 amappl3 88 105 0 100 1 0 1 1 0 8 0 amappl2 80 915 0 855 3 1 2 2 0 8 0 amappl1 72 15392 0 14965 23 5 18 18 0 8 8 amappl 80 476 0 447 1 0 1 1 0 84 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma128 128 253 0 253 1 1 0 1 0 8 0 dma64 64 6 0 6 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 18 0 17 1 0 1 1 0 8 0 aobjpl 64 2 0 0 1 0 1 1 0 8 0 uaddrrnd 24 226 0 211 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 226 0 211 1 0 1 1 0 8 0 vmmpekpl 168 6398 0 6370 2 0 2 2 0 8 0 vmmpepl 168 32942 0 31977 84 11 73 73 0 357 30 vmsppl 368 225 0 211 2 0 2 2 0 8 0 pdppl 4096 459 0 422 6 0 6 6 0 8 1 pvpl 32 113819 0 109739 110 6 104 104 0 265 68 pmappl 232 225 0 211 1 0 1 1 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 233 0 4 7 0 7 7 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace in_delmulti(fffdfefffdffffff) at in_delmulti+0x8d sys/netinet/in.c:914 in_purgeaddr(ffff800000aa2900) at in_purgeaddr+0x156 sys/netinet/in.c:760 in_ifdetach(ffff800000ac6000) at in_ifdetach+0x74 sys/netinet/in.c:971 if_detach(ffff800000ac6000) at if_detach+0x140 sys/net/if.c:1142 tun_clone_destroy(ffff800000ac6000) at tun_clone_destroy+0x1f2 sys/net/if_tun.c:329 ifioctl(fffffd806f689af0,80206979,ffff800020ecc580,ffff800020dddad8) at ifioctl+0x3ea sys/net/if.c:1929 soo_ioctl(fffffd806cf57990,80206979,ffff800020ecc580,ffff800020dddad8) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020dddad8,ffff800020ecc698,ffff800020ecc6e0) at sys_ioctl+0x4a5 syscall(ffff800020ecc760) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800020ecc760) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbd070, count: -10 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp ddb{1}> trace x86_ipi_db(ffff800020d70ff0) at x86_ipi_db+0x1a sys/arch/amd64/amd64/db_interface.c:352 x86_ipi_handler() at x86_ipi_handler+0xc6 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x23 __mp_lock(ffffffff828eb070) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff828eb070) at __mp_lock+0x127 sys/kern/kern_lock.c:147 syscall(ffff800020ed42c0) at syscall+0x400 mi_syscall sys/sys/syscall_mi.h:93 [inline] syscall(ffff800020ed42c0) at syscall+0x400 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffbd190, count: -6 ddb{1}>