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 *102828 72465 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(ffffffff821e4d3c,ffffffff82200582,2cc,ffffffff8216c2d5) at __assert+0x2b sys/kern/subr_prf.c:154 arptfree(fffffd803e350698) at arptfree+0xfb sys/netinet/if_ether.c:716 arptimer(ffffffff82557af8) at arptimer+0x95 sys/netinet/if_ether.c:120 softclock_thread(ffff8000fffff148) at softclock_thread+0x145 timeout_run sys/kern/kern_timeout.c:475 [inline] softclock_thread(ffff8000fffff148) 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(ffffffff821e4d3c,ffffffff82200582,2cc,ffffffff8216c2d5) at __assert+0x2b sys/kern/subr_prf.c:154 arptfree(fffffd803e350698) at arptfree+0xfb sys/netinet/if_ether.c:716 arptimer(ffffffff82557af8) at arptimer+0x95 sys/netinet/if_ether.c:120 softclock_thread(ffff8000fffff148) at softclock_thread+0x145 timeout_run sys/kern/kern_timeout.c:475 [inline] softclock_thread(ffff8000fffff148) at softclock_thread+0x145 sys/kern/kern_timeout.c:552 end trace frame: 0x0, count: -6 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff800014811f70 rbx 0xffff800014812020 rdx 0x2 rcx 0 rax 0 r8 0xffff800014811f30 r9 0x1 r10 0 r11 0x28fe4bc8664cbf6b r12 0x3000000008 r13 0xffff800014811f80 r14 0x100 r15 0x1 rip 0xffffffff815c9928 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014811f60 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (softclock) pid=102828 stat=onproc flags process=14000 proc=40000200 pri=0, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff8000fffff3c0,0xffff8000ffffeee0 process=0xffff8000ffffcd80 user=0xffff80001480d000, vmspace=0xffffffff82559538 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 49400 135481 36132 0 2 0x480 syz-executor.1 49400 10171 36132 0 3 0x4000080 fifow syz-executor.1 49400 343100 36132 0 3 0x4000080 fsleep syz-executor.1 36132 318603 12916 0 2 0x482 syz-executor.1 78324 81394 0 0 3 0x14200 acct acct 44920 450886 12916 0 3 0x82 piperd syz-executor.0 16778 423122 0 0 3 0x14200 bored sosplice 12916 151176 4788 0 3 0x82 thrsleep syz-fuzzer 12916 112655 4788 0 3 0x4000082 thrsleep syz-fuzzer 12916 320135 4788 0 3 0x4000082 kqread syz-fuzzer 12916 394749 4788 0 3 0x4000082 thrsleep syz-fuzzer 12916 291978 4788 0 3 0x4000082 thrsleep syz-fuzzer 12916 350048 4788 0 3 0x4000082 thrsleep syz-fuzzer 12916 359367 4788 0 3 0x4000082 thrsleep syz-fuzzer 12916 216571 4788 0 3 0x4000082 thrsleep syz-fuzzer 4788 428148 84565 0 3 0x10008a pause ksh 84565 60883 15910 0 3 0x92 select sshd 56035 391548 1 0 3 0x100083 ttyin getty 15910 309593 1 0 3 0x80 select sshd 32153 475141 92043 73 3 0x100090 kqread syslogd 92043 177370 1 0 3 0x100082 netio syslogd 54551 286417 1 77 3 0x100090 poll dhclient 54680 49679 1 0 3 0x80 poll dhclient 58017 83735 0 0 3 0x14200 pgzero zerothread 13770 474763 0 0 3 0x14200 aiodoned aiodoned 82201 31049 0 0 3 0x14200 syncer update 31857 437695 0 0 3 0x14200 cleaner cleaner 22175 51350 0 0 3 0x14200 reaper reaper 59905 146377 0 0 3 0x14200 pgdaemon pagedaemon 18731 485542 0 0 3 0x14200 bored crynlk 9158 499212 0 0 3 0x14200 bored crypto 30404 355536 0 0 3 0x40014200 acpi0 acpi0 51851 166567 0 0 3 0x14200 bored softnet 99726 99877 0 0 3 0x14200 bored systqmp 58152 223973 0 0 3 0x14200 bored systq *72465 102828 0 0 7 0x40014200 softclock 10014 23977 0 0 3 0x40014200 idle0 79214 197104 0 0 3 0x14200 bored smr 1 114775 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 9583 6381K 8388K 78643K 45524 0 0 pcb 13 13K 14K 78643K 1306 0 0 rtable 115 12K 13K 78643K 4364 0 0 ifaddr 88 20K 21K 78643K 1011 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 455 0 0 iov 0 0K 28K 78643K 31120 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1228 77K 78K 78643K 11847 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 101 0 0 VM map 60 15K 15K 78643K 100 0 0 sem 12 0K 1K 78643K 19929 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 13083 0 0 sigio 0 0K 0K 78643K 81 0 0 proc 50 38K 55K 78643K 2919 0 0 subproc 32 2K 2K 78643K 935 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 595 0 0 in_multi 27 1K 3K 78643K 852 0 0 ether_multi 1 0K 0K 78643K 52 0 0 mrt 0 0K 0K 78643K 41 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 102 450K 450K 78643K 102 0 0 exec 0 0K 1K 78643K 1520 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 198 495K 495K 78643K 30575 0 0 UVM aobj 130 5K 5K 78643K 136 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 1246 0 0 NDP 21 0K 1K 78643K 351 0 0 temp 233 3541K 4180K 78643K 200723 0 0 kqueue 0 0K 0K 78643K 69 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 174 0 167 1 0 1 1 0 8 0 rtpcb 80 773 0 771 1 0 1 1 0 8 0 rtentry 112 857 0 818 2 0 2 2 0 8 0 unpcb 120 99913 0 99900 4 3 1 2 0 8 0 syncache 264 37 0 37 16 15 1 1 0 8 1 sackhl 24 23 0 23 15 15 0 1 0 8 0 tcpqe 32 189 0 189 8 7 1 1 0 8 1 tcpcb 544 2627 0 2623 35 34 1 14 0 8 0 ipq 40 24 0 24 12 12 0 1 0 8 0 ipqe 40 656 0 656 12 12 0 1 0 8 0 inpcb 280 7632 0 7625 68 66 2 13 0 8 1 rttmr 72 11 0 11 9 8 1 1 0 8 1 ip6q 72 2 0 2 1 1 0 1 0 8 0 ip6af 40 6 0 6 1 1 0 1 0 8 0 nd6 48 124 0 122 1 0 1 1 0 8 0 pkpcb 40 45 0 45 15 15 0 1 0 8 0 swfcl 56 6 0 0 1 0 1 1 0 8 0 ppxss 1128 107 0 107 32 32 0 1 0 8 0 art_heap8 4096 14 0 13 7 6 1 3 0 8 0 art_heap4 256 3499 0 3313 40 24 16 16 0 8 2 art_table 32 3513 0 3326 3 0 3 3 0 8 0 art_node 16 855 0 819 1 0 1 1 0 8 0 sysvmsgpl 40 81 0 41 1 0 1 1 0 8 0 semupl 112 3 0 3 2 2 0 1 0 8 0 semapl 112 19927 0 19917 1 0 1 1 0 8 0 shmpl 112 134 0 6 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 18244 0 16813 47 0 47 47 0 8 0 ffsino 240 18244 0 16813 85 0 85 85 0 8 0 nchpl 144 46963 0 46537 60 41 19 60 0 8 0 uvmvnodes 72 8026 0 0 146 0 146 146 0 8 0 vnodes 208 8026 0 0 423 0 423 423 0 8 0 namei 1024 196062 0 196062 3 2 1 1 0 8 1 vcpupl 1984 60 0 2 8 0 8 8 0 8 0 vmpool 520 98 0 40 9 5 4 4 0 8 0 scsiplug 64 6 0 6 4 4 0 1 0 8 0 scxspl 192 110755 0 110755 47 45 2 7 0 8 2 plimitpl 152 6592 0 6585 1 0 1 1 0 8 0 sigapl 432 13095 0 13082 2 0 2 2 0 8 0 futexpl 56 1965389 0 1965388 3 2 1 1 0 8 0 knotepl 112 2216 0 2197 7 6 1 3 0 8 0 kqueuepl 104 2025 0 2023 7 6 1 4 0 8 0 pipepl 112 41030 0 41011 20 19 1 2 0 8 0 fdescpl 424 13096 0 13082 2 0 2 2 0 8 0 filepl 120 127650 0 127553 41 36 5 11 0 8 1 lockfpl 104 1890 0 1889 1 0 1 1 0 8 0 lockfspl 48 646 0 645 1 0 1 1 0 8 0 sessionpl 112 70 0 60 1 0 1 1 0 8 0 pgrppl 48 116 0 106 1 0 1 1 0 8 0 ucredpl 96 61570 0 61563 1 0 1 1 0 8 0 zombiepl 144 13085 0 13085 1 0 1 1 0 8 1 processpl 864 13115 0 13085 4 0 4 4 0 8 0 procpl 632 27228 0 27189 4 0 4 4 0 8 0 sosppl 128 88 0 88 26 25 1 1 0 8 1 sockpl 384 108425 0 108403 94 90 4 21 0 8 1 mcl64k 65536 25688 0 25688 161 160 1 64 0 8 1 mcl16k 16384 5134 0 5134 3 2 1 1 0 8 1 mcl12k 12288 1210 0 1210 11 10 1 1 0 8 1 mcl9k 9216 95 0 95 37 36 1 1 0 8 1 mcl8k 8192 2205 0 2205 21 20 1 2 0 8 1 mcl4k 4096 978 0 978 6 5 1 1 0 8 1 mcl2k2 2112 63 0 63 29 28 1 1 0 8 1 mcl2k 2048 323456 0 323407 49 41 8 14 0 8 1 mtagpl 80 319 0 319 9 8 1 1 0 8 1 mbufpl 256 1174880 0 1174765 217 198 19 40 0 8 6 bufpl 256 40194 0 32167 503 1 502 502 0 8 0 anonpl 16 1502995 0 1483479 351 263 88 95 0 62 6 amapchunkpl 152 58055 0 57915 134 123 11 20 0 158 5 amappl16 192 68919 0 67784 372 313 59 69 0 8 1 amappl15 184 5708 0 5707 1 0 1 1 0 8 0 amappl14 176 1579 0 1574 1 0 1 1 0 8 0 amappl13 168 1116 0 1116 11 11 0 1 0 8 0 amappl12 160 1321 0 1320 1 0 1 1 0 8 0 amappl11 152 1791 0 1778 1 0 1 1 0 8 0 amappl10 144 991 0 989 1 0 1 1 0 8 0 amappl9 136 2314 0 2308 1 0 1 1 0 8 0 amappl8 128 1615 0 1573 2 0 2 2 0 8 0 amappl7 120 1253 0 1245 1 0 1 1 0 8 0 amappl6 112 1704 0 1689 1 0 1 1 0 8 0 amappl5 104 26414 0 26403 1 0 1 1 0 8 0 amappl4 96 17323 0 17295 1 0 1 1 0 8 0 amappl3 88 3764 0 3750 1 0 1 1 0 8 0 amappl2 80 103969 0 103898 3 1 2 3 0 8 0 amappl1 72 250506 0 250086 25 16 9 20 0 8 0 amappl 80 28412 0 28340 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 135 0 6 3 0 3 3 0 8 0 uaddrrnd 24 13194 0 13082 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 13194 0 13082 1 0 1 1 0 8 0 vmmpekpl 168 134105 0 134066 3 0 3 3 0 8 0 vmmpepl 168 1606414 0 1604062 571 424 147 147 0 357 36 vmsppl 272 13095 0 13082 2 1 1 2 0 8 0 pdppl 4096 26394 0 26302 15 3 12 12 0 8 0 pvpl 32 3855906 0 3833463 650 433 217 273 0 265 30 pmappl 200 13193 0 13122 4 0 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1152 0 499 22 3 19 20 0 8 0