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(fdffffffffffffff) at in_delmulti+0x8d sys/netinet/in.c:914 in_purgeaddr(ffff800000b70800) at in_purgeaddr+0x156 sys/netinet/in.c:760 in_ifdetach(ffff800000af2800) at in_ifdetach+0x74 sys/netinet/in.c:971 if_detach(ffff800000af2800) at if_detach+0x140 sys/net/if.c:1032 tun_clone_destroy(ffff800000af2800) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:326 ifioctl(fffffd80794c9350,80206979,ffff800023f10c70,ffff800020e8eee8) at ifioctl+0x3ea sys/net/if.c:1821 soo_ioctl(fffffd8079532428,80206979,ffff800023f10c70,ffff800020e8eee8) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020e8eee8,ffff800023f10d88,ffff800023f10dd0) at sys_ioctl+0x4a5 syscall(ffff800023f10e50) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023f10e50) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdabc9675dd0, count: -10 ddb{0}> show registers rdi 0xffff800021edf000 rsi 0x29154 acpi_pdirpa+0x14fbc rbp 0xffff800023f109e0 rbx 0x8 rdx 0xffff800021edf000 rcx 0x29153 acpi_pdirpa+0x14fbb rax 0xffffffff823bf7bd in_delmulti+0x8d r8 0xffff800000b70800 r9 0xffffffff81e56833 rt_ifa_purge+0x153 r10 0x5 r11 0x3dd3eac361fd64bb r12 0 r13 0x3 r14 0xfdffffffffffffff r15 0x1 rip 0xffffffff823bf7bd in_delmulti+0x8d cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800023f10980 ss 0x10 in_delmulti+0x8d: movl 0xc(%r14),%r15d ddb{0}> show proc PROC (syz-executor.1) pid=463465 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=79, nice=20 forw=0xffffffffffffffff, list=0xffff800020e8e018,0xffffffff828cde18 process=0xffff800020eb2bd8 user=0xffff800023f0b000, vmspace=0xfffffd807effe730 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 2612 448398 80498 0 3 0x80 nanosleep syz-executor.1 * 2612 463465 80498 0 7 0x4000000 syz-executor.1 98613 395018 0 0 3 0x14200 bored sosplice 80498 143247 5336 0 2 0x2 syz-executor.1 90735 30767 5336 0 3 0x82 piperd syz-executor.0 5336 497277 62012 0 3 0x82 thrsleep syz-fuzzer 5336 336767 62012 0 3 0x4000082 nanosleep syz-fuzzer 5336 155251 62012 0 7 0x4000002 syz-fuzzer 5336 466021 62012 0 3 0x4000082 thrsleep syz-fuzzer 5336 163995 62012 0 3 0x4000082 kqread syz-fuzzer 5336 492806 62012 0 3 0x4000082 thrsleep syz-fuzzer 5336 393112 62012 0 3 0x4000082 thrsleep syz-fuzzer 5336 227873 62012 0 3 0x4000082 thrsleep syz-fuzzer 62012 429984 84898 0 3 0x10008a pause ksh 84898 26072 62672 0 3 0x92 select sshd 25653 83113 1 0 3 0x100083 ttyin getty 62672 161699 1 0 3 0x80 select sshd 23158 304851 66295 74 3 0x100092 bpf pflogd 66295 433322 1 0 3 0x80 netio pflogd 20435 97643 57455 73 3 0x100090 kqread syslogd 57455 200028 1 0 3 0x100082 netio syslogd 46330 404657 1 77 3 0x100090 poll dhclient 10411 175524 1 0 3 0x80 poll dhclient 20653 130188 0 0 3 0x14200 bored smr 28451 39597 0 0 3 0x14200 pgzero zerothread 49501 425582 0 0 3 0x14200 aiodoned aiodoned 59203 6967 0 0 3 0x14200 syncer update 15885 484287 0 0 3 0x14200 cleaner cleaner 26223 120877 0 0 3 0x14200 reaper reaper 5573 317620 0 0 3 0x14200 pgdaemon pagedaemon 38415 255630 0 0 3 0x14200 bored crynlk 24854 150758 0 0 3 0x14200 bored crypto 64640 314459 0 0 3 0x40014200 acpi0 acpi0 25393 395698 0 0 3 0x40014200 idle1 67059 432210 0 0 3 0x14200 bored softnet 83594 12859 0 0 2 0x14200 systqmp 59781 305572 0 0 3 0x14200 bored systq 37103 414673 0 0 3 0x40014200 bored softclock 26405 442920 0 0 3 0x40014200 idle0 1 229408 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 2612 (syz-executor.1) thread 0xffff800020e8eee8 (463465) exclusive rwlock netlock r = 0 (0xffffffff827713e0) #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:1010 #2 tun_clone_destroy+0x1e1 sys/net/if_tun.c:326 #3 ifioctl+0x3ea sys/net/if.c:1821 #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 (0xffffffff82933348) #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:311 #7 ifioctl+0x3ea sys/net/if.c:1821 #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 9495 6414K 7052K 78643K 11481 0 pcb 13 8K 8K 78643K 53 0 rtable 96 3K 4K 78643K 278 0 ifaddr 60 12K 13K 78643K 89 0 sysctl 2 0K 0K 78643K 2 0 counters 43 33K 34K 78643K 49 0 ioctlops 0 0K 4K 78643K 1754 0 iov 0 0K 16K 78643K 24 0 mount 1 1K 1K 78643K 1 0 vnodes 1224 77K 77K 78643K 1445 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 225 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 47 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 432 0 sigio 0 0K 0K 78643K 2 0 proc 61 63K 83K 78643K 454 0 subproc 32 2K 2K 78643K 34 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 20 0 in_multi 50 2K 3K 78643K 95 0 ether_multi 1 0K 0K 78643K 2 0 mrt 0 0K 0K 78643K 2 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 55 254K 254K 78643K 55 0 exec 0 0K 1K 78643K 226 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 154 25K 25K 78643K 2162 0 UVM aobj 131 10K 10K 78643K 131 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 12 0 NDP 9 0K 0K 78643K 18 0 temp 92 3867K 3931K 78643K 3250 0 kqueue 3 4K 10K 78643K 25 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 7 0 2 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 88 29 0 27 1 0 1 1 0 8 0 rtentry 112 62 0 24 2 0 2 2 0 8 0 unpcb 120 458 0 448 1 0 1 1 0 8 0 syncache 272 4 0 4 1 1 0 1 0 8 0 tcpqe 32 359 0 359 3 3 0 2 0 8 0 tcpcb 592 46 0 42 1 0 1 1 0 8 0 inpcb 296 987 0 976 4 2 2 2 0 8 1 rttmr 72 1 0 1 1 1 0 1 0 8 0 nd6 48 11 0 8 1 0 1 1 0 8 0 pkpcb 40 2 0 2 1 1 0 1 0 8 0 ppxss 1136 1 0 1 1 1 0 1 0 8 0 pffrag 232 3 0 1 2 1 1 1 0 482 0 pffrnode 88 3 0 1 2 1 1 1 0 8 0 pffrent 40 49 0 47 2 1 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 27 0 10 1 0 1 1 0 8 0 pfstkey 112 27 0 10 1 0 1 1 0 8 0 pfstate 328 27 0 10 2 0 2 2 0 8 0 pfrule 1360 22 0 17 2 1 1 2 0 8 0 art_heap8 4096 2 0 0 2 0 2 2 0 8 0 art_heap4 256 266 0 80 13 0 13 13 0 8 1 art_table 32 268 0 80 2 0 2 2 0 8 0 art_node 16 61 0 22 1 0 1 1 0 8 0 sysvmsgpl 40 14 0 12 1 0 1 1 0 8 0 semupl 112 2 0 2 1 1 0 1 0 8 0 semapl 112 45 0 35 1 0 1 1 0 8 0 shmpl 112 128 0 0 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1870 0 466 89 1 88 89 0 8 0 ffsino 272 1870 0 466 94 0 94 94 0 8 0 nchpl 144 2564 0 958 60 0 60 60 0 8 0 uvmvnodes 72 2125 0 0 39 0 39 39 0 8 0 vnodes 208 2125 0 0 112 0 112 112 0 8 0 namei 1024 6738 0 6738 2 1 1 1 0 8 1 percpumem 16 35 0 3 1 0 1 1 0 8 0 scxspl 200 7608 0 7608 10 8 2 7 0 8 2 plimitpl 152 27 0 19 1 0 1 1 0 8 0 sigapl 424 648 0 616 4 0 4 4 0 8 0 futexpl 56 7910 0 7910 2 1 1 1 0 8 1 knotepl 112 84 0 64 1 0 1 1 0 8 0 kqueuepl 152 225 0 223 1 0 1 1 0 8 0 pipepl 304 104 0 93 4 2 2 2 0 8 1 fdescpl 496 632 0 616 4 1 3 3 0 8 0 filepl 152 3766 0 3662 6 1 5 5 0 8 0 lockfpl 104 51 0 50 1 0 1 1 0 8 0 lockfspl 48 18 0 17 1 0 1 1 0 8 0 sessionpl 120 18 0 7 1 0 1 1 0 8 0 pgrppl 48 20 0 9 1 0 1 1 0 8 0 ucredpl 96 165 0 155 1 0 1 1 0 8 0 zombiepl 144 616 0 616 2 1 1 1 0 8 1 processpl 1008 648 0 616 5 0 5 5 0 8 0 procpl 632 1356 0 1316 4 0 4 4 0 8 0 srpgc 72 2 0 2 1 1 0 1 0 8 0 sosppl 144 5 0 5 2 2 0 1 0 8 0 sockpl 400 1476 0 1455 7 3 4 4 0 8 1 mcl64k 65536 7 0 0 1 0 1 1 0 8 0 mcl12k 12288 5 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 4 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 1 0 0 1 0 1 1 0 8 0 mcl2k 2048 332 0 0 41 0 41 41 0 8 0 mtagpl 96 16 0 0 1 0 1 1 0 8 0 mbufpl 256 344 0 0 21 0 21 21 0 8 0 bufpl 280 3867 0 127 268 0 268 268 0 8 0 anonpl 16 70308 0 51452 79 2 77 78 0 124 0 amapchunkpl 152 3096 0 2782 14 0 14 14 0 158 0 amappl16 192 2677 0 1793 45 0 45 45 0 8 0 amappl15 184 3 0 2 2 1 1 1 0 8 0 amappl14 176 381 0 376 1 0 1 1 0 8 0 amappl13 168 28 0 25 1 0 1 1 0 8 0 amappl12 160 23 0 18 1 0 1 1 0 8 0 amappl11 152 54 0 39 1 0 1 1 0 8 0 amappl10 144 21 0 19 1 0 1 1 0 8 0 amappl9 136 405 0 401 1 0 1 1 0 8 0 amappl8 128 356 0 324 2 0 2 2 0 8 0 amappl7 120 118 0 103 1 0 1 1 0 8 0 amappl6 112 31 0 26 1 0 1 1 0 8 0 amappl5 104 529 0 512 1 0 1 1 0 8 0 amappl4 96 484 0 455 1 0 1 1 0 8 0 amappl3 88 497 0 488 1 0 1 1 0 8 0 amappl2 80 4110 0 4043 2 0 2 2 0 8 0 amappl1 72 26591 0 26154 23 13 10 18 0 8 0 amappl 80 1652 0 1571 2 0 2 2 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 130 0 0 3 0 3 3 0 8 0 uaddrrnd 24 632 0 616 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 632 0 616 1 0 1 1 0 8 0 vmmpekpl 168 8309 0 8274 2 0 2 2 0 8 0 vmmpepl 168 86489 0 84410 122 29 93 115 0 357 2 vmsppl 368 631 0 616 2 0 2 2 0 8 0 pdppl 4096 1271 0 1232 6 0 6 6 0 8 0 pvpl 32 235760 0 213759 188 5 183 185 0 265 2 pmappl 232 631 0 616 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 288 0 9 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace in_delmulti(fdffffffffffffff) at in_delmulti+0x8d sys/netinet/in.c:914 in_purgeaddr(ffff800000b70800) at in_purgeaddr+0x156 sys/netinet/in.c:760 in_ifdetach(ffff800000af2800) at in_ifdetach+0x74 sys/netinet/in.c:971 if_detach(ffff800000af2800) at if_detach+0x140 sys/net/if.c:1032 tun_clone_destroy(ffff800000af2800) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:326 ifioctl(fffffd80794c9350,80206979,ffff800023f10c70,ffff800020e8eee8) at ifioctl+0x3ea sys/net/if.c:1821 soo_ioctl(fffffd8079532428,80206979,ffff800023f10c70,ffff800020e8eee8) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020e8eee8,ffff800023f10d88,ffff800023f10dd0) at sys_ioctl+0x4a5 syscall(ffff800023f10e50) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800023f10e50) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xdabc9675dd0, 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(ffffffff82933140) at __mp_lock+0x127 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82933140) at __mp_lock+0x127 sys/kern/kern_lock.c:147 userret(ffff8000ffffe010) at userret+0xed sys/kern/kern_sig.c:1872 intr_user_exit() at intr_user_exit+0x3c end of kernel end trace frame: 0xc000c1ae00, count: -6