panic: kernel diagnostic assertion "ifp != NULL" failed: file "/syzkaller/managers/setuid/kernel/sys/netinet/if_ether.c", line 759 Stopped at db_enter+0x1c: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 472940 9221 32767 0x10 0 0 syz-executor.3 *250491 63824 0 0x14000 0x200 1 softclockmp db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827aae81) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82827cc8,ffffffff8287435a,2f7,ffffffff82773714) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd8067be5ef0) at arptfree+0x132 sys/netinet/if_ether.c:759 arptimer(ffffffff82cd7918) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82cd7918) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread_mp(ffff800021158d48) at softclock_thread_mp+0xc4 sys/kern/kern_timeout.c:833 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{1}> ddb{1}> set $lines = 0 ddb{1}> set $maxwidth = 0 ddb{1}> show panic *cpu1: kernel diagnostic assertion "ifp != NULL" failed: file "/syzkaller/managers/setuid/kernel/sys/netinet/if_ether.c", line 759 ddb{1}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827aae81) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82827cc8,ffffffff8287435a,2f7,ffffffff82773714) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd8067be5ef0) at arptfree+0x132 sys/netinet/if_ether.c:759 arptimer(ffffffff82cd7918) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82cd7918) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread_mp(ffff800021158d48) at softclock_thread_mp+0xc4 sys/kern/kern_timeout.c:833 end trace frame: 0x0, count: -7 ddb{1}> show registers rdi 0 rsi 0x1 rbp 0xffff80002116b3c0 rbx 0xffff800020d49ba7 rdx 0 rcx 0xffff800021158d48 rax 0xffff800020d48ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xea1f0267859d124e r11 0x4d1bb2bf5f47ad20 r12 0xffff800020d499a8 r13 0 r14 0 r15 0x1 rip 0xffffffff81d0edcc db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff80002116b3b0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{1}> show proc PROC (softclockmp) tid=250491 pid=63824 tcnt=1 stat=onproc flags process=14000 proc=200 runpri=0, usrpri=50, slppri=0, nice=20 wchan=0x0, wmesg=, ps_single=0x0 forw=0xffffffffffffffff, list=0xffff800021158ff0,0xffff800021158808 process=0xffff8000ffffe5b0 user=0xffff800021166000, vmspace=0xffffffff82c65808 estcpu=0, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{1}> ps PID TID PPID UID S FLAGS WAIT COMMAND 86103 370627 9221 32767 3 0x90 nanoslp syz-executor.3 86103 482882 9221 32767 3 0x4000090 kqread syz-executor.3 86103 363503 9221 32767 3 0x4000090 fsleep syz-executor.3 45163 178337 85397 32767 3 0x90 piperd syz-executor.7 85397 218770 2888 0 3 0x82 wait syz-executor.7 18587 9904 20523 32767 3 0x90 piperd syz-executor.6 20523 347475 2888 0 3 0x82 wait syz-executor.6 43389 370519 16020 32767 3 0x90 piperd syz-executor.4 16020 206986 2888 0 3 0x82 wait syz-executor.4 23716 153768 2888 0 3 0x82 wait syz-executor.0 95926 164458 84511 32767 3 0x90 piperd syz-executor.2 84511 343065 2888 0 3 0x82 wait syz-executor.2 97859 484108 25384 32767 3 0x90 piperd syz-executor.5 25384 350322 2888 0 3 0x82 wait syz-executor.5 9221 472940 3086 32767 7 0x10 syz-executor.3 3086 308398 2888 0 3 0x82 wait syz-executor.3 26174 396599 21549 32767 3 0x90 piperd syz-executor.1 21549 28270 2888 0 3 0x82 wait syz-executor.1 49513 186589 0 0 3 0x14200 bored sosplice 2888 296719 14955 0 3 0x2000082 kqread syz-fuzzer 2888 391643 14955 0 3 0x6000082 nanoslp syz-fuzzer 2888 46335 14955 0 3 0x6000082 thrsleep syz-fuzzer 2888 483385 14955 0 3 0x6000082 wait syz-fuzzer 2888 33749 14955 0 3 0x6000082 wait syz-fuzzer 2888 515894 14955 0 3 0x6000082 wait syz-fuzzer 2888 241839 14955 0 3 0x6000082 wait syz-fuzzer 2888 74824 14955 0 3 0x6000082 thrsleep syz-fuzzer 2888 416098 14955 0 3 0x6000082 thrsleep syz-fuzzer 2888 58999 14955 0 3 0x6000082 thrsleep syz-fuzzer 2888 329601 14955 0 3 0x6000082 thrsleep syz-fuzzer 2888 410405 14955 0 3 0x6000082 wait syz-fuzzer 2888 318457 14955 0 3 0x6000082 wait syz-fuzzer 2888 172632 14955 0 3 0x6000082 wait syz-fuzzer 2888 21344 14955 0 3 0x6000082 wait syz-fuzzer 2888 410641 14955 0 3 0x6000082 thrsleep syz-fuzzer 14955 44029 11262 0 3 0x10008a sigsusp ksh 11262 362631 59683 0 3 0x9a kqread sshd 51570 416127 1 0 3 0x100083 ttyin getty 59683 120813 1 0 3 0x88 kqread sshd 52601 99414 52267 73 3 0x1100090 kqread syslogd 52267 325524 1 0 3 0x100082 netio syslogd 53657 400506 1 0 3 0x100080 kqread resolvd 45119 81232 60119 77 3 0x100092 kqread dhcpleased 71280 122396 60119 77 3 0x100092 kqread dhcpleased 60119 175289 1 0 3 0x80 kqread dhcpleased 67914 334613 0 0 3 0x14200 bored smr 18923 494551 0 0 3 0x14200 pgzero zerothread 47151 13238 0 0 3 0x14200 aiodoned aiodoned 97644 433647 0 0 3 0x14200 syncer update 25481 375162 0 0 3 0x14200 cleaner cleaner 68740 20429 0 0 3 0x14200 reaper reaper 15975 437272 0 0 3 0x14200 pgdaemon pagedaemon 68335 337408 0 0 3 0x14200 bored viomb 32124 301620 0 0 3 0x40014200 acpi0 acpi0 69430 371677 0 0 3 0x40014200 idle1 6589 287751 0 0 3 0x14200 bored softnet3 83874 12145 0 0 3 0x14200 bored softnet2 20865 122644 0 0 3 0x14200 bored softnet1 48735 298322 0 0 3 0x14200 bored softnet0 25952 115461 0 0 3 0x14200 bored systqmp 75606 89108 0 0 3 0x14200 bored systq *63824 250491 0 0 7 0x14200 softclockmp 62397 97133 0 0 3 0x40014200 tmoslp softclock 24065 83492 0 0 3 0x40014200 idle0 1 398920 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{1}> show all locks CPU 0: exclusive sched_lock &sched_lock r = 0 (0xffffffff82ce5888) #0 witness_lock+0x447 #1 sleep_finish+0x142 sys/kern/kern_synch.c:398 #2 msleep+0xea sys/kern/kern_synch.c:249 #3 softclock_thread+0xd0 sys/kern/kern_timeout.c:805 #4 proc_trampoline+0x10 Process 63824 (softclockmp) thread 0xffff800021158d48 (250491) exclusive rwlock netlock r = 0 (0xffffffff82bf18a0) #0 witness_lock+0x447 #1 rw_enter+0x3c8 sys/kern/kern_rwlock.c:309 #2 arptimer+0x26 sys/netinet/if_ether.c:132 #3 timeout_run+0xd0 sys/kern/kern_timeout.c:665 #4 softclock_thread_mp+0xc4 sys/kern/kern_timeout.c:833 #5 proc_trampoline+0x10 shared rwlock timeout r = 0 (0xffffffff82ba6390) #0 witness_lock+0x447 #1 timeout_run+0xbb sys/kern/kern_timeout.c:661 #2 softclock_thread_mp+0xc4 sys/kern/kern_timeout.c:833 #3 proc_trampoline+0x10 ddb{1}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10214 6413K 6420K 78643K 11426 0 pcb 13 16K 18K 78643K 19 0 rtable 242 6K 7K 78643K 2537 0 pf 29 8K 8K 78643K 117 0 ifaddr 44 15K 16K 78643K 226 0 ifgroup 50 2K 2K 78643K 226 0 sysctl 4 1K 1K 78643K 4 0 counters 60 35K 35K 78643K 148 0 ioctlops 0 0K 2K 78643K 236 0 iov 0 0K 16K 78643K 1649 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 4503 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 284 0 VM map 2 1K 1K 78643K 2 0 sem 12 1K 1K 78643K 293 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 19 69K 117K 78643K 17472 0 sigio 0 0K 0K 78643K 1622 0 proc 56 78K 103K 78643K 2701 0 subproc 104 6K 6K 78643K 676 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 990 0 in_multi 99 7K 7K 78643K 797 0 ether_multi 1 0K 0K 78643K 42 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 223 996K 996K 78643K 223 0 exec 0 0K 1K 78643K 2942 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 417 95K 109K 78643K 172103 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 443 0 NDP 11 0K 2K 78643K 159 0 temp 74 5920K 6048K 78643K 47851 0 kqueue 13 20K 29K 78643K 1953 0 SYN cache 2 16K 16K 78643K 2 0 ddb{1}> 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 1095 0 1092 16 15 1 3 0 8 0 rtentry 112 631 0 517 4 0 4 4 0 8 0 unpcb 144 14125 0 14112 136 135 1 10 0 8 0 syncache 312 276 0 276 33 32 1 1 0 8 1 tcpqe 32 355 0 355 30 29 1 1 0 8 1 tcpcb 808 24068 0 24016 246 233 13 32 0 8 4 arp 120 110 0 91 1 0 1 1 0 8 0 ipq 40 16 0 16 8 7 1 1 0 8 1 ipqe 40 60 0 60 8 7 1 1 0 8 1 inpcb 368 32777 0 32722 259 245 14 29 0 8 5 nd6 136 188 0 161 5 3 2 2 0 8 0 kcovpl 48 52 0 44 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 2517 0 2051 33 3 30 31 0 8 0 art_table 32 2518 0 2051 4 0 4 4 0 8 0 art_node 16 630 0 526 1 0 1 1 0 8 0 sysvmsgpl 40 2 0 0 1 0 1 1 0 8 0 semupl 112 5 0 5 1 1 0 1 0 8 0 semapl 112 288 0 278 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 23307 0 21847 92 0 92 92 0 8 0 ffsino 272 23307 0 21847 98 0 98 98 0 8 0 nchpl 144 45734 0 44096 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 150817 0 150817 3 2 1 2 0 8 1 percpumem 16 87 0 44 1 0 1 1 0 8 0 kstatmem 264 110 0 88 2 0 2 2 0 8 0 scxspl 216 160578 0 160578 72 71 1 8 1 8 1 plimitpl 152 3232 0 3209 25 24 1 2 0 8 0 sigapl 424 17681 0 17632 7 0 7 7 0 8 0 futexpl 64 161725 0 161724 3 2 1 1 0 8 0 knotepl 120 1320 0 0 19 2 17 18 0 8 0 kqueuepl 216 5018 0 5009 75 74 1 8 0 8 0 pipepl 320 6992 0 6964 132 124 8 13 0 8 5 fdescpl 496 17662 0 17632 7 2 5 6 0 8 0 filepl 152 130970 0 130732 200 182 18 24 0 8 8 lockfpl 104 2354 0 2352 3 1 2 2 0 8 1 lockfspl 48 667 0 665 1 0 1 1 0 8 0 sessionpl 144 67 0 51 1 0 1 1 0 8 0 pgrppl 48 177 0 161 1 0 1 1 0 8 0 ucredpl 104 14766 0 14748 1 0 1 1 0 8 0 zombiepl 144 17633 0 17632 1 0 1 1 0 8 0 processpl 1072 17681 0 17632 5 1 4 5 0 8 0 procpl 680 48441 0 48375 26 18 8 8 0 8 1 srpgc 96 4 0 4 1 1 0 1 0 8 0 sosppl 168 274 0 271 10 9 1 1 0 8 0 sockpl 488 51330 0 51259 678 658 20 42 0 8 8 mcl64k 65536 24 0 0 3 0 3 3 0 8 0 mcl16k 16384 17 0 0 3 0 3 3 0 8 0 mcl12k 12288 33 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 25 0 0 3 0 3 3 0 8 0 mcl4k 4096 49 0 0 4 1 3 3 0 8 0 mcl2k2 2112 21 0 0 2 0 2 2 0 8 0 mcl2k 2048 435 0 0 34 9 25 34 0 8 0 mtagpl 96 8 0 0 1 0 1 1 0 8 0 mbufpl 256 8902 0 0 550 0 550 550 0 8 0 bufpl 288 34260 0 27939 452 0 452 452 0 8 0 anonpl 24 1980668 0 1969298 219 119 100 121 0 186 0 amapchunkpl 152 553068 0 552238 189 149 40 54 0 158 1 amappl16 200 48757 0 48458 306 283 23 39 0 8 5 amappl15 192 16 0 16 1 1 0 1 0 8 0 amappl14 184 317 0 302 2 1 1 2 0 8 0 amappl13 176 30 0 30 4 3 1 1 0 8 1 amappl12 168 18969 0 18933 2 0 2 2 0 8 0 amappl11 160 58 0 47 1 0 1 1 0 8 0 amappl10 152 73 0 61 1 0 1 1 0 8 0 amappl9 144 400 0 400 17 17 0 1 0 8 0 amappl8 136 782 0 624 6 0 6 6 0 8 0 amappl7 128 401 0 376 2 0 2 2 0 8 0 amappl6 120 1073 0 1056 1 0 1 1 0 8 0 amappl5 112 446 0 437 1 0 1 1 0 8 0 amappl4 104 1133 0 1098 4 2 2 2 0 8 1 amappl3 96 105418 0 105336 27 24 3 4 0 8 0 amappl2 88 18937 0 18856 3 1 2 3 0 8 0 amappl1 80 72507 0 71987 23 11 12 22 0 8 0 amappl 88 170627 0 170386 9 1 8 8 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 17662 0 17632 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 17662 0 17632 1 0 1 1 0 8 0 vmmpekpl 168 151585 0 151516 4 0 4 4 0 8 0 vmmpepl 168 1050871 0 1048609 277 151 126 133 0 357 1 vmsppl 464 17661 0 17632 7 2 5 6 0 8 0 rwobjpl 56 269694 0 262239 124 14 110 110 0 8 0 pdppl 4096 35332 0 35264 622 540 82 94 0 8 14 pvpl 32 5347642 0 5330344 599 387 212 363 0 265 32 pmappl 248 17661 0 17632 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2468 0 1085 41 0 41 41 0 8 0 ddb{1}> machine ddbcpu 0 Stopped at x86_ipi_db+0x1e: addq $0x8,%rsp x86_ipi_db(ffffffff82bf4ff0) 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(ffffffff82cd74b0) at __mp_lock+0x129 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82cd74b0) at __mp_lock+0x129 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x52 sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xb sys/dev/kcov.c:154 syscall(ffff800026119200) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800026119200) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7e20c81bc3b0, count: 6 ddb{0}> trace x86_ipi_db(ffffffff82bf4ff0) 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(ffffffff82cd74b0) at __mp_lock+0x129 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82cd74b0) at __mp_lock+0x129 sys/kern/kern_lock.c:147 softintr_dispatch(0) at softintr_dispatch+0x52 sys/arch/amd64/amd64/softintr.c:88 Xsoftclock() at Xsoftclock+0x27 __sanitizer_cov_trace_pc() at __sanitizer_cov_trace_pc+0xb sys/dev/kcov.c:154 syscall(ffff800026119200) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff800026119200) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7e20c81bc3b0, count: -9 ddb{0}> machine ddbcpu 1 Stopped at db_enter+0x1c: addq $0x8,%rsp db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827aae81) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82827cc8,ffffffff8287435a,2f7,ffffffff82773714) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd8067be5ef0) at arptfree+0x132 sys/netinet/if_ether.c:759 arptimer(ffffffff82cd7918) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82cd7918) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread_mp(ffff800021158d48) at softclock_thread_mp+0xc4 sys/kern/kern_timeout.c:833 end trace frame: 0x0, count: 8 ddb{1}> trace db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827aae81) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82827cc8,ffffffff8287435a,2f7,ffffffff82773714) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd8067be5ef0) at arptfree+0x132 sys/netinet/if_ether.c:759 arptimer(ffffffff82cd7918) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82cd7918) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread_mp(ffff800021158d48) at softclock_thread_mp+0xc4 sys/kern/kern_timeout.c:833 end trace frame: 0x0, count: -7