panic: kernel diagnostic assertion "ifp != NULL" failed: file "/syzkaller/managers/setuid/kernel/sys/netinet/if_ether.c", line 759 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *427673 34354 0 0x14000 0x200 1 softclockmp 345014 64755 0 0x14000 0x40000200 0 softclock db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827ac3d6) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82828375,ffffffff82872898,2f7,ffffffff82774d9d) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd806602acc0) at arptfree+0x132 sys/netinet/if_ether.c:759 arptimer(ffffffff82c96ee8) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82c96ee8) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread_mp(ffff800021158d48) at softclock_thread_mp+0xc4 sys/kern/kern_timeout.c:833 end trace frame: 0x0, count: 8 https://www.openbsd.org/ddb.html describes the minimum info required in bug reports. Insufficient info makes it difficult to find and fix bugs. ddb{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: kernel diagnostic assertion "ifp != NULL" failed: file "/syzkaller/managers/setuid/kernel/sys/netinet/if_ether.c", line 759 ddb{1}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827ac3d6) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82828375,ffffffff82872898,2f7,ffffffff82774d9d) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd806602acc0) at arptfree+0x132 sys/netinet/if_ether.c:759 arptimer(ffffffff82c96ee8) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82c96ee8) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread_mp(ffff800021158d48) at softclock_thread_mp+0xc4 sys/kern/kern_timeout.c:833 end trace frame: 0x0, count: -7 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002116b7d0 rbx 0xffff800020d49ba7 rdx 0 rcx 0xffff800021158d48 rax 0xffff800020d48ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xf16bffa7b5253e80 r11 0x8b23975e87b1c978 r12 0xffff800020d499a8 r13 0 r14 0 r15 0x1 rip 0xffffffff819efd8c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002116b7c0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{1}> show proc PROC (softclockmp) tid=427673 pid=34354 tcnt=1 stat=onproc flags process=14000 proc=200 runpri=0, usrpri=50, slppri=0, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff800021159540,0xffff800021158ab0 process=0xffff8000ffffdd50 user=0xffff800021166000, vmspace=0xffffffff82d91e40 estcpu=0, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 18582 55268 68317 32767 2 0x490 syz-executor.7 18582 39269 68317 32767 3 0x4000090 fsleep syz-executor.7 18582 364606 68317 32767 3 0x4000090 tunread syz-executor.7 25317 77142 41384 32767 3 0x90 piperd syz-executor.4 41384 59065 67610 0 3 0x82 wait syz-executor.4 91814 352628 67610 0 3 0x82 wait syz-executor.0 9035 240257 23858 32767 3 0x90 piperd syz-executor.6 23858 57066 67610 0 3 0x82 wait syz-executor.6 43031 436940 22089 32767 3 0x90 piperd syz-executor.3 22089 89489 67610 0 3 0x82 wait syz-executor.3 77660 146691 72132 32767 3 0x90 piperd syz-executor.2 72132 408459 67610 0 3 0x82 wait syz-executor.2 39804 5602 53082 32767 3 0x90 piperd syz-executor.1 53082 456294 67610 0 3 0x82 wait syz-executor.1 45566 162583 34739 32767 3 0x90 piperd syz-executor.5 34739 233903 67610 0 3 0x82 wait syz-executor.5 68317 215461 96287 32767 2 0x490 syz-executor.7 96287 358307 67610 0 3 0x82 wait syz-executor.7 62996 45006 0 0 3 0x14200 bored sosplice 67610 521108 65709 0 3 0x2000082 thrsleep syz-fuzzer 67610 273114 65709 0 3 0x6000082 thrsleep syz-fuzzer 67610 231297 65709 0 3 0x6000082 thrsleep syz-fuzzer 67610 265932 65709 0 3 0x6000082 thrsleep syz-fuzzer 67610 400289 65709 0 3 0x6000082 wait syz-fuzzer 67610 354789 65709 0 3 0x6000082 wait syz-fuzzer 67610 462585 65709 0 3 0x6000082 wait syz-fuzzer 67610 361433 65709 0 3 0x6000082 wait syz-fuzzer 67610 218444 65709 0 3 0x6000082 wait syz-fuzzer 67610 478004 65709 0 3 0x6000082 thrsleep syz-fuzzer 67610 360448 65709 0 3 0x6000082 wait syz-fuzzer 67610 401068 65709 0 3 0x6000082 wait syz-fuzzer 67610 126693 65709 0 3 0x6000082 wait syz-fuzzer 67610 11641 65709 0 3 0x6000082 kqread syz-fuzzer 67610 38208 65709 0 3 0x6000082 thrsleep syz-fuzzer 67610 119307 65709 0 3 0x6000082 thrsleep syz-fuzzer 65709 350296 20941 0 3 0x10008a sigsusp ksh 20941 368007 98624 0 3 0x9a kqread sshd 70685 148916 1 0 3 0x100083 ttyin getty 98624 331101 1 0 3 0x88 kqread sshd 26961 81745 96918 73 3 0x1100090 kqread syslogd 96918 277726 1 0 3 0x100082 netio syslogd 5007 305806 1 0 3 0x100080 kqread resolvd 97570 383288 76761 77 3 0x100092 kqread dhcpleased 46280 53733 76761 77 3 0x100092 kqread dhcpleased 76761 474881 1 0 3 0x80 kqread dhcpleased 15784 13191 0 0 2 0x14200 smr 73402 53124 0 0 3 0x14200 pgzero zerothread 28566 380887 0 0 3 0x14200 aiodoned aiodoned 40933 399945 0 0 2 0x14600 update 78554 110403 0 0 3 0x14200 cleaner cleaner 70999 38890 0 0 3 0x14200 reaper reaper 95986 168440 0 0 3 0x14200 pgdaemon pagedaemon 50517 362443 0 0 3 0x14200 bored viomb 95762 442935 0 0 3 0x40014200 acpi0 acpi0 39652 477090 0 0 3 0x40014200 idle1 53160 273244 0 0 3 0x14200 bored softnet3 18235 119332 0 0 3 0x14200 bored softnet2 22290 447806 0 0 3 0x14200 bored softnet1 30173 147433 0 0 3 0x14200 bored softnet0 12726 139480 0 0 3 0x14200 bored systqmp 15396 17875 0 0 3 0x14200 bored systq *34354 427673 0 0 7 0x14200 softclockmp 64755 345014 0 0 7 0x40014200 softclock 67304 76895 0 0 3 0x40014200 idle0 1 393459 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 34354 (softclockmp) thread 0xffff800021158d48 (427673) exclusive rwlock netlock r = 0 (0xffffffff82bcb910) #0 witness_lock+0x447 #1 rw_enter+0x3c8 sys/kern/kern_rwlock.c:309 #2 arptimer+0x26 sys/netinet/if_ether.c:132 #3 timeout_run+0xd0 sys/kern/kern_timeout.c:665 #4 softclock_thread_mp+0xc4 sys/kern/kern_timeout.c:833 #5 proc_trampoline+0x10 shared rwlock timeout r = 0 (0xffffffff82b879f8) #0 witness_lock+0x447 #1 timeout_run+0xbb sys/kern/kern_timeout.c:661 #2 softclock_thread_mp+0xc4 sys/kern/kern_timeout.c:833 #3 proc_trampoline+0x10 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10219 6413K 6420K 78643K 11719 0 pcb 13 20K 24K 78643K 21 0 rtable 246 7K 7K 78643K 6577 0 pf 29 8K 8K 78643K 309 0 ifaddr 44 17K 18K 78643K 614 0 ifgroup 50 2K 2K 78643K 610 0 sysctl 4 1K 3K 78643K 25 0 counters 60 35K 35K 78643K 340 0 ioctlops 0 0K 2K 78643K 906 0 iov 0 0K 32K 78643K 6221 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 8634 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 13K 78643K 538 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 1K 78643K 4964 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 19 69K 109K 78643K 40733 0 sigio 0 0K 0K 78643K 595 0 proc 56 78K 103K 78643K 6509 0 subproc 104 6K 6K 78643K 1924 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 2484 0 in_multi 99 7K 7K 78643K 1948 0 ether_multi 1 0K 0K 78643K 55 0 mrt 1 0K 0K 78643K 1 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 253 1129K 1129K 78643K 253 0 exec 0 0K 1K 78643K 6793 0 tdb 3 0K 0K 78643K 3 0 pagedep 1 8K 8K 78643K 1 0 inodedep 1 32K 32K 78643K 1 0 newblk 1 0K 0K 78643K 1 0 VM swap 8 62K 64K 78643K 10 0 UVM amap 443 92K 120K 78643K 400492 0 UVM aobj 131 6K 6K 78643K 140 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 1K 78643K 14328 0 NDP 11 0K 2K 78643K 447 0 temp 74 5920K 6048K 78643K 107650 0 kqueue 12 18K 31K 78643K 3051 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle plcache 128 22 0 0 1 0 1 1 0 8 0 rtpcb 120 3096 0 3093 36 35 1 5 0 8 0 rtentry 112 1716 0 1600 4 0 4 4 0 8 0 unpcb 144 21741 0 21728 252 251 1 10 0 8 0 syncache 312 432 0 432 85 84 1 1 0 8 1 sackhl 24 3 0 3 3 3 0 1 0 8 0 tcpqe 32 804 0 804 64 63 1 2 0 8 1 tcpcb 808 55478 0 55432 638 623 15 24 0 8 8 arp 120 312 0 293 1 0 1 1 0 8 0 ipq 40 95 0 94 19 18 1 1 0 8 0 ipqe 40 429 0 428 19 18 1 1 0 8 0 inpcb 368 71168 0 71119 647 633 14 30 0 8 4 nd6 136 495 0 466 3 1 2 2 0 8 0 kcovpl 48 148 0 140 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 6800 0 6331 35 5 30 31 0 8 0 art_table 32 6801 0 6331 4 0 4 4 0 8 0 art_node 16 1715 0 1609 1 0 1 1 0 8 0 sysvmsgpl 40 7 0 4 1 0 1 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 4958 0 4948 1 0 1 1 0 8 0 shmpl 112 137 0 9 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 51048 0 49561 94 0 94 94 0 8 0 ffsino 272 51048 0 49561 101 1 100 100 0 8 0 nchpl 144 102099 0 100459 63 0 63 63 0 8 0 uvmvnodes 80 6617 0 0 136 0 136 136 0 8 0 vnodes 216 6617 0 0 368 0 368 368 0 8 0 namei 1024 334635 0 334635 12 11 1 2 0 8 1 percpumem 16 183 0 140 1 0 1 1 0 8 0 kstatmem 264 302 0 280 2 0 2 2 0 8 0 scxspl 216 324704 0 324704 113 112 1 8 1 8 1 plimitpl 152 6542 0 6519 56 55 1 2 0 8 0 sigapl 424 40749 0 40700 7 0 7 7 0 8 0 futexpl 64 334250 0 334249 10 9 1 1 0 8 0 knotepl 120 2382 0 0 23 11 12 18 0 8 0 kqueuepl 216 7446 0 7438 144 143 1 5 0 8 0 pipepl 320 10634 0 10606 312 309 3 14 0 8 0 fdescpl 496 40730 0 40700 6 1 5 6 0 8 0 filepl 152 264392 0 264159 538 522 16 22 0 8 6 lockfpl 104 10290 0 10288 1 0 1 1 0 8 0 lockfspl 48 3226 0 3224 1 0 1 1 0 8 0 sessionpl 144 163 0 147 1 0 1 1 0 8 0 pgrppl 48 598 0 582 1 0 1 1 0 8 0 ucredpl 104 33912 0 33894 1 0 1 1 0 8 0 zombiepl 144 40701 0 40700 1 0 1 1 0 8 0 processpl 1072 40749 0 40700 4 0 4 4 0 8 0 procpl 680 114171 0 114105 13 5 8 9 0 8 0 sosppl 168 704 0 703 33 32 1 1 0 8 0 sockpl 488 98127 0 98060 1413 1392 21 45 0 8 9 mcl64k 65536 49 0 0 5 2 3 3 0 8 0 mcl16k 16384 74 0 0 7 4 3 3 0 8 0 mcl12k 12288 42 0 0 2 0 2 2 0 8 0 mcl9k 9216 34 0 0 3 2 1 2 0 8 0 mcl8k 8192 49 0 0 3 0 3 3 0 8 0 mcl4k 4096 113 0 0 5 1 4 4 0 8 0 mcl2k2 2112 52 0 0 3 1 2 2 0 8 0 mcl2k 2048 758 0 0 38 23 15 37 0 8 0 mtagpl 96 26 0 0 1 0 1 1 0 8 0 mbufpl 256 6120 0 0 279 0 279 279 0 8 0 bufpl 288 62928 0 56308 474 0 474 474 0 8 0 anonpl 24 4129898 0 4117804 346 246 100 122 0 186 0 amapchunkpl 152 1287218 0 1286462 359 320 39 50 0 158 2 amappl16 200 87042 0 86746 578 552 26 43 0 8 6 amappl15 192 22 0 22 5 5 0 1 0 8 0 amappl14 184 617 0 600 2 1 1 2 0 8 0 amappl13 176 44 0 44 12 12 0 1 0 8 0 amappl12 168 43535 0 43496 6 3 3 3 0 8 0 amappl11 160 70 0 60 1 0 1 1 0 8 0 amappl10 152 207 0 189 2 1 1 1 0 8 0 amappl9 144 729 0 728 1 0 1 1 0 8 0 amappl8 136 2436 0 2178 9 0 9 9 0 8 0 amappl7 128 685 0 659 2 0 2 2 0 8 0 amappl6 120 2945 0 2921 1 0 1 1 0 8 0 amappl5 112 810 0 801 1 0 1 1 0 8 0 amappl4 104 2225 0 2185 3 1 2 2 0 8 0 amappl3 96 243689 0 243613 16 13 3 4 0 8 0 amappl2 88 43442 0 43352 20 17 3 3 0 8 0 amappl1 80 158552 0 158044 22 10 12 22 0 8 0 amappl 88 397466 0 397242 8 1 7 8 0 92 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma1024 1024 1 0 0 1 0 1 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 72 139 0 9 3 0 3 3 0 8 0 uaddrrnd 24 40730 0 40700 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 40730 0 40700 1 0 1 1 0 8 0 vmmpekpl 168 325788 0 325729 4 0 4 4 0 8 0 vmmpepl 168 2425251 0 2422892 583 447 136 155 0 357 0 vmsppl 464 40729 0 40700 5 0 5 5 0 8 0 rwobjpl 56 586430 0 578176 165 44 121 124 0 8 0 pdppl 4096 81468 0 81400 2043 1963 80 88 0 8 12 pvpl 32 11885032 0 11866972 946 765 181 361 0 265 0 pmappl 248 40729 0 40700 3 0 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 4486 0 3357 33 0 33 33 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffffffff82becff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff82d93888) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d93888) at __mp_lock+0x122 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff82d93888,1) at __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 mi_switch() at mi_switch+0x46d sys/kern/sched_bsd.c:470 sleep_finish(0,1) at sleep_finish+0x19b sys/kern/kern_synch.c:414 msleep(ffffffff82c86000,ffffffff82b879c8,0,ffffffff82784f81,0) at msleep+0xea sys/kern/kern_synch.c:249 softclock_thread(ffff800021159540) at softclock_thread+0xd0 sys/kern/kern_timeout.c:805 end trace frame: 0x0, count: 6 ddb{0}> trace x86_ipi_db(ffffffff82becff0) at x86_ipi_db+0x1e sys/arch/amd64/amd64/db_interface.c:393 x86_ipi_handler() at x86_ipi_handler+0xb7 sys/arch/amd64/amd64/ipi.c:106 Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27 __mp_lock(ffffffff82d93888) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d93888) at __mp_lock+0x122 sys/kern/kern_lock.c:147 __mp_acquire_count(ffffffff82d93888,1) at __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 mi_switch() at mi_switch+0x46d sys/kern/sched_bsd.c:470 sleep_finish(0,1) at sleep_finish+0x19b sys/kern/kern_synch.c:414 msleep(ffffffff82c86000,ffffffff82b879c8,0,ffffffff82784f81,0) at msleep+0xea sys/kern/kern_synch.c:249 softclock_thread(ffff800021159540) at softclock_thread+0xd0 sys/kern/kern_timeout.c:805 end trace frame: 0x0, count: -9 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x1c: addq $0x8,%rsp db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827ac3d6) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82828375,ffffffff82872898,2f7,ffffffff82774d9d) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd806602acc0) at arptfree+0x132 sys/netinet/if_ether.c:759 arptimer(ffffffff82c96ee8) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82c96ee8) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread_mp(ffff800021158d48) at softclock_thread_mp+0xc4 sys/kern/kern_timeout.c:833 end trace frame: 0x0, count: 8 ddb{1}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827ac3d6) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82828375,ffffffff82872898,2f7,ffffffff82774d9d) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd806602acc0) at arptfree+0x132 sys/netinet/if_ether.c:759 arptimer(ffffffff82c96ee8) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82c96ee8) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread_mp(ffff800021158d48) at softclock_thread_mp+0xc4 sys/kern/kern_timeout.c:833 end trace frame: 0x0, count: -7