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(fbdfffffffdfffff) at in_delmulti+0x8d sys/netinet/in.c:914 in_purgeaddr(ffff800000af9400) at in_purgeaddr+0x156 sys/netinet/in.c:760 in_ifdetach(ffff800000b34800) at in_ifdetach+0x74 sys/netinet/in.c:971 if_detach(ffff800000b34800) at if_detach+0x140 sys/net/if.c:1032 tun_clone_destroy(ffff800000b34800) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:326 ifioctl(fffffd806c94d970,80206979,ffff800021ef7f90,ffff800020eb2780) at ifioctl+0x3ea sys/net/if.c:1821 soo_ioctl(fffffd8067e6f3a8,80206979,ffff800021ef7f90,ffff800020eb2780) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020eb2780,ffff800021ef80a8,ffff800021ef80f0) at sys_ioctl+0x4a5 syscall(ffff800021ef8170) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021ef8170) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xba0b850cf40, count: -10 ddb{0}> show registers rdi 0xffff8000230fd000 rsi 0x1be5c acpi_pdirpa+0x7cc4 rbp 0xffff800021ef7d00 rbx 0 rdx 0xffff8000230fd000 rcx 0x1be5b acpi_pdirpa+0x7cc3 rax 0xffffffff823bf7bd in_delmulti+0x8d r8 0xffff800000af9400 r9 0xffffffff81e56833 rt_ifa_purge+0x153 r10 0x5 r11 0x4ecd9ed828fb7da r12 0 r13 0x3 r14 0xfbdfffffffdfffff r15 0x1 rip 0xffffffff823bf7bd in_delmulti+0x8d cs 0x8 rflags 0x10246 __ALIGN_SIZE+0xf246 rsp 0xffff800021ef7ca0 ss 0x10 in_delmulti+0x8d: movl 0xc(%r14),%r15d ddb{0}> show proc PROC (syz-executor.1) pid=394035 stat=onproc flags process=0 proc=4000000 pri=32, usrpri=77, nice=20 forw=0xffffffffffffffff, list=0xffff800020eb2290,0xffffffff828cde18 process=0xffff800020eb4bd8 user=0xffff800021ef3000, vmspace=0xfffffd807effea10 estcpu=36, cpticks=0, pctcpu=0.0 user=0, sys=0, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 40148 74964 30977 0 3 0x80 nanosleep syz-executor.1 *40148 394035 30977 0 7 0x4000000 syz-executor.1 21179 375637 0 0 3 0x14200 bored sosplice 30977 339435 27206 0 2 0x2 syz-executor.1 41231 51646 27206 0 3 0x82 piperd syz-executor.0 27206 514779 64035 0 3 0x82 thrsleep syz-fuzzer 27206 278823 64035 0 3 0x4000082 nanosleep syz-fuzzer 27206 179085 64035 0 3 0x4000082 kqread syz-fuzzer 27206 340863 64035 0 7 0x4000002 syz-fuzzer 27206 237293 64035 0 3 0x4000082 thrsleep syz-fuzzer 27206 72272 64035 0 3 0x4000082 thrsleep syz-fuzzer 27206 234762 64035 0 3 0x4000082 thrsleep syz-fuzzer 27206 239058 64035 0 3 0x4000082 thrsleep syz-fuzzer 64035 510812 76637 0 3 0x10008a pause ksh 76637 214247 24670 0 3 0x92 select sshd 70047 443911 1 0 3 0x100083 ttyin getty 24670 90689 1 0 3 0x80 select sshd 74459 375223 50388 74 3 0x100092 bpf pflogd 50388 349055 1 0 3 0x80 netio pflogd 88649 246139 68399 73 3 0x100090 kqread syslogd 68399 15533 1 0 3 0x100082 netio syslogd 46091 421356 1 77 2 0x100090 dhclient 44363 318411 1 0 3 0x80 poll dhclient 13170 223034 0 0 3 0x14200 bored smr 19750 433174 0 0 3 0x14200 pgzero zerothread 31474 401193 0 0 3 0x14200 aiodoned aiodoned 66400 223306 0 0 3 0x14200 syncer update 54971 360381 0 0 3 0x14200 cleaner cleaner 70517 401296 0 0 3 0x14200 reaper reaper 53479 22751 0 0 3 0x14200 pgdaemon pagedaemon 67116 168646 0 0 3 0x14200 bored crynlk 65749 373307 0 0 3 0x14200 bored crypto 10629 48434 0 0 3 0x40014200 acpi0 acpi0 79557 71008 0 0 3 0x40014200 idle1 93716 152706 0 0 3 0x14200 bored softnet 41655 247949 0 0 2 0x14200 systqmp 17970 30177 0 0 3 0x14200 bored systq 83516 519321 0 0 3 0x40014200 bored softclock 2542 419508 0 0 3 0x40014200 idle0 1 162499 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 40148 (syz-executor.1) thread 0xffff800020eb2780 (394035) 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 9494 6414K 7186K 78643K 11991 0 pcb 13 8K 8K 78643K 63 0 rtable 105 9K 13K 78643K 546 0 ifaddr 68 15K 16K 78643K 164 0 counters 43 33K 34K 78643K 65 0 ioctlops 0 0K 4K 78643K 1561 0 iov 0 0K 24K 78643K 40 0 mount 1 1K 1K 78643K 1 0 vnodes 1229 77K 78K 78643K 1592 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 6 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 47 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1824 197K 290K 78643K 13058 0 file desc 5 13K 25K 78643K 469 0 sigio 0 0K 0K 78643K 22 0 proc 62 63K 95K 78643K 535 0 subproc 32 2K 2K 78643K 51 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 43 0 in_multi 44 2K 2K 78643K 115 0 ether_multi 1 0K 0K 78643K 7 0 mrt 0 0K 0K 78643K 5 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 262 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 182 30K 34K 78643K 2464 0 UVM aobj 22 2K 2K 78643K 25 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 100 0 NDP 9 0K 0K 78643K 33 0 temp 100 3866K 3930K 78643K 4521 0 kqueue 3 4K 16K 78643K 207 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 9 0 4 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 88 46 0 44 1 0 1 1 0 8 0 rtentry 112 76 0 46 2 0 2 2 0 8 0 unpcb 120 167 0 157 1 0 1 1 0 8 0 syncache 272 8 0 8 3 2 1 1 0 8 1 tcpqe 32 121 0 121 1 1 0 1 0 8 0 tcpcb 592 135 0 119 2 0 2 2 0 8 0 inpcb 296 647 0 638 3 1 2 2 0 8 1 rttmr 72 2 0 2 2 2 0 1 0 8 0 nd6 48 19 0 14 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 0 1 0 1 1 0 482 0 pffrnode 88 2 0 0 1 0 1 1 0 8 0 pffrent 40 4 0 1 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 pfrktable 1344 69 0 58 3 1 2 2 0 8 1 pfstitem 24 14 0 7 1 0 1 1 0 8 0 pfstkey 112 14 0 7 1 0 1 1 0 8 0 pfstate 328 14 0 7 2 1 1 2 0 8 0 pfrule 1360 34 0 24 2 1 1 2 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 264 0 125 13 1 12 13 0 8 0 art_table 32 265 0 125 2 0 2 2 0 8 0 art_node 16 75 0 46 1 0 1 1 0 8 0 sysvmsgpl 40 4 0 0 1 0 1 1 0 8 0 semupl 112 6 0 6 1 1 0 1 0 8 0 semapl 112 35 0 25 1 0 1 1 0 8 0 shmpl 112 22 0 3 1 0 1 1 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 1960 0 559 89 1 88 89 0 8 0 ffsino 272 1960 0 559 94 0 94 94 0 8 0 nchpl 144 2796 0 1214 60 0 60 60 0 8 0 uvmvnodes 72 2331 0 0 43 0 43 43 0 8 0 vnodes 208 2331 0 0 123 0 123 123 0 8 0 namei 1024 8066 0 8066 1 0 1 1 0 8 1 percpumem 16 43 0 11 1 0 1 1 0 8 0 pfiaddrpl 120 25 0 15 1 0 1 1 0 8 0 scxspl 200 8153 0 8153 8 7 1 7 0 8 1 plimitpl 152 35 0 27 1 0 1 1 0 8 0 sigapl 424 682 0 650 4 0 4 4 0 8 0 futexpl 56 7916 0 7916 1 0 1 1 0 8 1 knotepl 112 369 0 349 1 0 1 1 0 8 0 kqueuepl 152 301 0 299 1 0 1 1 0 8 0 pipepl 304 142 0 131 2 0 2 2 0 8 0 fdescpl 496 666 0 650 3 0 3 3 0 8 0 filepl 152 4108 0 4002 5 0 5 5 0 8 0 lockfpl 104 93 0 92 1 0 1 1 0 8 0 lockfspl 48 28 0 27 1 0 1 1 0 8 0 sessionpl 120 19 0 8 1 0 1 1 0 8 0 pgrppl 48 29 0 18 1 0 1 1 0 8 0 ucredpl 96 310 0 301 1 0 1 1 0 8 0 zombiepl 144 650 0 650 1 0 1 1 0 8 1 processpl 1008 682 0 650 5 0 5 5 0 8 0 procpl 632 1590 0 1550 4 0 4 4 0 8 0 sosppl 144 4 0 4 3 2 1 1 0 8 1 sockpl 400 862 0 841 3 0 3 3 0 8 0 mcl64k 65536 6 0 0 1 0 1 1 0 8 0 mcl16k 16384 2 0 0 1 0 1 1 0 8 0 mcl12k 12288 4 0 0 1 0 1 1 0 8 0 mcl9k 9216 2 0 0 1 0 1 1 0 8 0 mcl8k 8192 6 0 0 1 0 1 1 0 8 0 mcl4k 4096 6 0 0 1 0 1 1 0 8 0 mcl2k2 2112 3 0 0 1 0 1 1 0 8 0 mcl2k 2048 184 0 0 22 0 22 22 0 8 0 mtagpl 96 176 0 0 5 0 5 5 0 8 0 mbufpl 256 470 0 0 28 0 28 28 0 8 0 bufpl 280 4064 0 133 281 0 281 281 0 8 0 anonpl 16 87969 0 69659 96 15 81 88 0 124 7 amapchunkpl 152 4326 0 4010 28 1 27 27 0 158 13 amappl16 192 3208 0 2381 54 12 42 53 0 8 0 amappl15 184 55 0 53 1 0 1 1 0 8 0 amappl14 176 3 0 0 1 0 1 1 0 8 0 amappl13 168 35 0 32 1 0 1 1 0 8 0 amappl12 160 22 0 17 1 0 1 1 0 8 0 amappl11 152 61 0 45 1 0 1 1 0 8 0 amappl10 144 69 0 64 1 0 1 1 0 8 0 amappl9 136 736 0 732 1 0 1 1 0 8 0 amappl8 128 405 0 346 3 1 2 3 0 8 0 amappl7 120 142 0 129 1 0 1 1 0 8 0 amappl6 112 38 0 28 1 0 1 1 0 8 0 amappl5 104 562 0 545 1 0 1 1 0 8 0 amappl4 96 507 0 478 1 0 1 1 0 8 0 amappl3 88 122 0 114 1 0 1 1 0 8 0 amappl2 80 4368 0 4295 2 0 2 2 0 8 0 amappl1 72 29162 0 28713 23 12 11 18 0 8 0 amappl 80 1905 0 1816 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 24 0 3 1 0 1 1 0 8 0 uaddrrnd 24 666 0 650 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 666 0 650 1 0 1 1 0 8 0 vmmpekpl 168 9192 0 9158 2 0 2 2 0 8 0 vmmpepl 168 92521 0 90445 127 34 93 125 0 357 0 vmsppl 368 665 0 650 2 0 2 2 0 8 0 pdppl 4096 1339 0 1300 6 1 5 6 0 8 0 pvpl 32 267417 0 245900 210 17 193 206 0 265 19 pmappl 232 665 0 650 2 1 1 2 0 8 0 extentpl 40 53 0 36 1 0 1 1 0 8 0 phpool 112 273 0 8 8 0 8 8 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace in_delmulti(fbdfffffffdfffff) at in_delmulti+0x8d sys/netinet/in.c:914 in_purgeaddr(ffff800000af9400) at in_purgeaddr+0x156 sys/netinet/in.c:760 in_ifdetach(ffff800000b34800) at in_ifdetach+0x74 sys/netinet/in.c:971 if_detach(ffff800000b34800) at if_detach+0x140 sys/net/if.c:1032 tun_clone_destroy(ffff800000b34800) at tun_clone_destroy+0x1e1 sys/net/if_tun.c:326 ifioctl(fffffd806c94d970,80206979,ffff800021ef7f90,ffff800020eb2780) at ifioctl+0x3ea sys/net/if.c:1821 soo_ioctl(fffffd8067e6f3a8,80206979,ffff800021ef7f90,ffff800020eb2780) at soo_ioctl+0x27c sys/kern/sys_socket.c:138 sys_ioctl(ffff800020eb2780,ffff800021ef80a8,ffff800021ef80f0) at sys_ioctl+0x4a5 syscall(ffff800021ef8170) at syscall+0x4a4 mi_syscall sys/sys/syscall_mi.h:102 [inline] syscall(ffff800021ef8170) at syscall+0x4a4 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xba0b850cf40, 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 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0x16 sys/dev/kcov.c:112 syscall(ffff800020e841f0) at syscall+0x400 mi_syscall sys/sys/syscall_mi.h:93 [inline] syscall(ffff800020e841f0) at syscall+0x400 sys/arch/amd64/amd64/trap.c:570 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0xc000a046e8, count: -6