panic: kernel diagnostic assertion "ifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/netinet/if_ether.c", line 758 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *271667 24156 0 0x14000 0x40000200 0 softclock db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8278107d) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff827fc609,ffffffff82822ba9,2f6,ffffffff8274de74) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd805bd12aa0) at arptfree+0x131 sys/netinet/if_ether.c:758 arptimer(ffffffff82d49fe0) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82d49fe0) at timeout_run+0x8f sys/kern/kern_timeout.c:640 softclock_thread(ffff8000215ea298) at softclock_thread+0xd4 sys/kern/kern_timeout.c:763 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> ddb> set $lines = 0 ddb> set $maxwidth = 0 ddb> show panic *cpu0: kernel diagnostic assertion "ifp != NULL" failed: file "/syzkaller/managers/main/kernel/sys/netinet/if_ether.c", line 758 ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8278107d) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff827fc609,ffffffff82822ba9,2f6,ffffffff8274de74) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd805bd12aa0) at arptfree+0x131 sys/netinet/if_ether.c:758 arptimer(ffffffff82d49fe0) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82d49fe0) at timeout_run+0x8f sys/kern/kern_timeout.c:640 softclock_thread(ffff8000215ea298) at softclock_thread+0xd4 sys/kern/kern_timeout.c:763 end trace frame: 0x0, count: -7 ddb> show registers rdi 0 rsi 0x1 rbp 0xffff8000215f68d0 rbx 0 rdx 0 rcx 0 rax 0xffff8000215ea298 r8 0x101010101010101 r9 0x8080808080808080 r10 0x41ca9de808b9a463 r11 0x174d7f7129d601f6 r12 0 r13 0xfffffd8070af7c60 r14 0 r15 0x1 rip 0xffffffff82204c2c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff8000215f68c0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb> show proc PROC (softclock) tid=271667 pid=24156 tcnt=1 stat=onproc flags process=14000 proc=40000200 runpri=50, usrpri=55, slppri=0, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff8000215ea540,0xffff8000215e9d58 process=0xffff8000ffffe000 user=0xffff8000215f1000, vmspace=0xffffffff82d4b7b8 estcpu=5, cpticks=20, pctcpu=0.0, user=0, sys=20, intr=0 ddb> ps PID TID PPID UID S FLAGS WAIT COMMAND 46046 421803 97422 0 2 0 syz-executor.1 8481 302349 4356 60928 2 0x10 syz-executor.3 8481 459645 4356 60928 3 0x4000090 fsleep syz-executor.3 8481 484212 4356 60928 3 0x4000090 fsleep syz-executor.3 8481 115815 4356 60928 3 0x4000090 fsleep syz-executor.3 85634 379883 46088 0 2 0x480 syz-executor.4 85634 145500 46088 0 2 0x4000080 syz-executor.4 85407 298239 77231 0 2 0x2 syz-executor.7 90201 94775 77231 0 2 0x482 syz-executor.5 71375 95247 1 0 3 0x100083 ttyin getty 10090 438467 77231 0 2 0x482 syz-executor.2 46088 467056 77231 0 2 0x482 syz-executor.4 93813 200789 77231 0 2 0x482 syz-executor.6 97422 330551 77231 0 2 0x482 syz-executor.1 4356 402783 77231 0 2 0x482 syz-executor.3 98411 245906 0 0 3 0x14200 bored sosplice 77231 420389 69442 0 3 0x2000082 thrsleep syz-fuzzer 77231 305847 69442 0 3 0x6000082 nanoslp syz-fuzzer 77231 419562 69442 0 3 0x6000082 wait syz-fuzzer 77231 521746 69442 0 3 0x6000082 wait syz-fuzzer 77231 76884 69442 0 3 0x6000082 thrsleep syz-fuzzer 77231 40852 69442 0 3 0x6000082 thrsleep syz-fuzzer 77231 338280 69442 0 3 0x6000082 wait syz-fuzzer 77231 78119 69442 0 3 0x6000082 wait syz-fuzzer 77231 393836 69442 0 3 0x6000082 wait syz-fuzzer 77231 26438 69442 0 3 0x6000082 wait syz-fuzzer 77231 280060 69442 0 3 0x6000082 thrsleep syz-fuzzer 77231 485297 69442 0 2 0x6000002 syz-fuzzer 77231 475184 69442 0 3 0x6000082 wait syz-fuzzer 77231 482534 69442 0 3 0x6000082 wait syz-fuzzer 69442 210769 60073 0 3 0x10008a sigsusp ksh 60073 313072 74397 0 3 0x9a kqread sshd 74397 240253 1 0 3 0x88 kqread sshd 21208 485898 49138 73 2 0x1100010 syslogd 49138 426472 1 0 3 0x100082 netio syslogd 19351 345643 1 0 3 0x100080 kqread resolvd 83805 66410 85175 77 3 0x100092 kqread dhcpleased 69119 417297 85175 77 3 0x100092 kqread dhcpleased 85175 131241 1 0 3 0x80 kqread dhcpleased 31149 326001 0 0 3 0x14200 bored smr 19130 144905 0 0 2 0x14200 zerothread 65670 478789 0 0 3 0x14200 aiodoned aiodoned 33086 146070 0 0 3 0x14200 syncer update 49233 37003 0 0 3 0x14200 cleaner cleaner 78601 419054 0 0 2 0x14200 reaper 33270 241576 0 0 3 0x14200 pgdaemon pagedaemon 95160 133469 0 0 3 0x14200 bored viomb 54491 348330 0 0 3 0x40014200 acpi0 acpi0 13473 281689 0 0 3 0x14200 bored softnet3 67378 493708 0 0 3 0x14200 bored softnet2 64602 9154 0 0 3 0x14200 bored softnet1 63834 53598 0 0 2 0x14200 softnet0 185 279687 0 0 2 0x14200 systqmp 5322 243562 0 0 3 0x14200 bored systq *24156 271667 0 0 7 0x40014200 softclock 97589 405998 0 0 3 0x40014200 idle0 1 317909 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 devbuf 10175 6424K 7812K 78643K 37753 0 pcb 13 14K 15K 78643K 567 0 rtable 239 7K 7K 78643K 1155 0 pf 29 8K 9K 78643K 211 0 ifaddr 43 12K 13K 78643K 175 0 ifgroup 50 2K 2K 78643K 338 0 sysctl 3 0K 0K 78643K 3 0 counters 28 17K 17K 78643K 101 0 ioctlops 0 0K 2K 78643K 89 0 iov 0 0K 26K 78643K 401 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1485 93K 93K 78643K 7558 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 73 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 880 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 14 49K 77K 78643K 5560 0 sigio 0 0K 0K 78643K 141 0 proc 58 59K 83K 78643K 1211 0 subproc 104 6K 7K 78643K 338 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1184 0 in_multi 99 7K 7K 78643K 562 0 ether_multi 1 0K 0K 78643K 7 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 67 307K 307K 78643K 67 0 exec 0 0K 1K 78643K 1245 0 pfkey data 0 0K 0K 78643K 4 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 354 91K 96K 78643K 52857 0 UVM aobj 131 4K 4K 78643K 132 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 145 0 NDP 11 0K 1K 78643K 134 0 temp 74 5912K 6040K 78643K 49218 0 kqueue 12 18K 26K 78643K 415 0 SYN cache 2 16K 16K 78643K 2 0 ddb> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle rtpcb 120 403 0 400 5 4 1 3 0 8 0 rtentry 112 305 0 194 5 1 4 4 0 8 0 unpcb 144 3272 0 3193 46 43 3 6 0 8 0 syncache 304 55 0 55 11 10 1 1 0 8 1 tcpqe 32 183 140 183 7 6 1 1 0 8 1 tcpcb 808 1486 0 1476 49 44 5 9 0 8 3 arp 88 54 0 35 1 0 1 1 0 8 0 ipq 40 23 0 21 5 4 1 1 0 8 0 ipqe 40 77 0 73 5 4 1 1 0 8 0 inpcb 336 4759 0 4745 82 75 7 13 0 8 5 nd6 104 78 0 54 1 0 1 1 0 8 0 pkpcb 40 14 0 14 3 3 0 1 0 8 0 kcovpl 48 26 0 18 1 0 1 1 0 8 0 ppxss 1160 20 0 20 5 4 1 1 0 8 1 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1224 0 759 38 8 30 30 0 8 0 art_table 32 1225 0 759 5 1 4 4 0 8 0 art_node 16 302 0 201 1 0 1 1 0 8 0 semapl 112 878 0 868 1 0 1 1 0 8 0 shmpl 112 129 0 1 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 8587 0 7129 92 0 92 92 0 8 0 ffsino 240 8587 0 7129 87 0 87 87 0 8 0 nchpl 144 16577 0 14936 63 0 63 63 0 8 0 uvmvnodes 80 5928 0 0 121 0 121 121 0 8 0 vnodes 216 5928 0 0 330 0 330 330 0 8 0 namei 1024 60517 0 60517 12 11 1 3 0 8 1 kstatmem 264 168 0 146 2 0 2 2 0 8 0 scxspl 216 58988 0 58988 22 21 1 8 1 8 1 plimitpl 152 1264 0 1247 1 0 1 1 0 8 0 sigapl 424 6020 0 5976 8 1 7 8 0 8 0 futexpl 64 55874 0 55870 7 6 1 1 0 8 0 knotepl 120 69608 0 69530 50 47 3 11 0 8 0 kqueuepl 184 3015 0 2974 44 38 6 7 0 8 4 pipepl 288 1283 0 1256 29 26 3 7 0 8 0 fdescpl 432 5803 0 5778 5 1 4 4 0 8 0 filepl 120 42701 0 42366 76 65 11 17 0 8 0 lockfpl 104 9051 0 9048 24 23 1 4 0 8 0 lockfspl 48 3957 0 3954 4 3 1 2 0 8 0 sessionpl 144 42 0 26 1 0 1 1 0 8 0 pgrppl 48 56 0 40 1 0 1 1 0 8 0 ucredpl 104 5052 0 5040 1 0 1 1 0 8 0 zombiepl 144 5980 0 5976 3 2 1 1 0 8 0 processpl 1008 6020 0 5976 12 4 8 9 0 8 0 procpl 680 14204 0 14143 13 5 8 9 0 8 0 sosppl 168 94 0 94 6 5 1 1 0 8 1 sockpl 456 8452 0 8356 208 195 13 37 0 8 0 mcl64k 65536 212 0 212 18 17 1 1 0 8 1 mcl16k 16384 102 0 102 17 16 1 1 0 8 1 mcl12k 12288 151 0 151 14 13 1 1 0 8 1 mcl9k 9216 57 0 57 15 14 1 1 0 8 1 mcl8k 8192 482 0 482 11 10 1 1 0 8 1 mcl4k 4096 846 0 846 16 12 4 4 0 8 4 mcl2k2 2112 34 0 34 15 14 1 1 0 8 1 mcl2k 2048 75838 0 75784 65 45 20 29 0 8 8 mtagpl 96 6261 0 4632 66 20 46 46 0 8 0 mbufpl 256 175291 0 173571 262 127 135 174 0 8 8 bufpl 288 15936 0 9541 458 0 458 458 0 8 0 anonpl 24 654738 0 636150 194 81 113 141 0 188 0 amapchunkpl 152 168852 0 167746 82 38 44 58 0 158 0 amappl16 200 11948 0 11476 39 14 25 36 0 8 0 amappl15 192 50 0 49 1 0 1 1 0 8 0 amappl14 184 213 0 202 2 1 1 2 0 8 0 amappl13 176 15 0 15 1 1 0 1 0 8 0 amappl12 168 6689 0 6664 2 0 2 2 0 8 0 amappl11 160 54 0 43 1 0 1 1 0 8 0 amappl10 152 46 0 36 2 1 1 1 0 8 0 amappl9 144 211 0 209 1 0 1 1 0 8 0 amappl8 136 398 0 312 4 0 4 4 0 8 0 amappl7 128 96 0 82 1 0 1 1 0 8 0 amappl6 120 362 0 340 2 1 1 2 0 8 0 amappl5 112 315 0 307 1 0 1 1 0 8 0 amappl4 104 745 0 710 2 0 2 2 0 8 0 amappl3 96 33461 0 33383 5 2 3 3 0 8 0 amappl2 88 6180 0 6116 3 1 2 3 0 8 0 amappl1 80 30317 0 29810 22 11 11 22 0 8 0 amappl 88 52056 0 51836 6 0 6 6 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 131 0 1 3 0 3 3 0 8 0 uaddrrnd 24 5803 0 5778 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5803 0 5778 1 0 1 1 0 8 0 vmmpekpl 168 47224 0 47174 3 0 3 3 0 8 0 vmmpepl 168 357648 0 355413 257 152 105 148 0 357 3 vmsppl 368 5802 0 5777 3 0 3 3 0 8 0 rwobjpl 24 91359 0 83803 48 1 47 47 0 8 0 pdppl 4096 11613 0 11554 364 299 65 73 0 8 6 pvpl 32 1792480 0 1766026 580 349 231 352 0 265 11 pmappl 216 5802 0 5777 2 0 2 2 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1623 0 697 28 0 28 28 0 8 0 ddb> machine ddbcpu 0 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8278107d) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff827fc609,ffffffff82822ba9,2f6,ffffffff8274de74) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd805bd12aa0) at arptfree+0x131 sys/netinet/if_ether.c:758 arptimer(ffffffff82d49fe0) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82d49fe0) at timeout_run+0x8f sys/kern/kern_timeout.c:640 softclock_thread(ffff8000215ea298) at softclock_thread+0xd4 sys/kern/kern_timeout.c:763 end trace frame: 0x0, count: -7 ddb> machine ddbcpu 1 No such command ddb> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8278107d) at panic+0x165 sys/kern/subr_prf.c:198 __assert(ffffffff827fc609,ffffffff82822ba9,2f6,ffffffff8274de74) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd805bd12aa0) at arptfree+0x131 sys/netinet/if_ether.c:758 arptimer(ffffffff82d49fe0) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82d49fe0) at timeout_run+0x8f sys/kern/kern_timeout.c:640 softclock_thread(ffff8000215ea298) at softclock_thread+0xd4 sys/kern/kern_timeout.c:763 end trace frame: 0x0, count: -7