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 *135355 93366 0 0x14000 0x40000200 0K softclock db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff8279e072) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f005,ffffffff8286edd6,2f6,ffffffff8276def9) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd8065e2ee08) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82d40140) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82d40140) 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(ffffffff8279e072) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f005,ffffffff8286edd6,2f6,ffffffff8276def9) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd8065e2ee08) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82d40140) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82d40140) 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 0xffff800021175560 rbx 0xffffffff82b93ba7 cpu_info_full_primary+0x2ba7 rdx 0 rcx 0xffff8000211697e8 rax 0xffffffff82b92ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xe0a4844f146850b8 r11 0x51d41c17049a6011 r12 0xffffffff82b939a8 cpu_info_full_primary+0x29a8 r13 0 r14 0 r15 0x1 rip 0xffffffff8155cc8c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff800021175550 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (softclock) tid=135355 pid=93366 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=0xffff800021169a90,0xffff800021169000 process=0xffff8000ffffc000 user=0xffff800021170000, vmspace=0xffffffff82d082f8 estcpu=1, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 72562 319842 63914 32767 3 0x90 nanoslp syz-executor.2 72562 317879 63914 32767 3 0x4000090 kqsel syz-executor.2 72562 338478 63914 32767 3 0x4000090 fsleep syz-executor.2 72562 51097 63914 32767 3 0x4000090 fsleep syz-executor.2 16882 152781 39773 32767 3 0x90 piperd syz-executor.1 39773 467480 34204 0 3 0x82 wait syz-executor.1 63914 227596 87218 32767 3 0x90 nanoslp syz-executor.2 87218 149836 34204 0 3 0x82 wait syz-executor.2 3845 3394 37134 32767 3 0x90 piperd syz-executor.3 37134 151253 34204 0 3 0x82 wait syz-executor.3 99770 334478 59241 32767 3 0x90 piperd syz-executor.4 59241 122361 34204 0 3 0x82 wait syz-executor.4 545 8662 33921 32767 3 0x90 piperd syz-executor.5 33921 405978 34204 0 3 0x82 wait syz-executor.5 83511 280753 28637 32767 3 0x90 piperd syz-executor.7 28637 172609 34204 0 3 0x82 wait syz-executor.7 51609 87593 94195 32767 3 0x90 piperd syz-executor.6 94195 382658 34204 0 3 0x82 wait syz-executor.6 52514 322615 0 0 3 0x14200 bored sosplice 98325 143820 34204 0 3 0x82 wait syz-executor.0 34204 221807 26636 0 3 0x2000082 wait syz-fuzzer 34204 99617 26636 0 3 0x6000082 thrsleep syz-fuzzer 34204 127947 26636 0 3 0x6000082 wait syz-fuzzer 34204 370691 26636 0 3 0x6000082 wait syz-fuzzer 34204 61299 26636 0 3 0x6000082 thrsleep syz-fuzzer 34204 524131 26636 0 3 0x6000082 kqread syz-fuzzer 34204 19611 26636 0 3 0x6000082 wait syz-fuzzer 34204 95248 26636 0 3 0x6000082 thrsleep syz-fuzzer 34204 468204 26636 0 3 0x6000082 thrsleep syz-fuzzer 34204 96733 26636 0 3 0x6000082 thrsleep syz-fuzzer 34204 7116 26636 0 3 0x6000082 thrsleep syz-fuzzer 34204 134166 26636 0 3 0x6000082 wait syz-fuzzer 34204 189354 26636 0 3 0x6000082 wait syz-fuzzer 34204 377514 26636 0 3 0x6000082 wait syz-fuzzer 34204 95108 26636 0 3 0x6000082 wait syz-fuzzer 34204 272127 26636 0 3 0x6000082 thrsleep syz-fuzzer 26636 277923 99153 0 3 0x10008a sigsusp ksh 99153 137002 80729 0 3 0x9a kqread sshd 57946 79925 1 0 3 0x100083 ttyin getty 80729 389642 1 0 3 0x88 kqread sshd 61671 291567 84705 73 3 0x1100090 kqread syslogd 84705 346888 1 0 3 0x100082 netio syslogd 25203 436421 1 0 3 0x100080 kqread resolvd 99818 109597 75752 77 3 0x100092 kqread dhcpleased 27114 322528 75752 77 3 0x100092 kqread dhcpleased 75752 31684 1 0 3 0x80 kqread dhcpleased 94886 321058 0 0 3 0x14200 bored smr 80894 122100 0 0 3 0x14200 pgzero zerothread 80083 128634 0 0 3 0x14200 aiodoned aiodoned 64494 378459 0 0 3 0x14200 syncer update 38445 428024 0 0 3 0x14200 cleaner cleaner 64975 43511 0 0 3 0x14200 reaper reaper 97840 85846 0 0 3 0x14200 pgdaemon pagedaemon 27379 158369 0 0 3 0x14200 bored viomb 98754 471031 0 0 3 0x40014200 acpi0 acpi0 22389 501591 0 0 7 0x40014200 idle1 70934 95980 0 0 3 0x14200 bored softnet3 72959 116558 0 0 3 0x14200 bored softnet2 88304 440937 0 0 3 0x14200 bored softnet1 69441 483920 0 0 3 0x14200 bored softnet0 25710 450249 0 0 3 0x14200 bored systqmp 65135 360369 0 0 3 0x14200 bored systq *93366 135355 0 0 7 0x40014200 softclock 66945 471409 0 0 3 0x40014200 idle0 1 107514 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 93366 (softclock) thread 0xffff8000211697e8 (135355) exclusive rwlock netlock r = 0 (0xffffffff82c18bf0) #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 (0xffffffff82c21f30) #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 (0xffffffff82c52358) #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 10193 6409K 6420K 78643K 11364 0 pcb 13 12K 14K 78643K 17 0 rtable 242 6K 7K 78643K 1691 0 pf 29 8K 8K 78643K 91 0 ifaddr 44 15K 16K 78643K 174 0 ifgroup 50 2K 2K 78643K 174 0 sysctl 3 1K 1K 78643K 3 0 counters 60 35K 35K 78643K 122 0 ioctlops 0 0K 2K 78643K 230 0 iov 0 0K 24K 78643K 1084 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 2992 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 5K 78643K 103 0 VM map 2 1K 1K 78643K 2 0 sem 10 0K 1K 78643K 16 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 19 69K 121K 78643K 10678 0 sigio 0 0K 0K 78643K 1203 0 proc 56 78K 103K 78643K 1850 0 subproc 104 6K 6K 78643K 507 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 741 0 in_multi 99 7K 7K 78643K 543 0 ether_multi 1 0K 0K 78643K 9 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 97 440K 440K 78643K 97 0 exec 0 0K 1K 78643K 2335 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 382 89K 106K 78643K 105072 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 282 0 NDP 11 0K 2K 78643K 120 0 temp 74 5920K 6000K 78643K 30180 0 kqueue 14 22K 30K 78643K 1139 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 552 0 549 8 5 3 5 0 8 2 rtentry 112 474 0 360 4 0 4 4 0 8 0 unpcb 144 7195 0 7182 69 68 1 10 0 8 0 syncache 304 136 0 136 19 19 0 1 0 8 0 tcpqe 32 348 0 348 17 17 0 1 0 8 0 tcpcb 808 13710 0 13678 155 147 8 18 0 8 2 arp 120 82 0 63 1 0 1 1 0 8 0 ipq 40 17 0 16 7 6 1 1 0 8 0 ipqe 40 181 0 180 7 6 1 1 0 8 0 inpcb 368 16947 0 16912 159 146 13 17 0 8 8 ip6q 72 1 0 1 1 1 0 1 0 8 0 ip6af 40 1 0 1 1 1 0 1 0 8 0 nd6 136 137 0 110 1 0 1 1 0 8 0 kcovpl 48 39 0 31 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 1881 0 1415 32 2 30 30 0 8 0 art_table 32 1882 0 1415 4 0 4 4 0 8 0 art_node 16 473 0 369 1 0 1 1 0 8 0 sysvmsgpl 40 6 0 2 1 0 1 1 0 8 0 semapl 112 8 0 0 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 14824 0 13368 92 0 92 92 0 8 0 ffsino 272 14824 0 13368 98 0 98 98 0 8 0 nchpl 144 29303 0 27665 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 95882 0 95882 4 3 1 2 0 8 1 percpumem 16 74 0 31 1 0 1 1 0 8 0 kstatmem 264 84 0 62 2 0 2 2 0 8 0 scxspl 216 87451 0 87451 29 28 1 8 1 8 1 plimitpl 152 1546 0 1523 14 13 1 2 0 8 0 sigapl 424 10912 0 10864 8 1 7 7 0 8 1 futexpl 64 84077 0 84075 3 2 1 1 0 8 0 knotepl 120 901 0 0 17 0 17 17 0 8 0 kqueuepl 216 2718 0 2707 42 41 1 5 0 8 0 pipepl 320 3177 0 3149 87 84 3 13 0 8 0 fdescpl 496 10894 0 10864 7 2 5 6 0 8 0 filepl 152 74375 0 74142 124 108 16 22 0 8 6 lockfpl 104 1830 0 1828 2 1 1 2 0 8 0 lockfspl 48 536 0 534 1 0 1 1 0 8 0 sessionpl 144 54 0 38 1 0 1 1 0 8 0 pgrppl 48 127 0 111 1 0 1 1 0 8 0 ucredpl 104 7947 0 7929 1 0 1 1 0 8 0 zombiepl 144 10865 0 10864 1 0 1 1 0 8 0 processpl 1072 10912 0 10864 5 1 4 5 0 8 0 procpl 680 29162 0 29096 26 18 8 8 0 8 1 sosppl 168 149 0 147 11 10 1 1 0 8 0 sockpl 488 25367 0 25316 380 363 17 37 0 8 8 mcl64k 65536 17 0 0 3 0 3 3 0 8 0 mcl16k 16384 25 0 0 4 1 3 3 0 8 0 mcl12k 12288 14 0 0 2 0 2 2 0 8 0 mcl9k 9216 15 0 0 2 0 2 2 0 8 0 mcl8k 8192 18 0 0 3 0 3 3 0 8 0 mcl4k 4096 57 0 0 5 0 5 5 0 8 0 mcl2k2 2112 11 0 0 1 0 1 1 0 8 0 mcl2k 2048 335 0 0 31 9 22 31 0 8 2 mtagpl 96 4 0 0 1 0 1 1 0 8 0 mbufpl 256 1519 0 0 66 0 66 66 0 8 0 bufpl 288 20458 0 14132 454 1 453 453 0 8 0 anonpl 24 1169310 0 1158119 204 114 90 108 0 186 0 amapchunkpl 152 333253 0 332463 105 67 38 49 0 158 0 amappl16 200 25869 0 25577 153 132 21 39 0 8 2 amappl15 192 7 0 7 1 1 0 1 0 8 0 amappl14 184 278 0 266 2 1 1 2 0 8 0 amappl13 176 8 0 7 1 0 1 1 0 8 0 amappl12 168 12006 0 11971 2 0 2 2 0 8 0 amappl11 160 49 0 38 1 0 1 1 0 8 0 amappl10 152 103 0 89 2 1 1 1 0 8 0 amappl9 144 272 0 272 3 3 0 1 0 8 0 amappl8 136 639 0 503 5 0 5 5 0 8 0 amappl7 128 109 0 91 2 0 2 2 0 8 0 amappl6 120 544 0 518 2 1 1 2 0 8 0 amappl5 112 476 0 467 1 0 1 1 0 8 0 amappl4 104 999 0 953 3 1 2 3 0 8 0 amappl3 96 65254 0 65177 10 7 3 4 0 8 0 amappl2 88 11485 0 11411 3 1 2 3 0 8 0 amappl1 80 48311 0 47795 22 9 13 22 0 8 0 amappl 88 103973 0 103748 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 10894 0 10864 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 10894 0 10864 1 0 1 1 0 8 0 vmmpekpl 168 91856 0 91801 3 0 3 3 0 8 0 vmmpepl 168 652091 0 649870 226 107 119 140 0 357 0 vmsppl 464 10893 0 10864 7 2 5 6 0 8 0 rwobjpl 56 167501 0 160086 119 10 109 111 0 8 0 pdppl 4096 21796 0 21728 478 396 82 94 0 8 14 pvpl 32 3212743 0 3195696 501 324 177 358 0 265 11 pmappl 248 10893 0 10864 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 1617 0 725 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(ffffffff8279e072) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f005,ffffffff8286edd6,2f6,ffffffff8276def9) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd8065e2ee08) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82d40140) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82d40140) 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 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020d58ff0) at sched_idle+0x41e sys/kern/kern_sched.c:191 end trace frame: 0x0, count: 10 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 acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206 sched_idle(ffff800020d58ff0) at sched_idle+0x41e sys/kern/kern_sched.c:191 end trace frame: 0x0, count: -5