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 490372 15283 32767 0x10 0 1 syz-executor.5 * 30356 63521 0 0x14000 0x40000200 0K softclock db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a7c27) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8282782d,ffffffff8287155a,2f6,ffffffff827746a7) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd8067018008) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82c6c018) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82c6c018) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread(ffff800021169298) 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(ffffffff827a7c27) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8282782d,ffffffff8287155a,2f6,ffffffff827746a7) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd8067018008) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82c6c018) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82c6c018) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread(ffff800021169298) 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 0xffff800021175b70 rbx 0xffffffff82c30ba7 cpu_info_full_primary+0x2ba7 rdx 0 rcx 0xffff800021169298 rax 0xffffffff82c2fff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xcbd492d3de3b5038 r11 0x79fe42db22481791 r12 0xffffffff82c309a8 cpu_info_full_primary+0x29a8 r13 0 r14 0 r15 0x1 rip 0xffffffff822ba38c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800021175b60 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (softclock) tid=30356 pid=63521 tcnt=1 stat=onproc flags process=14000 proc=40000200 runpri=0, usrpri=50, slppri=0, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff800021169540,0xffff800021168808 process=0xffff8000ffffe180 user=0xffff800021170000, vmspace=0xffffffff82d018c8 estcpu=0, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 27093 127970 15283 32767 2 0x490 syz-executor.5 27093 167097 15283 32767 3 0x4000090 kqpoll syz-executor.5 27093 343489 15283 32767 3 0x4000090 fsleep syz-executor.5 74498 309533 40272 32767 3 0x90 piperd syz-executor.6 40272 515454 38221 0 3 0x82 wait syz-executor.6 15283 490372 94409 32767 7 0x10 syz-executor.5 94409 298432 38221 0 3 0x82 wait syz-executor.5 59872 39132 35165 32767 3 0x90 piperd syz-executor.7 35165 79095 38221 0 3 0x82 wait syz-executor.7 41469 70046 78095 32767 3 0x90 piperd syz-executor.3 78095 45488 38221 0 3 0x82 wait syz-executor.3 27169 19869 64354 32767 3 0x90 piperd syz-executor.1 64354 467458 38221 0 3 0x82 wait syz-executor.1 93736 314943 38221 0 3 0x82 wait syz-executor.0 17355 180006 22872 32767 3 0x90 piperd syz-executor.2 22872 129934 38221 0 3 0x82 wait syz-executor.2 88844 19649 93072 32767 3 0x90 piperd syz-executor.4 93072 284937 38221 0 3 0x82 wait syz-executor.4 78645 461022 0 0 3 0x14200 bored sosplice 38221 494317 15834 0 3 0x2000082 wait syz-fuzzer 38221 352050 15834 0 3 0x6000082 thrsleep syz-fuzzer 38221 396463 15834 0 3 0x6000082 wait syz-fuzzer 38221 502836 15834 0 3 0x6000082 thrsleep syz-fuzzer 38221 412677 15834 0 3 0x6000082 wait syz-fuzzer 38221 327063 15834 0 3 0x6000082 wait syz-fuzzer 38221 389749 15834 0 3 0x6000082 wait syz-fuzzer 38221 277791 15834 0 3 0x6000082 thrsleep syz-fuzzer 38221 464309 15834 0 3 0x6000082 thrsleep syz-fuzzer 38221 378094 15834 0 3 0x6000082 wait syz-fuzzer 38221 24893 15834 0 3 0x6000082 thrsleep syz-fuzzer 38221 294171 15834 0 3 0x6000082 wait syz-fuzzer 38221 94717 15834 0 3 0x6000082 wait syz-fuzzer 38221 91568 15834 0 3 0x6000082 thrsleep syz-fuzzer 38221 215387 15834 0 3 0x6000082 thrsleep syz-fuzzer 38221 412325 15834 0 3 0x6000082 kqread syz-fuzzer 15834 446774 14386 0 3 0x10008a sigsusp ksh 14386 400525 18489 0 3 0x9a kqread sshd 4691 258119 1 0 3 0x100083 ttyin getty 18489 157222 1 0 3 0x88 kqread sshd 69002 189157 67062 73 3 0x1100090 kqread syslogd 67062 428824 1 0 3 0x100082 netio syslogd 9838 53784 1 0 3 0x100080 kqread resolvd 6524 31126 9967 77 3 0x100092 kqread dhcpleased 1676 253180 9967 77 3 0x100092 kqread dhcpleased 9967 288558 1 0 3 0x80 kqread dhcpleased 46868 385671 0 0 3 0x14200 bored smr 16757 98510 0 0 3 0x14200 pgzero zerothread 89595 382506 0 0 3 0x14200 aiodoned aiodoned 64289 19009 0 0 3 0x14200 syncer update 31695 240574 0 0 3 0x14200 cleaner cleaner 90463 247798 0 0 3 0x14200 reaper reaper 97521 277542 0 0 3 0x14200 pgdaemon pagedaemon 47741 452829 0 0 3 0x14200 bored viomb 65557 475126 0 0 3 0x40014200 acpi0 acpi0 36106 369598 0 0 3 0x40014200 idle1 99104 329317 0 0 3 0x14200 bored softnet3 61826 327465 0 0 3 0x14200 bored softnet2 49300 368792 0 0 3 0x14200 bored softnet1 10056 461634 0 0 3 0x14200 bored softnet0 48632 337226 0 0 3 0x14200 bored systqmp 29007 146561 0 0 3 0x14200 bored systq 30260 392252 0 0 3 0x14200 tmoslp softclockmp *63521 30356 0 0 7 0x40014200 softclock 60630 378340 0 0 3 0x40014200 idle0 1 339341 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 63521 (softclock) thread 0xffff800021169298 (30356) exclusive rwlock netlock r = 0 (0xffffffff82c190b0) #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+0x1c shared rwlock timeout r = 0 (0xffffffff82c125c8) #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+0x1c exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82c5b1e8) #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+0x1c ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10203 6411K 6420K 78643K 11411 0 pcb 13 12K 14K 78643K 17 0 rtable 246 7K 7K 78643K 2538 0 pf 29 8K 8K 78643K 115 0 ifaddr 44 15K 16K 78643K 222 0 ifgroup 50 2K 2K 78643K 222 0 sysctl 4 1K 1K 78643K 4 0 counters 60 35K 35K 78643K 146 0 ioctlops 0 0K 2K 78643K 195 0 iov 0 0K 25K 78643K 1394 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 4814 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 340 0 VM map 2 1K 1K 78643K 2 0 sem 11 1K 1K 78643K 16 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 19 69K 113K 78643K 18088 0 sigio 0 0K 0K 78643K 407 0 proc 56 78K 103K 78643K 2852 0 subproc 104 6K 6K 78643K 663 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1901 0 in_multi 99 7K 7K 78643K 674 0 ether_multi 1 0K 0K 78643K 23 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 157 705K 705K 78643K 157 0 exec 0 0K 1K 78643K 3585 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 401 90K 107K 78643K 179170 0 UVM aobj 131 4K 4K 78643K 134 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 362 0 NDP 11 0K 2K 78643K 156 0 temp 74 5920K 6048K 78643K 48495 0 kqueue 12 18K 38K 78643K 2124 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 677 0 674 6 5 1 3 0 8 0 rtentry 112 609 0 493 4 0 4 4 0 8 0 unpcb 144 10111 0 10098 112 108 4 9 0 8 3 syncache 304 173 0 173 28 28 0 1 0 8 0 sackhl 24 2 0 2 2 2 0 1 0 8 0 tcpqe 32 186 0 186 23 23 0 1 0 8 0 tcpcb 808 20512 0 20485 234 224 10 20 0 8 6 arp 120 108 0 89 1 0 1 1 0 8 0 ipq 40 21 0 21 10 10 0 1 0 8 0 ipqe 40 128 0 128 10 10 0 1 0 8 0 inpcb 368 25682 0 25652 223 214 9 18 0 8 4 nd6 136 174 0 145 2 0 2 2 0 8 0 kcovpl 48 51 0 43 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2448 0 1969 34 4 30 31 0 8 0 art_table 32 2449 0 1969 4 0 4 4 0 8 0 art_node 16 608 0 502 1 0 1 1 0 8 0 semupl 112 4 0 4 2 2 0 1 0 8 0 semapl 112 9 0 0 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 25075 0 23610 92 0 92 92 0 8 0 ffsino 272 25075 0 23610 98 0 98 98 0 8 0 nchpl 144 48849 0 47213 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 155967 0 155967 7 6 1 2 0 8 1 percpumem 16 86 0 43 1 0 1 1 0 8 0 kstatmem 264 108 0 86 2 0 2 2 0 8 0 scxspl 216 142664 0 142664 40 39 1 8 1 8 1 plimitpl 152 2665 0 2642 24 23 1 2 0 8 0 sigapl 424 18293 0 18244 7 0 7 7 0 8 0 futexpl 64 152725 0 152724 6 5 1 1 0 8 0 knotepl 120 1004 0 0 17 0 17 17 0 8 0 kqueuepl 216 3383 0 3374 51 50 1 5 0 8 0 pipepl 320 3568 0 3540 98 95 3 11 0 8 0 fdescpl 496 18274 0 18244 7 2 5 6 0 8 0 filepl 152 110596 0 110360 174 161 13 21 0 8 3 lockfpl 104 4963 0 4961 5 4 1 2 0 8 0 lockfspl 48 1657 0 1655 1 0 1 1 0 8 0 sessionpl 144 66 0 50 1 0 1 1 0 8 0 pgrppl 48 4165 0 4149 1 0 1 1 0 8 0 ucredpl 104 16155 0 16137 1 0 1 1 0 8 0 zombiepl 144 18245 0 18244 1 0 1 1 0 8 0 processpl 1072 18293 0 18244 5 1 4 5 0 8 0 procpl 680 50184 0 50118 27 20 7 8 0 8 0 sosppl 168 198 0 198 17 17 0 1 0 8 0 sockpl 488 36955 0 36909 547 532 15 41 0 8 7 mcl64k 65536 35 0 0 4 1 3 3 0 8 0 mcl16k 16384 30 0 0 3 1 2 3 0 8 0 mcl12k 12288 17 0 0 2 0 2 2 0 8 0 mcl9k 9216 41 0 0 3 1 2 2 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 46 0 0 3 0 3 3 0 8 0 mcl2k2 2112 11 0 0 1 0 1 1 0 8 0 mcl2k 2048 421 0 0 33 11 22 33 0 8 0 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 7384 0 0 422 0 422 422 0 8 0 bufpl 288 29715 0 23389 453 0 453 453 0 8 0 anonpl 24 1833431 0 1821921 182 86 96 105 0 186 0 amapchunkpl 152 562802 0 562022 130 92 38 48 0 158 0 amappl16 200 38714 0 38399 223 204 19 36 0 8 0 amappl15 192 18 0 18 2 2 0 1 0 8 0 amappl14 184 297 0 282 2 1 1 2 0 8 0 amappl13 176 25 0 25 4 4 0 1 0 8 0 amappl12 168 19563 0 19525 2 0 2 2 0 8 0 amappl11 160 71 0 58 1 0 1 1 0 8 0 amappl10 152 131 0 114 1 0 1 1 0 8 0 amappl9 144 484 0 482 1 0 1 1 0 8 0 amappl8 136 909 0 743 6 0 6 6 0 8 0 amappl7 128 187 0 170 2 0 2 2 0 8 0 amappl6 120 744 0 719 2 1 1 2 0 8 0 amappl5 112 837 0 829 1 0 1 1 0 8 0 amappl4 104 1259 0 1218 3 1 2 3 0 8 0 amappl3 96 110755 0 110682 4 1 3 4 0 8 0 amappl2 88 19172 0 19099 3 1 2 3 0 8 0 amappl1 80 73790 0 73275 22 10 12 22 0 8 0 amappl 88 176897 0 176678 7 0 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 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 18274 0 18244 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 18274 0 18244 1 0 1 1 0 8 0 vmmpekpl 168 140630 0 140567 4 0 4 4 0 8 0 vmmpepl 168 1077830 0 1075563 247 127 120 127 0 357 0 vmsppl 464 18273 0 18244 7 2 5 6 0 8 0 rwobjpl 56 267316 0 259843 130 21 109 111 0 8 0 pdppl 4096 36555 0 36488 665 584 81 89 0 8 14 pvpl 32 5200298 0 5182923 585 415 170 353 0 265 0 pmappl 248 18273 0 18244 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2308 0 1067 37 0 37 37 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(ffffffff827a7c27) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8282782d,ffffffff8287155a,2f6,ffffffff827746a7) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd8067018008) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82c6c018) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82c6c018) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread(ffff800021169298) 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(ffff800020d58ff0) 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 __mp_lock(ffffffff82c5afe0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c5afe0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff80002afbda10) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002afbda10) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x79ba361ff2a0, count: 9 ddb{1}> trace x86_ipi_db(ffff800020d58ff0) 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 __mp_lock(ffffffff82c5afe0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c5afe0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff80002afbda10) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002afbda10) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x79ba361ff2a0, count: -6