panic: kernel diagnostic assertion "ifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/netinet/if_ether.c", line 776 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 285462 5057 74 0x1100012 0 1 pflogd *448448 23212 0 0x14000 0x40000200 0K softclock db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff825afc42) at panic+0x177 sys/kern/subr_prf.c:198 __assert(ffffffff8262370a,ffffffff82620efe,308,ffffffff8257e97d) at __assert+0x25 sys/kern/subr_prf.c:157 arptfree(fffffd8065b08e88) at arptfree+0x12e sys/netinet/if_ether.c:776 arptimer(ffffffff82aed7b0) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82aed7b0) at timeout_run+0xcc sys/kern/kern_timeout.c:641 softclock_thread(ffff8000211e9500) at softclock_thread+0x134 sys/kern/kern_timeout.c:765 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{0}> ddb{0}> set $lines = 0 ddb{0}> set $maxwidth = 0 ddb{0}> show panic *cpu0: kernel diagnostic assertion "ifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/netinet/if_ether.c", line 776 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff825afc42) at panic+0x177 sys/kern/subr_prf.c:198 __assert(ffffffff8262370a,ffffffff82620efe,308,ffffffff8257e97d) at __assert+0x25 sys/kern/subr_prf.c:157 arptfree(fffffd8065b08e88) at arptfree+0x12e sys/netinet/if_ether.c:776 arptimer(ffffffff82aed7b0) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82aed7b0) at timeout_run+0xcc sys/kern/kern_timeout.c:641 softclock_thread(ffff8000211e9500) at softclock_thread+0x134 sys/kern/kern_timeout.c:765 end trace frame: 0x0, count: -7 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff8000211f5080 rbx 0xffffffff82941b8f cpu_info_full_primary+0x2b8f rdx 0 rcx 0 rax 0xffff8000211e9500 r8 0x101010101010101 r9 0x8080808080808080 r10 0xa874d46dbb8efaa1 r11 0x968c1857416b57a3 r12 0xffffffff82941990 cpu_info_full_primary+0x2990 r13 0 r14 0 r15 0x1 rip 0xffffffff8211b3e8 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff8000211f5070 ss 0x10 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (softclock) pid=448448 stat=onproc flags process=14000 proc=40000200 pri=50, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff8000211e9a40,0xffff8000211e8fd0 process=0xffff8000ffffe990 user=0xffff8000211f0000, vmspace=0xffffffff82a27610 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 17397 420145 40588 0 2 0 syz-executor.5 17397 270456 40588 0 2 0x4000000 syz-executor.5 54598 258581 51499 0 2 0 syz-executor.3 54598 323867 51499 0 3 0x4000080 fsleep syz-executor.3 40588 472350 76182 0 2 0x482 syz-executor.5 38203 225259 76182 0 2 0x482 syz-executor.2 59300 326851 76182 0 2 0x2 syz-executor.0 62961 215879 76182 0 2 0x482 syz-executor.4 90611 292189 76182 0 2 0x2 syz-executor.6 48481 421546 76182 0 2 0x2 syz-executor.1 43366 367173 0 0 3 0x14200 bored sosplice 51499 53830 76182 0 2 0x482 syz-executor.3 76182 269131 94482 0 3 0x82 wait syz-fuzzer 76182 203940 94482 0 2 0x4000482 syz-fuzzer 76182 201569 94482 0 3 0x4000082 wait syz-fuzzer 76182 300382 94482 0 3 0x4000082 thrsleep syz-fuzzer 76182 451470 94482 0 3 0x4000082 thrsleep syz-fuzzer 76182 68549 94482 0 3 0x4000082 thrsleep syz-fuzzer 76182 426033 94482 0 2 0x4000002 syz-fuzzer 76182 99949 94482 0 3 0x4000082 wait syz-fuzzer 76182 514927 94482 0 3 0x4000082 thrsleep syz-fuzzer 76182 371092 94482 0 3 0x4000082 wait syz-fuzzer 76182 201498 94482 0 3 0x4000082 wait syz-fuzzer 76182 431584 94482 0 2 0x4000082 syz-fuzzer 76182 393112 94482 0 3 0x4000082 thrsleep syz-fuzzer 76182 51702 94482 0 3 0x4000082 wait syz-fuzzer 76182 402711 94482 0 3 0x4000082 wait syz-fuzzer 76182 178707 94482 0 3 0x4000082 wait syz-fuzzer 94482 143259 86598 0 3 0x10008a sigsusp ksh 86598 149062 30320 0 3 0x9a kqread sshd 83825 215800 1 0 3 0x100083 ttyin getty 30320 506981 1 0 3 0x88 kqread sshd 5057 285462 94552 74 7 0x1100012 pflogd 94552 393732 1 0 3 0x80 netio pflogd 184 31063 62791 73 3 0x1100090 kqread syslogd 62791 44121 1 0 3 0x100082 netio syslogd 35417 487072 1 0 3 0x100080 kqread resolvd 83509 74160 10686 77 3 0x100092 kqread dhcpleased 96092 52850 10686 77 3 0x100092 kqread dhcpleased 10686 326794 1 0 3 0x80 kqread dhcpleased 43629 182847 0 0 2 0x40014200 smr 82425 362321 0 0 2 0x14200 zerothread 69818 371774 0 0 3 0x14200 aiodoned aiodoned 409 446652 0 0 2 0x14600 update 17297 232475 0 0 3 0x14200 cleaner cleaner 99192 256867 0 0 2 0x14200 reaper 70735 418518 0 0 3 0x14200 pgdaemon pagedaemon 7619 351126 0 0 3 0x14200 bored viomb 28760 245648 0 0 3 0x40014200 acpi0 acpi0 93043 251590 0 0 3 0x40014200 idle1 61413 129928 0 0 3 0x14200 bored softnet 94341 479698 0 0 3 0x14200 bored softnet 3758 1481 0 0 3 0x14200 bored softnet 80914 350733 0 0 3 0x14200 bored softnet 79740 347441 0 0 2 0x14200 systqmp 19258 172805 0 0 3 0x14200 bored systq *23212 448448 0 0 7 0x40014200 softclock 81297 47202 0 0 3 0x40014200 idle0 1 21195 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10275 6703K 7148K 78643K 20196 0 pcb 13 12K 14K 78643K 1179 0 rtable 233 9K 10K 78643K 1430 0 ifaddr 118 23K 24K 78643K 549 0 sysctl 2 0K 0K 78643K 2 0 counters 60 35K 36K 78643K 288 0 ioctlops 0 0K 4K 78643K 1865 0 iov 0 0K 48K 78643K 749 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1472 92K 92K 78643K 5748 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 43 0 VM map 2 1K 1K 78643K 2 0 sem 20 1K 1K 78643K 104 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 12 41K 97K 78643K 5051 0 sigio 0 0K 0K 78643K 93 0 proc 70 91K 115K 78643K 1126 0 subproc 104 6K 6K 78643K 273 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 139 0 in_multi 88 6K 6K 78643K 344 0 ether_multi 1 0K 0K 78643K 29 0 mrt 1 0K 0K 78643K 22 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 301 1341K 1341K 78643K 301 0 exec 0 0K 1K 78643K 1075 0 pfkey data 0 0K 0K 78643K 8 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 403 586K 587K 78643K 36439 0 UVM aobj 131 8K 8K 78643K 132 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 152 0 NDP 15 0K 2K 78643K 148 0 temp 141 4702K 5726K 78643K 72397 0 kqueue 12 18K 26K 78643K 365 0 SYN cache 2 16K 16K 78643K 2 0 ddb{0}> 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 384 0 381 6 5 1 3 0 8 0 rtentry 112 344 0 243 4 0 4 4 0 8 0 unpcb 144 12059 0 12044 57 52 5 15 0 8 4 syncache 296 25 0 25 9 9 0 1 0 8 0 tcpqe 32 1208 32 1208 9 9 0 2 0 8 0 tcpcb 776 1414 0 1406 48 40 8 11 0 8 6 arp 120 57 0 40 1 0 1 1 0 8 0 inpcb 368 5109 0 5098 65 58 7 13 0 8 5 nd6 48 73 0 52 1 0 1 1 0 8 0 pkpcb 40 15 0 15 3 3 0 1 0 8 0 kcovpl 48 21 0 13 1 0 1 1 0 8 0 mppekey 1024 3 0 3 1 1 0 1 0 8 0 ppxss 1256 66 0 66 8 8 0 1 0 8 0 pppxif 1704 15 0 15 3 3 0 1 0 8 0 pfstscr 40 3 0 0 1 0 1 1 0 8 0 pffrag 232 19 0 19 2 2 0 1 0 482 0 pffrnode 88 17 0 17 2 2 0 1 0 8 0 pffrent 40 42 0 42 2 2 0 1 0 8 0 pfosfp 40 1428 0 1005 5 0 5 5 0 8 0 pfosfpen 112 1428 0 714 21 0 21 21 0 8 0 pfanchor 1280 457 0 203 22 0 22 22 0 8 0 pfstitem 24 6 0 0 1 0 1 1 0 8 0 pfstkey 120 6 0 4 1 0 1 1 0 8 0 pfstate 384 3 0 0 1 0 1 1 0 8 0 rttmr 136 3 0 3 1 1 0 1 0 8 0 art_heap8 4096 3 0 1 2 0 2 2 0 8 0 art_heap4 256 1396 0 947 38 9 29 29 0 8 0 art_table 32 1399 0 948 4 0 4 4 0 8 0 art_node 16 343 0 252 1 0 1 1 0 8 0 semupl 112 1 0 1 1 1 0 1 0 8 0 semapl 112 91 0 73 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 8145 0 6680 92 0 92 92 0 8 0 ffsino 272 8145 0 6680 98 0 98 98 0 8 0 nchpl 144 15199 0 13558 63 0 63 63 0 8 0 rtmask 32 2 0 2 1 1 0 1 0 8 0 uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0 vnodes 216 5926 0 0 330 0 330 330 0 8 0 namei 1024 53780 0 53780 5 4 1 2 0 8 1 percpumem 16 156 0 114 1 0 1 1 0 8 0 vcpupl 2048 37 0 0 5 0 5 5 0 8 0 vmpool 568 44 0 7 4 1 3 3 0 8 0 kstatmem 264 200 0 170 3 0 3 3 0 8 0 scxspl 216 45250 0 45250 17 16 1 8 0 8 1 plimitpl 152 660 0 644 1 0 1 1 0 8 0 sigapl 424 5358 0 5313 9 2 7 8 0 8 0 futexpl 64 42569 0 42568 3 2 1 1 0 8 0 knotepl 120 426 0 0 10 0 10 10 0 8 0 kqueuepl 216 731 0 723 9 8 1 5 0 8 0 pipepl 320 1237 0 1210 35 29 6 8 0 8 3 fdescpl 496 5319 0 5294 5 1 4 5 0 8 0 filepl 152 43462 0 43222 79 62 17 25 0 8 7 lockfpl 104 1463 0 1461 2 1 1 2 0 8 0 lockfspl 48 460 0 458 1 0 1 1 0 8 0 sessionpl 144 37 0 20 1 0 1 1 0 8 0 pgrppl 48 43 0 26 1 0 1 1 0 8 0 ucredpl 104 4532 0 4520 1 0 1 1 0 8 0 zombiepl 144 5316 0 5313 2 1 1 1 0 8 0 processpl 1064 5358 0 5313 5 1 4 5 0 8 0 procpl 672 14603 0 14541 11 4 7 9 0 8 0 srpgc 96 14 0 14 6 6 0 1 0 8 0 sosppl 168 62 0 61 5 4 1 1 0 8 0 sockpl 488 17573 0 17544 432 419 13 52 0 8 8 mcl64k 65536 14 0 0 2 0 2 2 0 8 0 mcl16k 16384 15 0 0 2 0 2 2 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 17 0 0 3 0 3 3 0 8 0 mcl2k2 2112 8 0 0 1 0 1 1 0 8 0 mcl2k 2048 396 0 0 49 0 49 49 0 8 0 mtagpl 96 717 0 0 16 0 16 16 0 8 0 mbufpl 256 1268 0 0 78 0 78 78 0 8 0 bufpl 288 11821 0 5490 453 0 453 453 0 8 0 anonpl 24 1089403 0 1072131 182 52 130 137 0 186 16 amapchunkpl 152 103812 0 103099 65 29 36 45 0 158 2 amappl16 200 10334 0 9786 51 21 30 39 0 8 0 amappl15 192 3 0 3 1 1 0 1 0 8 0 amappl14 184 191 0 176 2 1 1 2 0 8 0 amappl13 176 8 0 7 1 0 1 1 0 8 0 amappl12 168 577 0 574 1 0 1 1 0 8 0 amappl11 160 51 0 36 1 0 1 1 0 8 0 amappl10 152 53 0 41 1 0 1 1 0 8 0 amappl9 144 988 0 986 1 0 1 1 0 8 0 amappl8 136 316 0 230 3 0 3 3 0 8 0 amappl7 128 79 0 61 1 0 1 1 0 8 0 amappl6 120 426 0 408 2 1 1 2 0 8 0 amappl5 112 157 0 146 1 0 1 1 0 8 0 amappl4 104 719 0 686 3 2 1 3 0 8 0 amappl3 96 15492 0 15443 2 0 2 2 0 8 0 amappl2 88 5886 0 5810 3 1 2 3 0 8 0 amappl1 80 122594 0 121896 28 11 17 22 0 8 0 amappl 88 35884 0 35668 7 1 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 5363 0 5301 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5363 0 5301 1 0 1 1 0 8 0 vmmpekpl 168 46714 0 46652 4 0 4 4 0 8 0 vmmpepl 168 488731 0 486188 187 54 133 150 0 357 0 vmsppl 368 5362 0 5300 8 1 7 7 0 8 0 rwobjpl 56 136319 0 128506 115 3 112 112 0 8 0 pdppl 4096 10733 0 10637 335 231 104 106 0 8 8 pvpl 32 2170029 0 2147415 400 154 246 265 0 265 49 pmappl 248 5362 0 5300 7 2 5 5 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1253 0 314 27 0 27 27 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff825afc42) at panic+0x177 sys/kern/subr_prf.c:198 __assert(ffffffff8262370a,ffffffff82620efe,308,ffffffff8257e97d) at __assert+0x25 sys/kern/subr_prf.c:157 arptfree(fffffd8065b08e88) at arptfree+0x12e sys/netinet/if_ether.c:776 arptimer(ffffffff82aed7b0) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82aed7b0) at timeout_run+0xcc sys/kern/kern_timeout.c:641 softclock_thread(ffff8000211e9500) at softclock_thread+0x134 sys/kern/kern_timeout.c:765 end trace frame: 0x0, count: -7 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp x86_ipi_db(ffff800020dd8ff0) at x86_ipi_db+0x1a 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+0x23 __mp_lock(ffffffff82a3aee0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82a3aee0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 vn_read(fffffd806e531568,ffff80002126a958,0) at vn_read+0x46 sys/kern/vfs_vnops.c:351 dofilereadv(ffff8000212337a8,4,ffff80002126a958,0,ffff80002126aa40) at dofilereadv+0x19e sys/kern/sys_generic.c:247 sys_read(ffff8000212337a8,ffff80002126a9f0,ffff80002126aa40) at sys_read+0x83 sys/kern/sys_generic.c:167 syscall(ffff80002126aac0) at syscall+0x4c2 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff80002126aac0) at syscall+0x4c2 sys/arch/amd64/amd64/trap.c:599 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdd190, count: 6 ddb{1}> trace x86_ipi_db(ffff800020dd8ff0) at x86_ipi_db+0x1a 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+0x23 __mp_lock(ffffffff82a3aee0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82a3aee0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 vn_read(fffffd806e531568,ffff80002126a958,0) at vn_read+0x46 sys/kern/vfs_vnops.c:351 dofilereadv(ffff8000212337a8,4,ffff80002126a958,0,ffff80002126aa40) at dofilereadv+0x19e sys/kern/sys_generic.c:247 sys_read(ffff8000212337a8,ffff80002126a9f0,ffff80002126aa40) at sys_read+0x83 sys/kern/sys_generic.c:167 syscall(ffff80002126aac0) at syscall+0x4c2 mi_syscall sys/sys/syscall_mi.h:101 [inline] syscall(ffff80002126aac0) at syscall+0x4c2 sys/arch/amd64/amd64/trap.c:599 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7f7ffffdd190, count: -9