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 *148112 25973 0 0x14000 0x200 1 softclockmp 508155 99685 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(fffffd80642e3400) 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(ffff800021158aa0) 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(fffffd80642e3400) 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(ffff800021158aa0) 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 0xffff80002116b750 rbx 0xffff800020d49ba7 rdx 0 rcx 0xffff800021158aa0 rax 0xffff800020d48ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xfd89b67f78ab9346 r11 0xd0fbf420a9b2861e r12 0xffff800020d499a8 r13 0 r14 0 r15 0x1 rip 0xffffffff819efd8c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002116b740 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{1}> show proc PROC (softclockmp) tid=148112 pid=25973 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=0xffff800021158d48,0xffff800021158808 process=0xffff8000ffffd4f0 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 50056 490549 47413 32767 3 0x90 piperd syz-executor.1 47413 377839 68422 0 3 0x82 wait syz-executor.1 90481 127241 33835 32767 3 0x90 piperd syz-executor.6 33835 287978 68422 0 3 0x82 wait syz-executor.6 97734 218182 85013 32767 3 0x90 piperd syz-executor.5 85013 221764 68422 0 3 0x82 wait syz-executor.5 33474 222653 68824 32767 3 0x90 piperd syz-executor.7 68824 440955 68422 0 3 0x82 wait syz-executor.7 64893 82074 39507 32767 3 0x90 piperd syz-executor.4 39507 16277 68422 0 3 0x82 wait syz-executor.4 21357 343587 51287 32767 3 0x90 piperd syz-executor.3 51287 289893 68422 0 3 0x82 wait syz-executor.3 21250 111089 30373 32767 3 0x90 piperd syz-executor.2 30373 29868 68422 0 3 0x82 wait syz-executor.2 10945 402585 68422 0 3 0x82 wait syz-executor.0 16049 46808 0 0 3 0x14200 bored sosplice 68422 269207 53570 0 3 0x2000082 thrsleep syz-fuzzer 68422 200916 53570 0 2 0x6000482 syz-fuzzer 68422 316494 53570 0 3 0x6000082 thrsleep syz-fuzzer 68422 352675 53570 0 3 0x6000082 thrsleep syz-fuzzer 68422 358680 53570 0 3 0x6000082 thrsleep syz-fuzzer 68422 413381 53570 0 2 0x6000482 syz-fuzzer 68422 242779 53570 0 3 0x6000082 thrsleep syz-fuzzer 68422 441218 53570 0 3 0x6000082 wait syz-fuzzer 68422 253245 53570 0 3 0x6000082 wait syz-fuzzer 68422 305933 53570 0 3 0x6000082 wait syz-fuzzer 68422 17493 53570 0 3 0x6000082 wait syz-fuzzer 68422 428309 53570 0 3 0x6000082 thrsleep syz-fuzzer 68422 323206 53570 0 3 0x6000082 wait syz-fuzzer 68422 96630 53570 0 3 0x6000082 wait syz-fuzzer 68422 36024 53570 0 3 0x6000082 wait syz-fuzzer 68422 238 53570 0 3 0x6000082 wait syz-fuzzer 53570 56219 465 0 3 0x10008a sigsusp ksh 465 264207 53791 0 3 0x9a kqread sshd 65449 491615 1 0 3 0x100083 ttyin getty 53791 282376 1 0 3 0x88 kqread sshd 51531 408975 57267 73 3 0x1100090 kqread syslogd 57267 482980 1 0 3 0x100082 netio syslogd 79323 57321 1 0 3 0x100080 kqread resolvd 75778 444701 49884 77 3 0x100092 kqread dhcpleased 21527 383295 49884 77 3 0x100092 kqread dhcpleased 49884 180090 1 0 3 0x80 kqread dhcpleased 94194 246353 0 0 3 0x14200 bored smr 74520 397073 0 0 3 0x14200 pgzero zerothread 54321 83149 0 0 3 0x14200 aiodoned aiodoned 43187 428152 0 0 3 0x14200 syncer update 59374 300935 0 0 3 0x14200 cleaner cleaner 94672 356769 0 0 3 0x14200 reaper reaper 12498 271220 0 0 3 0x14200 pgdaemon pagedaemon 15392 481806 0 0 3 0x14200 bored viomb 79864 312811 0 0 3 0x40014200 acpi0 acpi0 61981 141468 0 0 3 0x40014200 idle1 49158 106098 0 0 3 0x14200 bored softnet3 43664 388392 0 0 3 0x14200 bored softnet2 98325 340498 0 0 3 0x14200 bored softnet1 60702 468761 0 0 3 0x14200 bored softnet0 90143 471631 0 0 3 0x14200 bored systqmp 85304 305687 0 0 3 0x14200 bored systq *25973 148112 0 0 7 0x14200 softclockmp 99685 508155 0 0 7 0x40014200 softclock 18255 341787 0 0 3 0x40014200 idle0 1 429932 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks Process 25973 (softclockmp) thread 0xffff800021158aa0 (148112) 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 10226 6414K 6420K 78643K 11765 0 pcb 13 16K 20K 78643K 19 0 rtable 244 6K 7K 78643K 6930 0 pf 29 8K 8K 78643K 335 0 ifaddr 44 17K 18K 78643K 666 0 ifgroup 50 2K 2K 78643K 662 0 sysctl 4 1K 3K 78643K 7 0 counters 60 35K 35K 78643K 366 0 ioctlops 0 0K 2K 78643K 788 0 iov 0 0K 32K 78643K 10367 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 10292 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 819 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 18 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 18 65K 125K 78643K 50306 0 sigio 0 0K 0K 78643K 582 0 proc 56 78K 103K 78643K 7659 0 subproc 104 6K 6K 78643K 2093 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 2852 0 in_multi 99 7K 7K 78643K 2172 0 ether_multi 1 0K 0K 78643K 79 0 mrt 1 0K 0K 78643K 3 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 295 1314K 1314K 78643K 295 0 exec 0 0K 1K 78643K 9444 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 486 92K 112K 78643K 489081 0 UVM aobj 131 4K 4K 78643K 156 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 1151 0 NDP 11 0K 2K 78643K 486 0 temp 74 5920K 6048K 78643K 129044 0 kqueue 12 18K 31K 78643K 3679 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 3144 0 3141 39 38 1 5 0 8 0 rtentry 112 1883 0 1768 4 0 4 4 0 8 0 unpcb 144 29686 0 29673 333 332 1 10 0 8 0 syncache 312 625 0 625 95 94 1 1 0 8 1 tcpqe 32 878 0 878 76 75 1 1 0 8 1 tcpcb 808 54561 0 54535 810 800 10 25 0 8 4 arp 120 341 0 322 1 0 1 1 0 8 0 ipq 40 162 0 161 28 27 1 1 0 8 0 ipqe 40 941 0 940 28 27 1 1 0 8 0 inpcb 368 70814 0 70785 788 778 10 26 0 8 3 nd6 136 555 0 527 6 4 2 2 0 8 1 kcovpl 48 161 0 153 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 7467 0 7000 39 8 31 31 0 8 0 art_table 32 7468 0 7000 4 0 4 4 0 8 0 art_node 16 1882 0 1777 1 0 1 1 0 8 0 sysvmsgpl 40 3 0 3 1 1 0 1 0 8 0 semupl 112 3 0 3 1 1 0 1 0 8 0 semapl 112 11 0 1 1 0 1 1 0 8 0 shmpl 112 153 0 25 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 63684 0 62200 93 0 93 93 0 8 0 ffsino 272 63684 0 62200 100 0 100 100 0 8 0 nchpl 144 127599 0 125957 63 0 63 63 0 8 0 uvmvnodes 80 7212 0 0 148 0 148 148 0 8 0 vnodes 216 7212 0 0 401 0 401 401 0 8 0 namei 1024 422250 0 422250 12 11 1 2 0 8 1 percpumem 16 196 0 153 1 0 1 1 0 8 0 kstatmem 264 328 0 306 2 0 2 2 0 8 0 scxspl 216 424094 0 424094 115 112 3 8 1 8 3 plimitpl 152 7159 0 7136 74 72 2 2 0 8 1 sigapl 424 50298 0 50250 8 1 7 8 0 8 0 futexpl 64 403568 0 403568 21 20 1 1 0 8 1 knotepl 120 2625 0 0 23 6 17 17 0 8 0 kqueuepl 216 8556 0 8548 151 150 1 5 0 8 0 pipepl 320 15518 0 15490 368 357 11 13 0 8 8 fdescpl 496 50279 0 50250 7 2 5 6 0 8 0 filepl 152 320008 0 319775 652 635 17 22 0 8 7 lockfpl 104 7942 0 7940 7 6 1 3 0 8 0 lockfspl 48 1836 0 1834 1 0 1 1 0 8 0 sessionpl 144 176 0 160 1 0 1 1 0 8 0 pgrppl 48 10731 0 10715 1 0 1 1 0 8 0 ucredpl 104 42999 0 42981 1 0 1 1 0 8 0 zombiepl 144 50251 0 50250 1 0 1 1 0 8 0 processpl 1072 50298 0 50250 5 1 4 5 0 8 0 procpl 680 137602 0 137539 94 86 8 8 0 8 1 sosppl 168 866 0 863 39 38 1 1 0 8 0 sockpl 488 105571 0 105526 1824 1809 15 40 0 8 7 mcl64k 65536 89 0 0 4 1 3 3 0 8 0 mcl16k 16384 49 0 0 5 2 3 3 0 8 0 mcl12k 12288 26 0 0 2 0 2 2 0 8 0 mcl9k 9216 33 0 0 3 1 2 2 0 8 0 mcl8k 8192 97 0 0 6 2 4 5 0 8 0 mcl4k 4096 192 0 0 6 2 4 4 0 8 0 mcl2k2 2112 130 0 0 8 5 3 5 0 8 0 mcl2k 2048 950 0 0 47 35 12 41 0 8 0 mtagpl 96 25 0 0 1 0 1 1 0 8 0 mbufpl 256 7630 0 0 413 0 413 413 0 8 0 bufpl 288 77442 0 70229 516 0 516 516 0 8 0 anonpl 24 8746367 0 8735444 699 582 117 160 0 186 1 amapchunkpl 152 1587111 0 1586365 459 419 40 59 0 158 1 amappl16 200 318504 0 318231 1885 1858 27 66 0 8 8 amappl15 192 23 0 23 6 6 0 1 0 8 0 amappl14 184 658 0 643 2 1 1 2 0 8 0 amappl13 176 51 0 51 14 14 0 1 0 8 0 amappl12 168 53319 0 53283 2 0 2 2 0 8 0 amappl11 160 55 0 43 1 0 1 1 0 8 0 amappl10 152 451 0 434 2 1 1 1 0 8 0 amappl9 144 757 0 757 108 108 0 1 0 8 0 amappl8 136 2567 0 2290 11 1 10 10 0 8 0 amappl7 128 762 0 733 2 0 2 2 0 8 0 amappl6 120 3069 0 3052 1 0 1 1 0 8 0 amappl5 112 1088 0 1080 1 0 1 1 0 8 0 amappl4 104 2138 0 2106 4 2 2 2 0 8 0 amappl3 96 298549 0 298478 64 61 3 5 0 8 0 amappl2 88 53361 0 53271 16 13 3 3 0 8 0 amappl1 80 191911 0 191393 22 10 12 22 0 8 0 amappl 88 485631 0 485408 8 0 8 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 155 0 25 3 0 3 3 0 8 0 uaddrrnd 24 50279 0 50250 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 50279 0 50250 1 0 1 1 0 8 0 vmmpekpl 168 406293 0 406239 4 1 3 4 0 8 0 vmmpepl 168 3169783 0 3167475 624 489 135 153 0 357 0 vmsppl 464 50278 0 50250 7 2 5 6 0 8 0 rwobjpl 56 920657 0 911818 251 120 131 139 0 8 0 pdppl 4096 100566 0 100500 2108 2026 82 96 0 8 16 pvpl 32 18711681 0 18694880 1642 1438 204 335 0 265 1 pmappl 248 50278 0 50250 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 5143 0 3847 38 0 38 38 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(ffff800021158d48) 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(ffff800021158d48) 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(fffffd80642e3400) 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(ffff800021158aa0) 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(fffffd80642e3400) 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(ffff800021158aa0) at softclock_thread_mp+0xc4 sys/kern/kern_timeout.c:833 end trace frame: 0x0, count: -7