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 *399154 85589 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(ffffffff821e5822,ffffffff821fe0bc,2cc,ffffffff8216ea8c) at __assert+0x2b sys/kern/subr_prf.c:154 arptfree(fffffd802bb86078) at arptfree+0xfb sys/netinet/if_ether.c:716 arptimer(ffffffff8251e040) 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(ffffffff821e5822,ffffffff821fe0bc,2cc,ffffffff8216ea8c) at __assert+0x2b sys/kern/subr_prf.c:154 arptfree(fffffd802bb86078) at arptfree+0xfb sys/netinet/if_ether.c:716 arptimer(ffffffff8251e040) 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 0xffff800014812040 rbx 0xffff8000148120f0 rdx 0x2 rcx 0 rax 0 r8 0xffff800014812000 r9 0x1 r10 0 r11 0x220d117cd4eb487 r12 0x3000000008 r13 0xffff800014812050 r14 0x100 r15 0x1 rip 0xffffffff81605488 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800014812030 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb> show proc PROC (softclock) pid=399154 stat=onproc flags process=14000 proc=40000200 pri=0, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff8000fffff3c0,0xffff8000ffffec68 process=0xffff8000ffffca20 user=0xffff80001480d000, vmspace=0xffffffff82582420 estcpu=0, cpticks=0, pctcpu=0.1 user=0, sys=1, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 49058 422637 34063 0 2 0x480 syz-executor.0 49058 209280 34063 0 3 0x4000080 netcon2 syz-executor.0 49058 261095 34063 0 3 0x4000080 fsleep syz-executor.0 34063 203080 6195 0 2 0x482 syz-executor.0 53203 444011 6195 0 3 0x82 piperd syz-executor.1 48525 24133 0 0 3 0x14200 bored sosplice 6195 265151 31055 0 3 0x82 thrsleep syz-fuzzer 6195 382897 31055 0 3 0x4000082 thrsleep syz-fuzzer 6195 200786 31055 0 3 0x4000082 thrsleep syz-fuzzer 6195 451922 31055 0 3 0x4000082 thrsleep syz-fuzzer 6195 182490 31055 0 3 0x4000082 kqread syz-fuzzer 6195 330288 31055 0 3 0x4000082 thrsleep syz-fuzzer 6195 197031 31055 0 3 0x4000082 thrsleep syz-fuzzer 6195 212247 31055 0 3 0x4000082 thrsleep syz-fuzzer 31055 350454 66315 0 3 0x10008a pause ksh 66315 279286 33615 0 3 0x92 select sshd 5252 252831 1 0 3 0x100083 ttyin getty 33615 289447 1 0 3 0x80 select sshd 48120 253073 48408 73 3 0x100090 kqread syslogd 48408 523286 1 0 3 0x100082 netio syslogd 19577 216833 1 77 3 0x100090 poll dhclient 83574 131070 1 0 3 0x80 poll dhclient 35913 307475 0 0 3 0x14200 pgzero zerothread 49796 202920 0 0 3 0x14200 aiodoned aiodoned 4222 102656 0 0 2 0x14200 update 54839 216157 0 0 3 0x14200 cleaner cleaner 86154 147957 0 0 3 0x14200 reaper reaper 10165 116154 0 0 3 0x14200 pgdaemon pagedaemon 93538 452085 0 0 3 0x14200 bored crynlk 33151 379644 0 0 3 0x14200 bored crypto 25302 361553 0 0 3 0x40014200 acpi0 acpi0 61479 341062 0 0 3 0x14200 bored softnet 67608 235052 0 0 3 0x14200 bored systqmp 54736 299988 0 0 3 0x14200 bored systq *85589 399154 0 0 7 0x40014200 softclock 17751 419487 0 0 3 0x40014200 idle0 41157 333538 0 0 3 0x14200 bored smr 1 334002 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 6562K 8854K 78643K 31630 0 0 pcb 13 9K 10K 78643K 1000 0 0 rtable 111 12K 13K 78643K 2798 0 0 ifaddr 85 19K 21K 78643K 719 0 0 counters 19 16K 16K 78643K 19 0 0 ioctlops 0 0K 2K 78643K 225 0 0 iov 0 0K 33K 78643K 1271 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1235 78K 78K 78643K 7423 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 80 0 0 VM map 49 12K 12K 78643K 61 0 0 sem 12 0K 0K 78643K 1935 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1793 195K 288K 78643K 12645 0 0 file desc 5 13K 25K 78643K 4101 0 0 sigio 0 0K 2K 78643K 1261 0 0 proc 50 38K 63K 78643K 1686 0 0 subproc 32 2K 2K 78643K 467 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 373 0 0 in_multi 26 1K 2K 78643K 600 0 0 ether_multi 1 0K 0K 78643K 33 0 0 mrt 3 0K 0K 78643K 30 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 78 344K 344K 78643K 78 0 0 exec 0 0K 1K 78643K 964 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 160 339K 339K 78643K 11506 0 0 UVM aobj 130 4K 4K 78643K 145 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 970 0 0 NDP 20 0K 1K 78643K 252 0 0 temp 227 3544K 4184K 78643K 89671 0 0 kqueue 0 0K 0K 78643K 41 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 103 0 97 1 0 1 1 0 8 0 rtpcb 80 518 0 516 1 0 1 1 0 8 0 rtentry 112 552 0 514 2 0 2 2 0 8 0 unpcb 120 4854 0 4842 13 12 1 3 0 8 0 syncache 264 15 0 15 7 7 0 1 0 8 0 sackhl 24 1 0 1 1 1 0 1 0 8 0 tcpqe 32 69 0 69 5 5 0 1 0 8 0 tcpcb 544 1554 0 1548 7 5 2 2 0 8 1 ipq 40 21 0 21 11 10 1 1 0 8 1 ipqe 40 367 0 367 11 10 1 1 0 8 1 inpcb 280 7073 0 7064 22 20 2 4 0 8 0 rttmr 72 8 0 7 5 4 1 1 0 8 0 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 3 0 3 1 1 0 1 0 8 0 nd6 48 83 0 81 2 1 1 1 0 8 0 pkpcb 40 31 0 31 10 9 1 1 0 8 1 swfcl 56 7 0 0 1 0 1 1 0 8 0 ppxss 1128 90 0 90 18 17 1 1 0 8 1 art_heap8 4096 10 0 9 5 4 1 3 0 8 0 art_heap4 256 2495 0 2290 33 17 16 18 0 8 2 art_table 32 2505 0 2299 3 0 3 3 0 8 0 art_node 16 551 0 516 1 0 1 1 0 8 0 sysvmsgpl 40 44 0 22 1 0 1 1 0 8 0 semapl 112 1933 0 1923 1 0 1 1 0 8 0 shmpl 112 143 0 15 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 7843 0 6442 46 0 46 46 0 8 0 ffsino 240 7843 0 6442 83 0 83 83 0 8 0 nchpl 144 14622 0 14175 60 41 19 60 0 8 0 uvmvnodes 72 7756 0 0 142 0 142 142 0 8 0 vnodes 208 7756 0 0 409 0 409 409 0 8 0 namei 1024 53837 0 53837 6 5 1 1 0 8 1 vcpupl 1984 47 0 0 6 0 6 6 0 8 0 vmpool 520 59 0 12 4 0 4 4 0 8 0 scsiplug 64 9 0 9 4 4 0 1 0 8 0 scxspl 192 85107 0 85107 29 27 2 7 0 8 2 plimitpl 152 345 0 338 1 0 1 1 0 8 0 sigapl 432 4197 0 4184 2 0 2 2 0 8 0 futexpl 56 145510 0 145509 8 7 1 1 0 8 0 knotepl 112 1100 0 1081 2 1 1 2 0 8 0 kqueuepl 104 1045 0 1043 1 0 1 1 0 8 0 pipepl 112 5298 0 5279 22 20 2 3 0 8 1 fdescpl 424 4198 0 4184 2 0 2 2 0 8 0 filepl 120 47027 0 46927 41 36 5 10 0 8 1 lockfpl 104 1920 0 1919 1 0 1 1 0 8 0 lockfspl 48 672 0 671 1 0 1 1 0 8 0 sessionpl 112 42 0 32 1 0 1 1 0 8 0 pgrppl 48 68 0 58 1 0 1 1 0 8 0 ucredpl 96 5395 0 5388 1 0 1 1 0 8 0 zombiepl 144 4187 0 4187 1 0 1 1 0 8 1 processpl 864 4216 0 4187 4 0 4 4 0 8 0 procpl 632 9304 0 9266 5 1 4 5 0 8 0 sosppl 128 56 0 54 17 16 1 1 0 8 0 sockpl 384 12612 0 12589 64 58 6 14 0 8 3 mcl64k 65536 2702 0 2702 256 255 1 65 0 8 1 mcl16k 16384 58 0 58 16 15 1 1 0 8 1 mcl12k 12288 134 0 134 15 14 1 1 0 8 1 mcl9k 9216 78 0 78 17 16 1 1 0 8 1 mcl8k 8192 248 0 248 12 11 1 1 0 8 1 mcl4k 4096 477 0 477 11 10 1 1 0 8 1 mcl2k2 2112 34 0 34 15 15 0 1 0 8 0 mcl2k 2048 75603 0 75560 29 23 6 13 0 8 0 mtagpl 80 178 0 160 8 7 1 1 0 8 0 mbufpl 256 162531 0 162421 172 161 11 42 0 8 1 bufpl 256 37248 0 29487 486 0 486 486 0 8 0 anonpl 16 636437 0 616756 202 106 96 100 0 62 6 amapchunkpl 152 23501 0 23374 85 79 6 19 0 158 0 amappl16 192 31015 0 29819 197 126 71 73 0 8 8 amappl15 184 110 0 109 1 0 1 1 0 8 0 amappl14 176 918 0 913 1 0 1 1 0 8 0 amappl13 168 936 0 935 1 0 1 1 0 8 0 amappl12 160 300 0 297 1 0 1 1 0 8 0 amappl11 152 811 0 799 1 0 1 1 0 8 0 amappl10 144 431 0 431 4 4 0 1 0 8 0 amappl9 136 1547 0 1539 1 0 1 1 0 8 0 amappl8 128 1029 0 990 2 0 2 2 0 8 0 amappl7 120 569 0 563 1 0 1 1 0 8 0 amappl6 112 734 0 724 1 0 1 1 0 8 0 amappl5 104 644 0 633 1 0 1 1 0 8 0 amappl4 96 4987 0 4957 1 0 1 1 0 8 0 amappl3 88 1119 0 1112 1 0 1 1 0 8 0 amappl2 80 31209 0 31139 3 1 2 3 0 8 0 amappl1 72 87587 0 87169 27 18 9 20 0 8 0 amappl 80 9975 0 9915 3 1 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 144 0 15 3 0 3 3 0 8 0 uaddrrnd 24 4257 0 4184 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 4257 0 4184 1 0 1 1 0 8 0 vmmpekpl 168 34230 0 34197 2 0 2 2 0 8 0 vmmpepl 168 530995 0 528583 403 255 148 149 0 357 32 vmsppl 272 4197 0 4184 4 3 1 2 0 8 0 pdppl 4096 8520 0 8439 12 1 11 11 0 8 0 pvpl 32 1769980 0 1748158 597 354 243 319 0 265 53 pmappl 200 4256 0 4196 5 1 4 4 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1137 0 512 20 0 20 20 0 8 0