panic: kernel diagnostic assertion "ifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/netinet/if_ether.c", line 716 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *205132 60432 0 0x14000 0x40000200 0 softclock db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff821e5c23,ffffffff821ff74c,2cc,ffffffff8216f81c) at __assert+0x2b sys/kern/subr_prf.c:154 arptfree(fffffd8038fe0158) at arptfree+0xfb sys/netinet/if_ether.c:716 arptimer(ffffffff825008e8) at arptimer+0x95 sys/netinet/if_ether.c:120 softclock_thread(ffff8000ffffe278) at softclock_thread+0x145 timeout_run sys/kern/kern_timeout.c:475 [inline] softclock_thread(ffff8000ffffe278) at softclock_thread+0x145 sys/kern/kern_timeout.c:552 end trace frame: 0x0, count: 9 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic kernel diagnostic assertion "ifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/netinet/if_ether.c", line 716 ddb> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff821e5c23,ffffffff821ff74c,2cc,ffffffff8216f81c) at __assert+0x2b sys/kern/subr_prf.c:154 arptfree(fffffd8038fe0158) at arptfree+0xfb sys/netinet/if_ether.c:716 arptimer(ffffffff825008e8) at arptimer+0x95 sys/netinet/if_ether.c:120 softclock_thread(ffff8000ffffe278) at softclock_thread+0x145 timeout_run sys/kern/kern_timeout.c:475 [inline] softclock_thread(ffff8000ffffe278) at softclock_thread+0x145 sys/kern/kern_timeout.c:552 end trace frame: 0x0, count: -6 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800014812ba0 rbx 0xffff800014812c50 rdx 0x2 rcx 0 rax 0 r8 0xffff800014812b60 r9 0x1 r10 0 r11 0x5608106b102184bc r12 0x3000000008 r13 0xffff800014812bb0 r14 0x100 r15 0x1 rip 0xffffffff81a536b8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014812b90 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (softclock) pid=205132 stat=onproc flags process=14000 proc=40000200 pri=0, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff8000ffffe9e0,0xffff8000ffffe010 process=0xffff8000ffffcd80 user=0xffff80001480d000, vmspace=0xffffffff8257e590 estcpu=0, cpticks=2, pctcpu=0.0 user=0, sys=2, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 17179 19775 38291 0 2 0 syz-executor.1 17179 349723 38291 0 3 0x4000080 piperd syz-executor.1 17179 120624 38291 0 2 0x4000000 syz-executor.1 17179 271038 38291 0 3 0x4000080 fsleep syz-executor.1 17179 211911 38291 0 2 0x4000000 syz-executor.1 76339 183609 36098 0 2 0x482 syz-executor.0 38291 452132 36098 0 2 0x482 syz-executor.1 23974 166452 1 0 3 0x100083 ttyopn getty 31283 521380 0 0 3 0x14200 bored sosplice 36098 230800 96200 0 3 0x82 thrsleep syz-fuzzer 36098 190683 96200 0 3 0x4000082 thrsleep syz-fuzzer 36098 124984 96200 0 3 0x4000082 thrsleep syz-fuzzer 36098 142970 96200 0 3 0x4000082 thrsleep syz-fuzzer 36098 444000 96200 0 3 0x4000082 thrsleep syz-fuzzer 36098 485806 96200 0 2 0x4000482 syz-fuzzer 36098 49785 96200 0 3 0x4000082 thrsleep syz-fuzzer 36098 332511 96200 0 3 0x4000082 kqread syz-fuzzer 36098 99784 96200 0 3 0x4000082 thrsleep syz-fuzzer 96200 373672 54751 0 3 0x10008a pause ksh 54751 72319 70719 0 3 0x92 select sshd 70719 329722 1 0 3 0x80 select sshd 6755 506186 26239 73 2 0x100090 syslogd 26239 259405 1 0 3 0x100082 netio syslogd 91342 48766 0 0 2 0x14200 zerothread 72524 94723 0 0 3 0x14200 aiodoned aiodoned 49876 125315 0 0 2 0x14200 update 24787 6152 0 0 3 0x14200 cleaner cleaner 40452 113733 0 0 3 0x14200 reaper reaper 23327 466385 0 0 3 0x14200 pgdaemon pagedaemon 70670 339315 0 0 3 0x14200 bored crynlk 98335 301587 0 0 3 0x14200 bored crypto 11605 410137 0 0 3 0x40014200 acpi0 acpi0 14060 371877 0 0 2 0x14200 softnet 18543 390916 0 0 2 0x14200 systqmp 71419 76057 0 0 3 0x14200 bored systq *60432 205132 0 0 7 0x40014200 softclock 36334 254493 0 0 3 0x40014200 idle0 15784 491469 0 0 3 0x14200 bored smr 1 505985 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb> show all locks No such command ddb> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9576 6319K 7372K 78643K 26797 0 0 pcb 13 12K 14K 78643K 1290 0 0 rtable 151 10K 11K 78643K 1598 0 0 ifaddr 103 23K 24K 78643K 933 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 355 0 0 iov 0 0K 32K 78643K 2114 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1212 76K 77K 78643K 6674 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 5K 78643K 70 0 0 VM map 46 11K 11K 78643K 72 0 0 sem 12 0K 1K 78643K 1982 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 5136 0 0 sigio 0 0K 0K 78643K 654 0 0 proc 44 30K 54K 78643K 1840 0 0 subproc 32 2K 2K 78643K 459 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 2488 0 0 in_multi 43 2K 2K 78643K 498 0 0 ether_multi 1 0K 0K 78643K 40 0 0 mrt 2 0K 0K 78643K 25 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 114 503K 503K 78643K 114 0 0 exec 0 0K 1K 78643K 1075 0 0 pfkey data 0 0K 0K 78643K 2 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 200 415K 425K 78643K 13752 0 0 UVM aobj 130 8K 8K 78643K 138 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 0K 78643K 1174 0 0 NDP 21 0K 0K 78643K 284 0 0 temp 233 3545K 3624K 78643K 169758 0 0 kqueue 0 0K 0K 78643K 76 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 85 0 79 1 0 1 1 0 8 0 rtpcb 80 586 0 586 6 5 1 1 0 8 1 rtentry 112 528 0 469 2 0 2 2 0 8 0 unpcb 120 6040 0 6027 2 1 1 2 0 8 0 syncache 264 22 0 22 12 12 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 153 0 153 5 5 0 1 0 8 0 tcpcb 544 2192 0 2188 21 16 5 15 0 8 4 ipq 40 49 0 48 18 17 1 1 0 8 0 ipqe 40 1411 0 1410 18 17 1 1 0 8 0 inpcb 280 9313 0 9309 32 26 6 9 0 8 5 rttmr 72 8 0 7 3 2 1 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 nd6 48 68 0 64 3 2 1 1 0 8 0 pkpcb 40 26 0 26 10 10 0 1 0 8 0 swfcl 56 1 0 0 1 0 1 1 0 8 0 ppxss 1128 119 0 119 18 17 1 1 0 8 1 art_heap8 4096 28 0 24 16 12 4 6 0 8 0 art_heap4 256 2104 0 1823 49 31 18 21 0 8 0 art_table 32 2132 0 1847 3 0 3 3 0 8 0 art_node 16 519 0 466 1 0 1 1 0 8 0 sysvmsgpl 40 55 0 29 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 1976 0 1966 1 0 1 1 0 8 0 shmpl 112 136 0 8 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 9511 0 8100 46 0 46 46 0 8 0 ffsino 240 9511 0 8100 84 0 84 84 0 8 0 nchpl 144 18144 0 17666 60 40 20 60 0 8 0 uvmvnodes 72 6522 0 0 119 0 119 119 0 8 0 vnodes 208 6522 0 0 344 0 344 344 0 8 0 namei 1024 61671 0 61671 2 1 1 1 0 8 1 vcpupl 1984 46 0 2 6 0 6 6 0 8 0 vmpool 520 70 0 26 3 0 3 3 0 8 0 scsiplug 64 9 0 9 4 4 0 1 0 8 0 scxspl 192 64231 0 64231 33 32 1 7 0 8 1 plimitpl 152 478 0 472 1 0 1 1 0 8 0 sigapl 432 5232 0 5221 2 0 2 2 0 8 0 futexpl 56 156625 0 156624 4 3 1 1 0 8 0 knotepl 112 1435 0 1416 6 5 1 3 0 8 0 kqueuepl 104 1790 0 1788 4 3 1 4 0 8 0 pipepl 112 3534 0 3513 9 7 2 2 0 8 1 fdescpl 424 5233 0 5221 2 0 2 2 0 8 0 filepl 120 50764 0 50673 30 24 6 10 0 8 3 lockfpl 104 2055 0 2052 3 2 1 1 0 8 0 lockfspl 48 706 0 705 3 2 1 1 0 8 0 sessionpl 112 43 0 35 1 0 1 1 0 8 0 pgrppl 48 109 0 101 1 0 1 1 0 8 0 ucredpl 96 5792 0 5785 1 0 1 1 0 8 0 zombiepl 144 5223 0 5222 1 0 1 1 0 8 0 processpl 864 5250 0 5222 4 0 4 4 0 8 0 procpl 632 11571 0 11531 5 1 4 5 0 8 0 sosppl 128 109 0 109 20 19 1 1 0 8 1 sockpl 384 16044 0 16027 51 42 9 14 0 8 6 mcl64k 65536 1099 0 1096 71 70 1 33 0 8 0 mcl16k 16384 74 0 74 21 21 0 1 0 8 0 mcl12k 12288 161 0 161 10 9 1 1 0 8 1 mcl9k 9216 107 0 107 16 15 1 1 0 8 1 mcl8k 8192 235 0 235 12 11 1 1 0 8 1 mcl4k 4096 568 0 568 6 5 1 1 0 8 1 mcl2k2 2112 51 0 51 20 20 0 1 0 8 0 mcl2k 2048 77642 0 77591 22 14 8 17 0 8 0 mtagpl 80 265 0 247 3 2 1 1 0 8 0 mbufpl 256 167610 0 167193 199 163 36 39 0 8 8 bufpl 256 25770 0 19228 409 0 409 409 0 8 0 anonpl 16 638412 0 618330 257 161 96 114 0 62 11 amapchunkpl 152 28110 0 27942 102 92 10 21 0 158 2 amappl16 192 33370 0 32209 288 222 66 81 0 8 7 amappl15 184 283 0 283 5 5 0 1 0 8 0 amappl14 176 760 0 752 1 0 1 1 0 8 0 amappl13 168 646 0 645 7 6 1 1 0 8 0 amappl12 160 326 0 324 2 1 1 1 0 8 0 amappl11 152 410 0 404 1 0 1 1 0 8 0 amappl10 144 768 0 766 1 0 1 1 0 8 0 amappl9 136 1540 0 1536 1 0 1 1 0 8 0 amappl8 128 1101 0 1047 2 0 2 2 0 8 0 amappl7 120 907 0 900 1 0 1 1 0 8 0 amappl6 112 382 0 369 1 0 1 1 0 8 0 amappl5 104 706 0 699 1 0 1 1 0 8 0 amappl4 96 5525 0 5496 1 0 1 1 0 8 0 amappl3 88 1091 0 1074 1 0 1 1 0 8 0 amappl2 80 40003 0 39939 3 1 2 3 0 8 0 amappl1 72 105917 0 105524 26 16 10 20 0 8 0 amappl 80 12283 0 12212 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 17 0 17 1 1 0 1 0 8 0 aobjpl 64 137 0 8 3 0 3 3 0 8 0 uaddrrnd 24 5303 0 5221 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5303 0 5221 1 0 1 1 0 8 0 vmmpekpl 168 35687 0 35647 3 0 3 3 0 8 0 vmmpepl 168 641919 0 639615 410 271 139 148 0 357 33 vmsppl 272 5232 0 5221 2 1 1 2 0 8 0 pdppl 4096 10612 0 10538 13 3 10 10 0 8 0 pvpl 32 1706990 0 1683419 496 275 221 326 0 265 29 pmappl 200 5302 0 5247 4 1 3 3 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 932 0 350 17 0 17 17 0 8 0