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 179964 84834 32767 0x10 0 1 syz-executor.4 *193052 28494 0 0x14000 0x40000200 0K softclock db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a32ac) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82821fe2,ffffffff8286d499,2f6,ffffffff82770975) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd8067014478) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82ccdbf8) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82ccdbf8) at timeout_run+0xd0 sys/kern/kern_timeout.c:640 softclock_thread(ffff8000211697e8) at softclock_thread+0x124 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{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(ffffffff827a32ac) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82821fe2,ffffffff8286d499,2f6,ffffffff82770975) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd8067014478) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82ccdbf8) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82ccdbf8) at timeout_run+0xd0 sys/kern/kern_timeout.c:640 softclock_thread(ffff8000211697e8) at softclock_thread+0x124 sys/kern/kern_timeout.c:763 end trace frame: 0x0, count: -7 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff8000211758d0 rbx 0xffffffff82c2eba7 cpu_info_full_primary+0x2ba7 rdx 0 rcx 0xffff8000211697e8 rax 0xffffffff82c2dff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xa4819a5514781d45 r11 0x4de1106c0c352e r12 0xffffffff82c2e9a8 cpu_info_full_primary+0x29a8 r13 0 r14 0 r15 0x1 rip 0xffffffff818bc4fc db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff8000211758c0 ss 0 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (softclock) tid=193052 pid=28494 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=0xffff800021169a90,0xffff800021169000 process=0xffff8000ffffe9e0 user=0xffff800021170000, vmspace=0xffffffff82d659f8 estcpu=0, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 2179 118381 84834 32767 2 0x10 syz-executor.4 2179 472953 84834 32767 2 0x4000010 syz-executor.4 23623 404668 30254 32767 2 0x10 syz-executor.2 23623 409965 30254 32767 3 0x4000090 fsleep syz-executor.2 23623 514100 30254 32767 3 0x4000090 fsleep syz-executor.2 75744 88772 59872 32767 2 0x10 syz-executor.6 75744 486165 59872 32767 2 0x4000010 syz-executor.6 75744 91514 59872 32767 2 0x4000010 syz-executor.6 75744 320265 59872 32767 2 0x4000010 syz-executor.6 18375 375858 90124 32767 2 0x10 syz-executor.5 18375 410672 90124 32767 3 0x4000090 fsleep syz-executor.5 70316 520352 11599 32767 2 0x10 syz-executor.3 70316 16916 11599 32767 3 0x4000090 fsleep syz-executor.3 70316 4717 11599 32767 3 0x4000090 fsleep syz-executor.3 70316 96974 11599 32767 3 0x4000090 fsleep syz-executor.3 58210 391949 17927 32767 2 0x10 syz-executor.7 53473 422704 65568 32767 2 0x10 syz-executor.1 30254 461551 78667 32767 3 0x90 nanoslp syz-executor.2 78667 345385 28514 0 3 0x82 wait syz-executor.2 90124 171574 35310 32767 3 0x90 nanoslp syz-executor.5 35310 327277 28514 0 3 0x82 wait syz-executor.5 91114 397962 0 0 3 0x14200 bored sosplice 17927 217049 12059 32767 2 0x10 syz-executor.7 59872 90753 72335 32767 3 0x90 nanoslp syz-executor.6 12059 421296 28514 0 3 0x82 wait syz-executor.7 72335 252058 28514 0 3 0x82 wait syz-executor.6 65568 34962 69995 32767 2 0x10 syz-executor.1 11599 331636 30905 32767 2 0x10 syz-executor.3 84834 179964 49266 32767 7 0x10 syz-executor.4 49266 375902 28514 0 3 0x82 wait syz-executor.4 30905 250927 28514 0 3 0x82 wait syz-executor.3 69995 466490 28514 0 3 0x82 wait syz-executor.1 18395 476135 28514 0 3 0x82 wait syz-executor.0 28514 231967 99805 0 3 0x2000082 wait syz-fuzzer 28514 184441 99805 0 3 0x6000082 thrsleep syz-fuzzer 28514 514781 99805 0 3 0x6000082 thrsleep syz-fuzzer 28514 17666 99805 0 3 0x6000082 thrsleep syz-fuzzer 28514 47628 99805 0 3 0x6000082 thrsleep syz-fuzzer 28514 140574 99805 0 3 0x6000082 wait syz-fuzzer 28514 378773 99805 0 3 0x6000082 wait syz-fuzzer 28514 386151 99805 0 3 0x6000082 wait syz-fuzzer 28514 77490 99805 0 3 0x6000082 wait syz-fuzzer 28514 9836 99805 0 3 0x6000082 thrsleep syz-fuzzer 28514 252745 99805 0 3 0x6000082 thrsleep syz-fuzzer 28514 391859 99805 0 3 0x6000082 wait syz-fuzzer 28514 127711 99805 0 3 0x6000082 kqread syz-fuzzer 28514 186622 99805 0 3 0x6000082 wait syz-fuzzer 28514 92231 99805 0 3 0x6000082 thrsleep syz-fuzzer 28514 318718 99805 0 3 0x6000082 wait syz-fuzzer 99805 70393 87680 0 3 0x10008a sigsusp ksh 87680 400075 92684 0 3 0x9a kqread sshd 70510 168340 1 0 3 0x100083 ttyin getty 92684 117263 1 0 3 0x88 kqread sshd 20465 355741 56617 73 3 0x1100090 kqread syslogd 56617 385287 1 0 3 0x100082 netio syslogd 46657 267772 1 0 3 0x100080 kqread resolvd 54068 50809 48057 77 3 0x100092 kqread dhcpleased 62527 362726 48057 77 3 0x100092 kqread dhcpleased 48057 6387 1 0 3 0x80 kqread dhcpleased 66255 475203 0 0 3 0x14200 bored smr 35746 257172 0 0 2 0x14200 zerothread 1139 333361 0 0 3 0x14200 aiodoned aiodoned 8103 129974 0 0 3 0x14200 syncer update 60496 115198 0 0 3 0x14200 cleaner cleaner 83699 137309 0 0 3 0x14200 reaper reaper 6513 159829 0 0 3 0x14200 pgdaemon pagedaemon 6115 239335 0 0 3 0x14200 bored viomb 15556 352642 0 0 3 0x40014200 acpi0 acpi0 57499 232365 0 0 3 0x40014200 idle1 82107 411519 0 0 3 0x14200 bored softnet3 89603 17143 0 0 3 0x14200 bored softnet2 19369 431730 0 0 3 0x14200 bored softnet1 89186 359810 0 0 3 0x14200 bored softnet0 41170 253213 0 0 3 0x14200 bored systqmp 44832 258199 0 0 3 0x14200 bored systq *28494 193052 0 0 7 0x40014200 softclock 23916 342213 0 0 3 0x40014200 idle0 1 316801 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 28494 (softclock) thread 0xffff8000211697e8 (193052) exclusive rwlock netlock r = 0 (0xffffffff82b87980) #0 witness_lock+0x447 #1 arptimer+0x26 sys/netinet/if_ether.c:132 #2 timeout_run+0xd0 sys/kern/kern_timeout.c:640 #3 softclock_thread+0x124 sys/kern/kern_timeout.c:763 #4 proc_trampoline+0x1c shared rwlock timeout r = 0 (0xffffffff82c4b470) #0 witness_lock+0x447 #1 timeout_run+0xbb sys/kern/kern_timeout.c:636 #2 softclock_thread+0x124 sys/kern/kern_timeout.c:763 #3 proc_trampoline+0x1c exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82d2dc10) #0 witness_lock+0x447 #1 __mp_acquire_count+0x48 sys/kern/kern_lock.c:227 #2 mi_switch+0x46b sys/kern/sched_bsd.c:470 #3 sleep_finish+0x19b sys/kern/kern_synch.c:414 #4 softclock_thread+0xd8 sys/kern/kern_timeout.c:758 #5 proc_trampoline+0x1c ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10187 6409K 6420K 78643K 11289 0 pcb 13 10K 12K 78643K 15 0 rtable 242 6K 7K 78643K 843 0 pf 29 8K 8K 78643K 45 0 ifaddr 44 15K 15K 78643K 80 0 ifgroup 50 2K 2K 78643K 82 0 sysctl 3 0K 0K 78643K 6 0 counters 60 35K 35K 78643K 76 0 ioctlops 0 0K 2K 78643K 71 0 iov 0 0K 18K 78643K 965 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 2042 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 64 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 16 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 25 93K 113K 78643K 5151 0 sigio 0 0K 0K 78643K 75 0 proc 56 78K 103K 78643K 960 0 subproc 104 6K 6K 78643K 208 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 453 0 in_multi 99 7K 7K 78643K 277 0 ether_multi 1 0K 0K 78643K 13 0 mrt 2 0K 0K 78643K 2 0 ISOFS mount 1 32K 32K 78643K 1 0 MSDOSFS mount 1 16K 16K 78643K 1 0 ttys 61 281K 281K 78643K 61 0 exec 0 0K 1K 78643K 1353 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 394 91K 97K 78643K 52499 0 UVM aobj 131 4K 4K 78643K 136 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 139 0 NDP 11 0K 2K 78643K 51 0 temp 74 5920K 6000K 78643K 16250 0 kqueue 12 18K 28K 78643K 537 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 294 0 291 5 4 1 3 0 8 0 rtentry 112 212 0 98 4 0 4 4 0 8 0 unpcb 144 2984 0 2971 31 30 1 6 0 8 0 syncache 304 60 0 60 11 10 1 1 0 8 1 tcpqe 32 306 0 306 12 11 1 1 0 8 1 tcpcb 808 2214 0 2178 55 46 9 15 0 8 4 arp 120 35 0 16 1 0 1 1 0 8 0 ipq 40 8 0 7 2 1 1 1 0 8 0 ipqe 40 25 0 24 2 1 1 1 0 8 0 inpcb 368 4371 0 4330 52 42 10 15 0 8 5 nd6 136 60 0 33 2 0 2 2 0 8 1 kcovpl 48 16 0 8 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 865 0 402 33 2 31 31 0 8 2 art_table 32 866 0 402 4 0 4 4 0 8 0 art_node 16 211 0 107 1 0 1 1 0 8 0 semupl 112 6 0 6 1 1 0 1 0 8 0 semapl 112 14 0 4 1 0 1 1 0 8 0 shmpl 112 133 0 5 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 7705 0 6262 91 0 91 91 0 8 0 ffsino 272 7705 0 6262 97 0 97 97 0 8 0 nchpl 144 14495 0 12852 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 53914 0 53914 2 1 1 2 0 8 1 percpumem 16 51 0 8 1 0 1 1 0 8 0 kstatmem 264 38 0 16 2 0 2 2 0 8 0 scxspl 216 50145 0 50145 23 21 2 8 1 8 2 plimitpl 152 725 0 700 11 9 2 2 0 8 1 sigapl 424 5428 0 5374 7 0 7 7 0 8 0 futexpl 64 40883 0 40877 1 0 1 1 0 8 0 knotepl 120 591 0 0 18 2 16 18 0 8 0 kqueuepl 216 795 0 787 7 6 1 3 0 8 0 pipepl 320 1724 0 1663 54 48 6 13 0 8 0 fdescpl 496 5410 0 5374 7 2 5 6 0 8 0 filepl 152 38287 0 37982 78 63 15 23 0 8 3 lockfpl 104 627 0 625 1 0 1 1 0 8 0 lockfspl 48 211 0 209 1 0 1 1 0 8 0 sessionpl 144 31 0 15 1 0 1 1 0 8 0 pgrppl 48 43 0 27 1 0 1 1 0 8 0 ucredpl 104 4359 0 4341 1 0 1 1 0 8 0 zombiepl 144 5375 0 5374 1 0 1 1 0 8 0 processpl 1072 5428 0 5374 4 0 4 4 0 8 0 procpl 680 14477 0 14398 16 8 8 8 0 8 1 sosppl 168 81 0 81 5 4 1 1 0 8 1 sockpl 488 7792 0 7735 141 126 15 31 0 8 7 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 22 0 0 2 0 2 2 0 8 0 mcl9k 9216 10 0 0 1 0 1 1 0 8 0 mcl8k 8192 17 0 0 3 0 3 3 0 8 0 mcl4k 4096 25 0 0 3 0 3 3 0 8 0 mcl2k2 2112 12 0 0 1 0 1 1 0 8 0 mcl2k 2048 272 0 0 33 1 32 33 0 8 0 mtagpl 96 3 0 0 1 0 1 1 0 8 0 mbufpl 256 1728 0 0 104 0 104 104 0 8 0 bufpl 288 13858 0 7530 453 0 453 453 0 8 0 anonpl 24 732460 0 721409 130 45 85 100 0 186 0 amapchunkpl 152 168280 0 167347 68 29 39 44 0 158 1 amappl16 200 19107 0 18841 91 76 15 27 0 8 0 amappl15 192 20 0 19 1 0 1 1 0 8 0 amappl14 184 175 0 161 2 1 1 2 0 8 0 amappl13 176 14 0 14 2 2 0 1 0 8 0 amappl12 168 6152 0 6115 2 0 2 2 0 8 0 amappl11 160 54 0 44 1 0 1 1 0 8 0 amappl10 152 67 0 50 1 0 1 1 0 8 0 amappl9 144 241 0 241 6 5 1 1 0 8 1 amappl8 136 393 0 299 4 0 4 4 0 8 0 amappl7 128 93 0 78 2 0 2 2 0 8 0 amappl6 120 334 0 314 1 0 1 1 0 8 0 amappl5 112 302 0 294 1 0 1 1 0 8 0 amappl4 104 701 0 661 2 0 2 2 0 8 0 amappl3 96 32905 0 32803 3 0 3 3 0 8 0 amappl2 88 5853 0 5776 3 1 2 3 0 8 0 amappl1 80 27623 0 27086 22 10 12 22 0 8 0 amappl 88 51781 0 51516 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 135 0 5 3 0 3 3 0 8 0 uaddrrnd 24 5410 0 5374 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 5410 0 5374 1 0 1 1 0 8 0 vmmpekpl 168 48003 0 47953 3 0 3 3 0 8 0 vmmpepl 168 333690 0 331265 159 50 109 119 0 357 3 vmsppl 464 5409 0 5374 7 2 5 6 0 8 0 rwobjpl 56 97191 0 89804 111 5 106 107 0 8 0 pdppl 4096 10828 0 10748 266 184 82 90 0 8 2 pvpl 32 1772524 0 1755263 357 197 160 332 0 265 0 pmappl 248 5409 0 5374 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1221 0 286 27 0 27 27 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(ffffffff827a32ac) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82821fe2,ffffffff8286d499,2f6,ffffffff82770975) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd8067014478) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82ccdbf8) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82ccdbf8) at timeout_run+0xd0 sys/kern/kern_timeout.c:640 softclock_thread(ffff8000211697e8) at softclock_thread+0x124 sys/kern/kern_timeout.c:763 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(ffffffff82d2da08) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d2da08) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff80002494da40) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002494da40) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x71d15dd31aa0, 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(ffffffff82d2da08) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82d2da08) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff80002494da40) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002494da40) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x71d15dd31aa0, count: -6