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 55266 81336 32767 0x10 0 1 syz-executor.5 * 37434 11980 0 0x14000 0x40000200 0K softclock db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a68bd) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82825cdc,ffffffff828762a7,2f6,ffffffff82775f71) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd806756def0) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82d84810) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82d84810) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread(ffff800021158aa0) 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(ffffffff827a68bd) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82825cdc,ffffffff828762a7,2f6,ffffffff82775f71) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd806756def0) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82d84810) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82d84810) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread(ffff800021158aa0) 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 0xffff800021165330 rbx 0xffffffff82babba7 cpu_info_full_primary+0x2ba7 rdx 0 rcx 0xffff800021158aa0 rax 0xffffffff82baaff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xe383ed1d955d4629 r11 0xb26fd73079cb42eb r12 0xffffffff82bab9a8 cpu_info_full_primary+0x29a8 r13 0 r14 0 r15 0x1 rip 0xffffffff81ada0bc db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800021165320 ss 0 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (softclock) tid=37434 pid=11980 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=0xffff800021158ff0,0xffff800021158010 process=0xffff8000ffffd920 user=0xffff800021160000, vmspace=0xffffffff82d38948 estcpu=0, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 51253 503088 82515 32767 2 0x10 syz-executor.2 51253 40973 82515 32767 2 0x4000010 syz-executor.2 68520 495462 88206 32767 2 0x10 syz-executor.1 74841 468168 12225 32767 2 0x10 syz-executor.4 74841 425516 12225 32767 3 0x4000090 fsleep syz-executor.4 74841 54654 12225 32767 3 0x4000090 fsleep syz-executor.4 86508 269040 53167 32767 2 0x10 syz-executor.7 86508 434078 53167 32767 2 0x4000010 syz-executor.7 51650 492945 97564 32767 2 0x10 syz-executor.6 51650 116218 97564 32767 2 0x4000010 syz-executor.6 82515 85235 3971 32767 3 0x90 nanoslp syz-executor.2 3971 77052 20866 0 3 0x82 wait syz-executor.2 97564 416945 78281 32767 3 0x90 nanoslp syz-executor.6 78281 83 20866 0 3 0x82 wait syz-executor.6 53167 391704 369 32767 3 0x90 nanoslp syz-executor.7 369 132237 20866 0 3 0x82 wait syz-executor.7 88206 13751 83171 32767 2 0x490 syz-executor.1 83171 391107 20866 0 3 0x82 wait syz-executor.1 12225 195883 13553 32767 2 0x10 syz-executor.4 13553 404617 20866 0 3 0x82 wait syz-executor.4 76807 193280 0 0 3 0x14200 bored sosplice 81336 55266 29321 32767 7 0x10 syz-executor.5 94461 160141 9604 32767 2 0x10 syz-executor.3 29321 417312 20866 0 3 0x82 wait syz-executor.5 9604 518686 20866 0 3 0x82 wait syz-executor.3 82109 34694 20866 0 3 0x82 wait syz-executor.0 20866 190996 7594 0 3 0x2000082 thrsleep syz-fuzzer 20866 331190 7594 0 3 0x6000082 nanoslp syz-fuzzer 20866 512788 7594 0 3 0x6000082 wait syz-fuzzer 20866 482181 7594 0 3 0x6000082 wait syz-fuzzer 20866 50608 7594 0 3 0x6000082 wait syz-fuzzer 20866 283618 7594 0 3 0x6000082 thrsleep syz-fuzzer 20866 103375 7594 0 3 0x6000082 kqread syz-fuzzer 20866 455692 7594 0 3 0x6000082 wait syz-fuzzer 20866 497926 7594 0 3 0x6000082 wait syz-fuzzer 20866 69376 7594 0 3 0x6000082 thrsleep syz-fuzzer 20866 504471 7594 0 3 0x6000082 thrsleep syz-fuzzer 20866 415776 7594 0 3 0x6000082 wait syz-fuzzer 20866 179619 7594 0 3 0x6000082 thrsleep syz-fuzzer 20866 217535 7594 0 3 0x6000082 wait syz-fuzzer 20866 360112 7594 0 3 0x6000082 thrsleep syz-fuzzer 20866 365075 7594 0 3 0x6000082 wait syz-fuzzer 7594 90714 49627 0 3 0x10008a sigsusp ksh 49627 241785 85357 0 3 0x9a kqread sshd 28242 404692 1 0 3 0x100083 ttyin getty 85357 71144 1 0 3 0x88 kqread sshd 51086 35520 34188 73 3 0x1100090 kqread syslogd 34188 108032 1 0 3 0x100082 netio syslogd 80111 172446 1 0 3 0x100080 kqread resolvd 76041 183875 95876 77 3 0x100092 kqread dhcpleased 47066 86956 95876 77 3 0x100092 kqread dhcpleased 95876 260260 1 0 3 0x80 kqread dhcpleased 20839 442317 0 0 3 0x14200 bored smr 92883 32136 0 0 2 0x14200 zerothread 91174 350939 0 0 3 0x14200 aiodoned aiodoned 81801 498387 0 0 3 0x14200 syncer update 15057 113030 0 0 3 0x14200 cleaner cleaner 70184 115973 0 0 3 0x14200 reaper reaper 21493 349756 0 0 3 0x14200 pgdaemon pagedaemon 25227 315035 0 0 3 0x14200 bored viomb 28946 187613 0 0 3 0x40014200 acpi0 acpi0 51197 334719 0 0 3 0x40014200 idle1 3331 92401 0 0 3 0x14200 bored softnet3 60314 297202 0 0 3 0x14200 bored softnet2 40810 474972 0 0 3 0x14200 bored softnet1 58032 501257 0 0 3 0x14200 bored softnet0 67101 81903 0 0 3 0x14200 bored systqmp 43839 66865 0 0 3 0x14200 bored systq 54593 62490 0 0 3 0x14200 tmoslp softclockmp *11980 37434 0 0 7 0x40014200 softclock 49529 266610 0 0 3 0x40014200 idle0 1 312388 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 11980 (softclock) thread 0xffff800021158aa0 (37434) exclusive rwlock netlock r = 0 (0xffffffff82bccce0) #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 (0xffffffff82c3a870) #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 (0xffffffff82cf9db8) #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 10190 6409K 6420K 78643K 11298 0 pcb 13 12K 14K 78643K 17 0 rtable 240 6K 7K 78643K 859 0 pf 29 8K 8K 78643K 49 0 ifaddr 44 15K 15K 78643K 88 0 ifgroup 50 2K 2K 78643K 90 0 sysctl 3 0K 0K 78643K 3 0 counters 60 35K 35K 78643K 80 0 ioctlops 0 0K 2K 78643K 50 0 iov 0 0K 16K 78643K 244 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 2644 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 36 0 VM map 2 1K 1K 78643K 2 0 sem 12 0K 0K 78643K 430 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 23 85K 121K 78643K 2956 0 sigio 0 0K 0K 78643K 17 0 proc 56 78K 115K 78643K 904 0 subproc 104 6K 6K 78643K 234 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 268 0 in_multi 99 7K 7K 78643K 241 0 ether_multi 1 0K 0K 78643K 12 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 79 360K 360K 78643K 79 0 exec 0 0K 1K 78643K 782 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 359 89K 99K 78643K 30859 0 UVM aobj 54 3K 4K 78643K 65 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 74 0 NDP 11 0K 2K 78643K 57 0 temp 74 5924K 6052K 78643K 11243 0 kqueue 12 18K 26K 78643K 209 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 252 0 247 4 3 1 3 0 8 0 rtentry 112 226 0 113 4 0 4 4 0 8 0 unpcb 144 1659 0 1646 23 20 3 6 0 8 2 syncache 304 41 0 41 6 5 1 1 0 8 1 tcpqe 32 143 0 143 4 3 1 1 0 8 1 tcpcb 808 2962 0 2956 76 66 10 17 0 8 8 arp 120 39 0 20 1 0 1 1 0 8 0 ipq 40 2 0 2 2 2 0 1 0 8 0 ipqe 40 8 0 8 2 2 0 1 0 8 0 inpcb 368 4284 0 4275 77 69 8 16 0 8 5 nd6 136 58 0 32 1 0 1 1 0 8 0 kcovpl 48 18 0 10 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 921 0 460 31 1 30 30 0 8 1 art_table 32 922 0 460 4 0 4 4 0 8 0 art_node 16 225 0 122 1 0 1 1 0 8 0 sysvmsgpl 40 1 0 1 1 1 0 1 0 8 0 semupl 112 7 0 7 2 2 0 1 0 8 0 semapl 112 428 0 418 1 0 1 1 0 8 0 shmpl 112 62 0 11 2 0 2 2 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 5834 0 4391 91 0 91 91 0 8 0 ffsino 272 5834 0 4391 97 0 97 97 0 8 0 nchpl 144 9731 0 8088 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 36736 0 36736 3 2 1 2 0 8 1 percpumem 16 53 0 10 1 0 1 1 0 8 0 kstatmem 264 42 0 20 2 0 2 2 0 8 0 scxspl 216 30225 0 30225 14 11 3 8 1 8 3 plimitpl 152 643 0 620 8 6 2 2 0 8 1 sigapl 424 3223 0 3170 7 0 7 7 0 8 0 futexpl 64 24711 0 24709 2 1 1 1 0 8 0 knotepl 120 316 0 0 8 2 6 8 0 8 0 kqueuepl 216 558 0 550 13 10 3 5 0 8 2 pipepl 320 1016 0 988 33 27 6 8 0 8 3 fdescpl 496 3204 0 3170 7 2 5 6 0 8 0 filepl 152 26477 0 26241 72 57 15 24 0 8 5 lockfpl 104 638 0 636 1 0 1 1 0 8 0 lockfspl 48 229 0 227 1 0 1 1 0 8 0 sessionpl 144 33 0 17 1 0 1 1 0 8 0 pgrppl 48 47 0 31 1 0 1 1 0 8 0 ucredpl 104 6630 0 6612 1 0 1 1 0 8 0 zombiepl 144 3171 0 3170 1 0 1 1 0 8 0 processpl 1072 3223 0 3170 5 1 4 5 0 8 0 procpl 680 8311 0 8238 16 8 8 8 0 8 1 sosppl 168 57 0 57 6 6 0 1 0 8 0 sockpl 488 6947 0 6920 163 150 13 37 0 8 8 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 16 0 0 2 0 2 2 0 8 0 mcl9k 9216 8 0 0 1 0 1 1 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 5 0 0 1 0 1 1 0 8 0 mcl2k 2048 291 0 0 36 3 33 36 0 8 0 mtagpl 96 2 0 0 1 0 1 1 0 8 0 mbufpl 256 1087 0 0 55 0 55 55 0 8 0 bufpl 288 8028 0 1707 452 0 452 452 0 8 0 anonpl 24 463623 0 452620 136 60 76 95 0 186 0 amapchunkpl 152 99437 0 98599 73 34 39 49 0 158 1 amappl16 200 10255 0 9987 45 29 16 27 0 8 1 amappl15 192 28 0 28 1 1 0 1 0 8 0 amappl14 184 185 0 173 2 1 1 2 0 8 0 amappl13 176 23 0 23 4 3 1 1 0 8 1 amappl12 168 4000 0 3962 3 1 2 3 0 8 0 amappl11 160 55 0 45 1 0 1 1 0 8 0 amappl10 152 44 0 31 1 0 1 1 0 8 0 amappl9 144 216 0 215 1 0 1 1 0 8 0 amappl8 136 348 0 263 4 0 4 4 0 8 0 amappl7 128 219 0 193 2 0 2 2 0 8 0 amappl6 120 433 0 420 1 0 1 1 0 8 0 amappl5 112 189 0 181 1 0 1 1 0 8 0 amappl4 104 535 0 508 2 1 1 2 0 8 0 amappl3 96 19051 0 18964 4 1 3 4 0 8 0 amappl2 88 3825 0 3745 3 1 2 3 0 8 0 amappl1 80 19833 0 19306 22 9 13 22 0 8 0 amappl 88 30147 0 29913 9 2 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 64 0 11 1 0 1 1 0 8 0 uaddrrnd 24 3204 0 3170 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 3204 0 3170 1 0 1 1 0 8 0 vmmpekpl 168 31332 0 31265 4 0 4 4 0 8 0 vmmpepl 168 207806 0 205515 167 59 108 130 0 357 0 vmsppl 464 3203 0 3170 7 2 5 6 0 8 0 rwobjpl 56 62820 0 55554 108 4 104 104 0 8 1 pdppl 4096 6416 0 6340 264 182 82 94 0 8 6 pvpl 32 1305354 0 1288455 364 215 149 361 0 265 0 pmappl 248 3203 0 3170 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1217 0 333 26 0 26 26 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(ffffffff827a68bd) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82825cdc,ffffffff828762a7,2f6,ffffffff82775f71) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd806756def0) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82d84810) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82d84810) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread(ffff800021158aa0) 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 __mp_lock(ffffffff82cf9bb0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82cf9bb0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff800026133600) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800026133600) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7ef6d471a290, count: 9 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 __mp_lock(ffffffff82cf9bb0) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82cf9bb0) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff800026133600) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800026133600) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7ef6d471a290, count: -6