panic: kernel diagnostic assertion "ifp != NULL" failed: file "/syzkaller/managers/setuid/kernel/sys/netinet/if_ether.c", line 758 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND *357561 52466 0 0x14000 0x40000200 0K softclock db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a9dca) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff828256a0,ffffffff828736fb,2f6,ffffffff82771365) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd806bc990f0) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82d21498) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82d21498) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread(ffff8000211597e8) at softclock_thread+0x114 sys/kern/kern_timeout.c:809 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/setuid/kernel/sys/netinet/if_ether.c", line 758 ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a9dca) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff828256a0,ffffffff828736fb,2f6,ffffffff82771365) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd806bc990f0) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82d21498) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82d21498) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread(ffff8000211597e8) at softclock_thread+0x114 sys/kern/kern_timeout.c:809 end trace frame: 0x0, count: -7 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800021165950 rbx 0xffffffff82bceba7 cpu_info_full_primary+0x2ba7 rdx 0 rcx 0xffff8000211597e8 rax 0xffffffff82bcdff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x1db51a304357420d r11 0x3761c354747f00 r12 0xffffffff82bce9a8 cpu_info_full_primary+0x29a8 r13 0 r14 0 r15 0x1 rip 0xffffffff81af7dec db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800021165940 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (softclock) tid=357561 pid=52466 tcnt=1 stat=onproc flags process=14000 proc=40000200 runpri=0, usrpri=51, slppri=0, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff800021159a90,0xffff800021159550 process=0xffff8000ffffe180 user=0xffff800021160000, vmspace=0xffffffff82c8b170 estcpu=1, cpticks=1, pctcpu=0.1, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 94732 308145 28618 32767 3 0x90 nanoslp syz-executor.4 94732 376093 28618 32767 3 0x4000090 netio syz-executor.4 94732 392736 28618 32767 3 0x4000090 fsleep syz-executor.4 94732 6332 28618 32767 3 0x4000090 fsleep syz-executor.4 65026 177430 77426 32767 3 0x90 piperd syz-executor.6 77426 121455 97920 0 3 0x82 wait syz-executor.6 15618 448076 68466 32767 3 0x90 piperd syz-executor.5 68466 73869 97920 0 3 0x82 wait syz-executor.5 71892 174586 13619 32767 3 0x90 piperd syz-executor.2 13619 49196 97920 0 3 0x82 wait syz-executor.2 31613 75367 88882 32767 3 0x90 piperd syz-executor.3 88882 421140 97920 0 3 0x82 wait syz-executor.3 28618 264451 10974 32767 3 0x90 nanoslp syz-executor.4 10974 35942 97920 0 3 0x82 wait syz-executor.4 77268 421779 0 0 3 0x14200 bored sosplice 1969 473512 42194 32767 3 0x90 piperd syz-executor.7 42194 164490 97920 0 3 0x82 wait syz-executor.7 97929 356650 48299 32767 3 0x90 nanoslp syz-executor.1 48299 419451 97920 0 3 0x82 wait syz-executor.1 88616 398832 97920 0 3 0x82 wait syz-executor.0 97920 227694 23872 0 3 0x2000082 wait syz-fuzzer 97920 290467 23872 0 3 0x6000082 thrsleep syz-fuzzer 97920 95020 23872 0 3 0x6000082 thrsleep syz-fuzzer 97920 419108 23872 0 3 0x6000082 thrsleep syz-fuzzer 97920 236410 23872 0 3 0x6000082 kqread syz-fuzzer 97920 453719 23872 0 3 0x6000082 wait syz-fuzzer 97920 85844 23872 0 3 0x6000082 wait syz-fuzzer 97920 256561 23872 0 3 0x6000082 wait syz-fuzzer 97920 407198 23872 0 3 0x6000082 thrsleep syz-fuzzer 97920 278600 23872 0 3 0x6000082 wait syz-fuzzer 97920 78861 23872 0 3 0x6000082 thrsleep syz-fuzzer 97920 500417 23872 0 3 0x6000082 thrsleep syz-fuzzer 97920 340029 23872 0 3 0x6000082 wait syz-fuzzer 97920 440985 23872 0 3 0x6000082 thrsleep syz-fuzzer 97920 355054 23872 0 3 0x6000082 wait syz-fuzzer 97920 46027 23872 0 3 0x6000082 wait syz-fuzzer 23872 56497 87742 0 3 0x10008a sigsusp ksh 87742 469131 29314 0 3 0x9a kqread sshd 31463 143317 1 0 3 0x100083 ttyin getty 29314 427295 1 0 3 0x88 kqread sshd 22553 251649 62241 73 3 0x1100090 kqread syslogd 62241 447459 1 0 3 0x100082 netio syslogd 90164 197062 1 0 3 0x100080 kqread resolvd 1344 476857 66460 77 3 0x100092 kqread dhcpleased 1802 354214 66460 77 3 0x100092 kqread dhcpleased 66460 228537 1 0 3 0x80 kqread dhcpleased 25877 433802 0 0 3 0x14200 bored smr 66720 507092 0 0 3 0x14200 pgzero zerothread 54584 29914 0 0 3 0x14200 aiodoned aiodoned 65903 123827 0 0 3 0x14200 syncer update 85769 502872 0 0 3 0x14200 cleaner cleaner 12954 274600 0 0 3 0x14200 reaper reaper 80395 382151 0 0 3 0x14200 pgdaemon pagedaemon 39989 484198 0 0 3 0x14200 bored viomb 13775 376418 0 0 3 0x40014200 acpi0 acpi0 39583 366942 0 0 7 0x40014200 idle1 85522 245197 0 0 3 0x14200 bored softnet3 6156 4853 0 0 3 0x14200 bored softnet2 66072 473442 0 0 3 0x14200 bored softnet1 87071 426882 0 0 3 0x14200 bored softnet0 33344 486298 0 0 3 0x14200 bored systqmp 99261 370591 0 0 3 0x14200 bored systq 75570 241580 0 0 3 0x14200 tmoslp softclockmp *52466 357561 0 0 7 0x40014200 softclock 36297 85056 0 0 3 0x40014200 idle0 1 436876 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 52466 (softclock) thread 0xffff8000211597e8 (357561) exclusive rwlock netlock r = 0 (0xffffffff82bb3060) #0 witness_lock+0x447 #1 arptimer+0x26 sys/netinet/if_ether.c:132 #2 timeout_run+0xd0 sys/kern/kern_timeout.c:665 #3 softclock_thread+0x114 sys/kern/kern_timeout.c:809 #4 proc_trampoline+0x10 shared rwlock timeout r = 0 (0xffffffff82ba1990) #0 witness_lock+0x447 #1 timeout_run+0xbb sys/kern/kern_timeout.c:661 #2 softclock_thread+0x114 sys/kern/kern_timeout.c:809 #3 proc_trampoline+0x10 exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82d7f890) #0 witness_lock+0x447 #1 __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 #2 mi_switch+0x46d sys/kern/sched_bsd.c:470 #3 sleep_finish+0x19b sys/kern/kern_synch.c:414 #4 msleep+0xea sys/kern/kern_synch.c:249 #5 softclock_thread+0xd0 sys/kern/kern_timeout.c:805 #6 proc_trampoline+0x10 ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10217 6413K 6420K 78643K 11333 0 pcb 13 12K 14K 78643K 17 0 rtable 254 7K 7K 78643K 1129 0 pf 29 8K 8K 78643K 53 0 ifaddr 44 15K 15K 78643K 96 0 ifgroup 50 2K 2K 78643K 98 0 sysctl 3 0K 2K 78643K 7 0 counters 60 35K 35K 78643K 84 0 ioctlops 0 0K 2K 78643K 140 0 iov 0 0K 16K 78643K 1157 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 7929 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 140 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 1905 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 20 73K 121K 78643K 10484 0 sigio 0 0K 0K 78643K 237 0 proc 56 78K 127K 78643K 1184 0 subproc 104 6K 6K 78643K 260 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 904 0 in_multi 99 7K 7K 78643K 288 0 ether_multi 1 0K 0K 78643K 10 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 241 1076K 1076K 78643K 241 0 exec 0 0K 1K 78643K 1945 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 391 91K 101K 78643K 105229 0 UVM aobj 131 4K 4K 78643K 137 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 305 0 NDP 11 0K 2K 78643K 63 0 temp 74 5920K 6048K 78643K 28540 0 kqueue 12 18K 30K 78643K 1580 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 655 0 652 12 11 1 5 0 8 0 rtentry 112 272 0 152 4 0 4 4 0 8 0 unpcb 144 11538 0 11521 142 141 1 8 0 8 0 syncache 304 122 0 122 21 21 0 1 0 8 0 tcpqe 32 291 0 291 19 19 0 1 0 8 0 tcpcb 808 5096 0 5052 163 157 6 16 0 8 0 arp 120 45 0 26 1 0 1 1 0 8 0 ipq 40 24 0 24 8 8 0 1 0 8 0 ipqe 40 74 0 74 8 8 0 1 0 8 0 inpcb 368 8578 0 8531 222 213 9 18 0 8 4 nd6 136 86 0 53 2 0 2 2 0 8 0 kcovpl 48 20 0 12 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1072 0 577 32 0 32 32 0 8 0 art_table 32 1073 0 577 5 0 5 5 0 8 0 art_node 16 271 0 161 1 0 1 1 0 8 0 sysvmsgpl 40 37 0 36 1 0 1 1 0 8 0 semapl 112 1903 0 1893 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 dino2pl 256 19527 0 18068 92 0 92 92 0 8 0 ffsino 272 19527 0 18068 98 0 98 98 0 8 0 nchpl 144 33044 0 31401 63 0 63 63 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 118731 0 118731 4 3 1 2 0 8 1 percpumem 16 55 0 12 1 0 1 1 0 8 0 kstatmem 264 46 0 24 2 0 2 2 0 8 0 scxspl 216 84862 0 84862 49 48 1 8 1 8 1 plimitpl 152 1401 0 1378 15 14 1 2 0 8 0 sigapl 424 10745 0 10695 7 0 7 7 0 8 0 futexpl 64 88749 0 88747 1 0 1 1 0 8 0 knotepl 120 999 0 0 16 4 12 14 0 8 0 kqueuepl 216 7716 0 7708 134 133 1 10 0 8 0 pipepl 320 6635 0 6607 151 143 8 14 0 8 5 fdescpl 496 10726 0 10695 7 2 5 6 0 8 0 filepl 152 102273 0 102026 238 221 17 31 0 8 7 lockfpl 104 1393 0 1391 2 1 1 2 0 8 0 lockfspl 48 400 0 398 1 0 1 1 0 8 0 sessionpl 144 35 0 19 1 0 1 1 0 8 0 pgrppl 48 148 0 132 1 0 1 1 0 8 0 ucredpl 104 31641 0 31623 1 0 1 1 0 8 0 zombiepl 144 10697 0 10695 1 0 1 1 0 8 0 processpl 1072 10745 0 10695 5 1 4 5 0 8 0 procpl 680 29598 0 29530 41 33 8 9 0 8 0 sosppl 168 174 0 169 14 13 1 1 0 8 0 sockpl 488 21041 0 20974 538 525 13 32 0 8 4 mcl64k 65536 25 0 0 3 0 3 3 0 8 0 mcl16k 16384 26 0 0 4 1 3 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 13 0 0 1 0 1 1 0 8 0 mcl8k 8192 50 0 0 5 2 3 3 0 8 0 mcl4k 4096 41 0 0 3 0 3 3 0 8 0 mcl2k2 2112 9 0 0 1 0 1 1 0 8 0 mcl2k 2048 429 0 0 31 17 14 31 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 4330 0 0 232 0 232 232 0 8 0 bufpl 288 22382 0 16062 452 0 452 452 0 8 0 anonpl 24 1110276 0 1098970 198 107 91 111 0 186 0 amapchunkpl 152 336504 0 335665 148 108 40 48 0 158 2 amappl16 200 24173 0 23880 185 168 17 41 0 8 0 amappl15 192 13 0 13 1 1 0 1 0 8 0 amappl14 184 186 0 173 2 1 1 2 0 8 0 amappl13 176 27 0 26 1 0 1 1 0 8 0 amappl12 168 11513 0 11481 2 0 2 2 0 8 0 amappl11 160 44 0 33 1 0 1 1 0 8 0 amappl10 152 41 0 29 1 0 1 1 0 8 0 amappl9 144 284 0 283 1 0 1 1 0 8 0 amappl8 136 518 0 402 5 0 5 5 0 8 0 amappl7 128 280 0 251 3 1 2 3 0 8 0 amappl6 120 528 0 513 1 0 1 1 0 8 0 amappl5 112 340 0 331 1 0 1 1 0 8 0 amappl4 104 703 0 672 2 1 1 2 0 8 0 amappl3 96 65123 0 65035 32 29 3 4 0 8 0 amappl2 88 11734 0 11657 3 1 2 3 0 8 0 amappl1 80 45979 0 45461 22 9 13 22 0 8 0 amappl 88 104248 0 104010 12 5 7 7 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 136 0 6 3 0 3 3 0 8 0 uaddrrnd 24 10727 0 10696 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 10727 0 10696 1 0 1 1 0 8 0 vmmpekpl 168 103472 0 103409 4 0 4 4 0 8 0 vmmpepl 168 630612 0 628370 226 113 113 124 0 357 1 vmsppl 464 10726 0 10696 7 2 5 6 0 8 0 rwobjpl 56 164128 0 156719 138 31 107 112 0 8 0 pdppl 4096 21462 0 21392 542 460 82 94 0 8 12 pvpl 32 3040616 0 3023565 543 379 164 337 0 265 0 pmappl 248 10726 0 10696 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1931 0 888 30 0 30 30 0 8 0 ddb{0}> machine ddbcpu 0 Invalid cpu 0 ddb{0}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a9dca) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff828256a0,ffffffff828736fb,2f6,ffffffff82771365) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd806bc990f0) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82d21498) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82d21498) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread(ffff8000211597e8) at softclock_thread+0x114 sys/kern/kern_timeout.c:809 end trace frame: 0x0, count: -7 ddb{0}> machine ddbcpu 1 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffff800020d48ff0) at x86_ipi_db+0x1e 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+0x27 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020d48ff0) at sched_idle+0x41e sys/kern/kern_sched.c:191 end trace frame: 0x0, count: 10 ddb{1}> trace x86_ipi_db(ffff800020d48ff0) at x86_ipi_db+0x1e 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+0x27 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020d48ff0) at sched_idle+0x41e sys/kern/kern_sched.c:191 end trace frame: 0x0, count: -5