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 *161835 45830 0 0x14000 0x40000200 0K softclock db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827ad5cb) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8282877e,ffffffff82872d7e,2f6,ffffffff8277615f) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd8065c04940) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82ca2bf0) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82ca2bf0) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread(ffff800021158ff0) 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(ffffffff827ad5cb) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8282877e,ffffffff82872d7e,2f6,ffffffff8277615f) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd8065c04940) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82ca2bf0) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82ca2bf0) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread(ffff800021158ff0) 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 0xffff800021165380 rbx 0xffffffff82c29ba7 cpu_info_full_primary+0x2ba7 rdx 0 rcx 0xffff800021158ff0 rax 0xffffffff82c28ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x713ce8c073e51af2 r11 0x24d004e078556e03 r12 0xffffffff82c299a8 cpu_info_full_primary+0x29a8 r13 0 r14 0 r15 0x1 rip 0xffffffff812fb88c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800021165370 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (softclock) tid=161835 pid=45830 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=0xffff800021159298,0xffff800021158808 process=0xffff8000ffffe5b0 user=0xffff800021160000, vmspace=0xffffffff82d8b820 estcpu=1, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 22293 511457 89977 32767 3 0x90 nanoslp syz-executor.2 22293 260775 89977 32767 3 0x4000090 fsleep syz-executor.2 22293 240053 89977 32767 3 0x4000090 ttyout syz-executor.2 22293 172588 89977 32767 3 0x4000090 fsleep syz-executor.2 89977 95002 66653 32767 2 0x490 syz-executor.2 66653 128462 12364 0 3 0x82 wait syz-executor.2 20224 431457 87256 32767 3 0x90 piperd syz-executor.5 87256 116035 12364 0 3 0x82 wait syz-executor.5 97427 196676 21877 32767 3 0x90 piperd syz-executor.1 21877 97610 12364 0 3 0x82 wait syz-executor.1 2336 480836 84060 32767 3 0x90 piperd syz-executor.4 84060 11871 12364 0 3 0x82 wait syz-executor.4 3172 331389 50449 32767 3 0x90 piperd syz-executor.7 50449 14348 12364 0 3 0x82 wait syz-executor.7 88679 441862 5611 32767 3 0x90 piperd syz-executor.3 5611 457578 12364 0 3 0x82 wait syz-executor.3 13840 332489 12364 0 3 0x82 wait syz-executor.0 29720 347266 71725 32767 3 0x90 piperd syz-executor.6 71725 277093 12364 0 3 0x82 wait syz-executor.6 19916 51339 0 0 3 0x14200 bored sosplice 12364 344958 93825 0 3 0x2000082 kqread syz-fuzzer 12364 212673 93825 0 3 0x6000082 thrsleep syz-fuzzer 12364 423075 93825 0 3 0x6000082 thrsleep syz-fuzzer 12364 68816 93825 0 3 0x6000082 thrsleep syz-fuzzer 12364 360643 93825 0 3 0x6000082 wait syz-fuzzer 12364 107115 93825 0 3 0x6000082 wait syz-fuzzer 12364 63335 93825 0 3 0x6000082 wait syz-fuzzer 12364 188042 93825 0 3 0x6000082 thrsleep syz-fuzzer 12364 240701 93825 0 3 0x6000082 wait syz-fuzzer 12364 356251 93825 0 3 0x6000082 wait syz-fuzzer 12364 470209 93825 0 3 0x6000082 thrsleep syz-fuzzer 12364 28756 93825 0 3 0x6000082 thrsleep syz-fuzzer 12364 351017 93825 0 3 0x6000082 wait syz-fuzzer 12364 32810 93825 0 3 0x6000082 thrsleep syz-fuzzer 12364 446894 93825 0 3 0x6000082 wait syz-fuzzer 12364 151432 93825 0 3 0x6000082 wait syz-fuzzer 93825 410517 7556 0 3 0x10008a sigsusp ksh 7556 523288 85677 0 3 0x9a kqread sshd 75328 183271 1 0 3 0x100083 ttyin getty 85677 517000 1 0 3 0x88 kqread sshd 65535 277678 92931 73 3 0x1100090 kqread syslogd 92931 448326 1 0 3 0x100082 netio syslogd 80146 378920 1 0 3 0x100080 kqread resolvd 7160 380351 44169 77 3 0x100092 kqread dhcpleased 64157 441837 44169 77 3 0x100092 kqread dhcpleased 44169 318005 1 0 3 0x80 kqread dhcpleased 92212 143944 0 0 3 0x14200 bored smr 93506 54448 0 0 3 0x14200 pgzero zerothread 80557 371653 0 0 3 0x14200 aiodoned aiodoned 45531 151858 0 0 3 0x14200 syncer update 4141 233832 0 0 3 0x14200 cleaner cleaner 64848 221738 0 0 3 0x14200 reaper reaper 47854 204440 0 0 3 0x14200 pgdaemon pagedaemon 73729 519949 0 0 3 0x14200 bored viomb 15239 319692 0 0 3 0x40014200 acpi0 acpi0 85639 194482 0 0 7 0x40014200 idle1 31332 344780 0 0 3 0x14200 bored softnet3 1287 69912 0 0 3 0x14200 bored softnet2 99336 39578 0 0 3 0x14200 bored softnet1 13936 174613 0 0 3 0x14200 bored softnet0 7523 154965 0 0 3 0x14200 bored systqmp 36042 183869 0 0 3 0x14200 bored systq 57746 235564 0 0 3 0x14200 tmoslp softclockmp *45830 161835 0 0 7 0x40014200 softclock 46897 456759 0 0 3 0x40014200 idle0 1 304654 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 45830 (softclock) thread 0xffff800021158ff0 (161835) exclusive rwlock netlock r = 0 (0xffffffff82c1e750) #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 (0xffffffff82b9c150) #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 (0xffffffff82c5e938) #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 10213 6412K 6420K 78643K 11415 0 pcb 13 20K 24K 78643K 21 0 rtable 244 6K 7K 78643K 2125 0 pf 29 8K 8K 78643K 111 0 ifaddr 44 15K 16K 78643K 214 0 ifgroup 50 2K 2K 78643K 214 0 sysctl 4 1K 1K 78643K 4 0 counters 60 35K 35K 78643K 142 0 ioctlops 0 0K 2K 78643K 123 0 iov 0 0K 20K 78643K 2693 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 5019 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 348 0 VM map 2 1K 1K 78643K 2 0 sem 11 1K 1K 78643K 22 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 19 69K 117K 78643K 24445 0 sigio 0 0K 0K 78643K 795 0 proc 56 78K 115K 78643K 3042 0 subproc 104 6K 6K 78643K 637 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 1935 0 in_multi 99 7K 7K 78643K 696 0 ether_multi 1 0K 0K 78643K 21 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 217 970K 970K 78643K 217 0 exec 0 0K 1K 78643K 3918 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 454 94K 110K 78643K 241172 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 715 0 NDP 11 0K 2K 78643K 150 0 temp 74 5920K 6048K 78643K 63821 0 kqueue 12 18K 32K 78643K 2026 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 938 0 935 12 11 1 3 0 8 0 rtentry 112 613 0 498 4 0 4 4 0 8 0 unpcb 144 15644 0 15631 166 163 3 8 0 8 2 syncache 304 333 0 333 46 45 1 1 0 8 1 tcpqe 32 297 0 297 40 40 0 1 0 8 0 tcpcb 808 28794 0 28780 349 344 5 22 0 8 2 arp 120 106 0 87 1 0 1 1 0 8 0 ipq 40 30 0 30 8 8 0 1 0 8 0 ipqe 40 139 0 139 8 8 0 1 0 8 0 inpcb 368 42081 0 42064 386 381 5 24 0 8 1 nd6 136 192 0 164 2 0 2 2 0 8 0 kcovpl 48 49 0 41 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2479 0 2010 37 7 30 32 0 8 0 art_table 32 2480 0 2010 5 0 5 5 0 8 0 art_node 16 612 0 507 1 0 1 1 0 8 0 semupl 112 8 0 8 1 1 0 1 0 8 0 semapl 112 11 0 2 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 32380 0 30910 93 0 93 93 0 8 0 ffsino 272 32380 0 30910 99 0 99 99 0 8 0 nchpl 144 64455 0 62816 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 202867 0 202867 11 10 1 2 0 8 1 percpumem 16 84 0 41 1 0 1 1 0 8 0 kstatmem 264 104 0 82 2 0 2 2 0 8 0 scxspl 216 210324 0 210324 55 54 1 8 1 8 1 plimitpl 152 3619 0 3596 33 32 1 2 0 8 0 sigapl 424 24658 0 24609 8 1 7 7 0 8 0 futexpl 64 212506 0 212504 10 9 1 1 0 8 0 knotepl 120 1526 0 0 21 5 16 18 0 8 0 kqueuepl 216 5180 0 5172 98 97 1 6 0 8 0 pipepl 320 4439 0 4411 107 94 13 13 0 8 10 fdescpl 496 24639 0 24609 6 1 5 6 0 8 0 filepl 152 162381 0 162143 282 263 19 22 0 8 9 lockfpl 104 3202 0 3200 2 1 1 2 0 8 0 lockfspl 48 835 0 833 1 0 1 1 0 8 0 sessionpl 144 64 0 48 1 0 1 1 0 8 0 pgrppl 48 415 0 399 1 0 1 1 0 8 0 ucredpl 104 18804 0 18786 1 0 1 1 0 8 0 zombiepl 144 24610 0 24609 1 0 1 1 0 8 0 processpl 1072 24658 0 24609 5 1 4 5 0 8 0 procpl 680 68080 0 68013 46 38 8 9 0 8 0 sosppl 168 396 0 396 34 34 0 1 0 8 0 sockpl 488 59904 0 59871 980 967 13 42 0 8 6 mcl64k 65536 55 0 0 4 1 3 3 0 8 0 mcl16k 16384 33 0 0 3 0 3 3 0 8 0 mcl12k 12288 41 0 0 2 0 2 2 0 8 0 mcl9k 9216 31 0 0 2 0 2 2 0 8 0 mcl8k 8192 87 0 0 6 2 4 5 0 8 0 mcl4k 4096 97 0 0 6 2 4 4 0 8 0 mcl2k2 2112 69 0 0 5 1 4 5 0 8 0 mcl2k 2048 627 0 0 39 22 17 35 0 8 0 mtagpl 96 23 0 0 1 0 1 1 0 8 0 mbufpl 256 2289 0 0 63 0 63 63 0 8 0 bufpl 288 48184 0 41859 453 0 453 453 0 8 0 anonpl 24 2409340 0 2398591 308 214 94 103 0 186 0 amapchunkpl 152 772967 0 772161 216 172 44 51 0 158 5 amappl16 200 52148 0 51874 327 310 17 30 0 8 0 amappl15 192 18 0 18 1 1 0 1 0 8 0 amappl14 184 351 0 337 2 1 1 2 0 8 0 amappl13 176 83 0 82 1 0 1 1 0 8 0 amappl12 168 25900 0 25861 5 2 3 3 0 8 1 amappl11 160 61 0 51 1 0 1 1 0 8 0 amappl10 152 88 0 73 1 0 1 1 0 8 0 amappl9 144 496 0 495 1 0 1 1 0 8 0 amappl8 136 1456 0 1209 9 0 9 9 0 8 0 amappl7 128 162 0 145 2 0 2 2 0 8 0 amappl6 120 740 0 713 2 1 1 2 0 8 0 amappl5 112 839 0 830 1 0 1 1 0 8 0 amappl4 104 1307 0 1261 3 1 2 3 0 8 0 amappl3 96 149060 0 148983 29 26 3 4 0 8 0 amappl2 88 25861 0 25782 3 1 2 3 0 8 0 amappl1 80 95592 0 95072 22 10 12 22 0 8 0 amappl 88 239393 0 239158 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 136 0 6 3 0 3 3 0 8 0 uaddrrnd 24 24639 0 24609 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 24639 0 24609 1 0 1 1 0 8 0 vmmpekpl 168 184168 0 184097 4 0 4 4 0 8 0 vmmpepl 168 1431305 0 1428962 382 250 132 136 0 357 3 vmsppl 464 24638 0 24609 7 2 5 6 0 8 0 rwobjpl 56 353411 0 345878 122 11 111 111 0 8 0 pdppl 4096 49285 0 49218 909 828 81 91 0 8 14 pvpl 32 6991440 0 6974600 839 670 169 361 0 265 4 pmappl 248 24638 0 24609 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2511 0 1637 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(ffffffff827ad5cb) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8282877e,ffffffff82872d7e,2f6,ffffffff8277615f) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd8065c04940) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82ca2bf0) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82ca2bf0) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread(ffff800021158ff0) 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