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 268774 44494 32767 0x10 0 1 syz-executor.1 *123624 49080 0 0x14000 0x40000200 0K softclock db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a4cb6) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82825849,ffffffff828720c8,2f6,ffffffff82772294) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd80752df930) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82c8ffc0) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82c8ffc0) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread(ffff800021159298) 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(ffffffff827a4cb6) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82825849,ffffffff828720c8,2f6,ffffffff82772294) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd80752df930) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82c8ffc0) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82c8ffc0) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread(ffff800021159298) 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 0xffff8000211658e0 rbx 0xffffffff82bb6ba7 cpu_info_full_primary+0x2ba7 rdx 0 rcx 0xffff800021159298 rax 0xffffffff82bb5ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0x971fd97cc527442f r11 0xd95392863b316d0d r12 0xffffffff82bb69a8 cpu_info_full_primary+0x29a8 r13 0 r14 0 r15 0x1 rip 0xffffffff810599fc db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff8000211658d0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (softclock) tid=123624 pid=49080 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=0xffff800021159540,0xffff800021158808 process=0xffff8000ffffd920 user=0xffff800021160000, vmspace=0xffffffff82c73d18 estcpu=0, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 9363 53738 44494 32767 3 0x90 nanoslp syz-executor.1 9363 414726 44494 32767 3 0x4000090 fsleep syz-executor.1 9363 502728 44494 32767 3 0x4000090 ttyout syz-executor.1 45081 220643 26687 32767 3 0x90 piperd syz-executor.4 26687 376967 25791 0 3 0x82 wait syz-executor.4 25276 453271 25791 0 3 0x82 wait syz-executor.0 55832 221193 62059 32767 3 0x90 piperd syz-executor.2 62059 216246 25791 0 3 0x82 wait syz-executor.2 30528 208194 17009 32767 3 0x90 piperd syz-executor.7 17009 253092 25791 0 3 0x82 wait syz-executor.7 43233 523406 29828 32767 3 0x90 piperd syz-executor.5 29828 304017 25791 0 3 0x82 wait syz-executor.5 81136 156933 36484 32767 3 0x90 piperd syz-executor.6 36484 156111 25791 0 3 0x82 wait syz-executor.6 79803 521406 41592 32767 3 0x90 piperd syz-executor.3 41592 305774 25791 0 3 0x82 wait syz-executor.3 44494 268774 46241 32767 7 0x10 syz-executor.1 46241 249011 25791 0 3 0x82 wait syz-executor.1 37121 176240 0 0 3 0x14200 bored sosplice 25791 196125 19858 0 3 0x2000082 thrsleep syz-fuzzer 25791 429937 19858 0 3 0x6000082 thrsleep syz-fuzzer 25791 229582 19858 0 3 0x6000082 wait syz-fuzzer 25791 506083 19858 0 3 0x6000082 wait syz-fuzzer 25791 306631 19858 0 3 0x6000082 thrsleep syz-fuzzer 25791 522212 19858 0 3 0x6000082 wait syz-fuzzer 25791 471050 19858 0 3 0x6000082 wait syz-fuzzer 25791 284017 19858 0 3 0x6000082 wait syz-fuzzer 25791 422819 19858 0 3 0x6000082 thrsleep syz-fuzzer 25791 254916 19858 0 3 0x6000082 thrsleep syz-fuzzer 25791 495839 19858 0 3 0x6000082 thrsleep syz-fuzzer 25791 313980 19858 0 3 0x6000082 thrsleep syz-fuzzer 25791 446043 19858 0 3 0x6000082 wait syz-fuzzer 25791 258917 19858 0 3 0x6000082 wait syz-fuzzer 25791 47128 19858 0 3 0x6000082 wait syz-fuzzer 25791 197377 19858 0 3 0x6000082 kqread syz-fuzzer 19858 226464 68649 0 3 0x10008a sigsusp ksh 68649 255775 67003 0 3 0x9a kqread sshd 80664 184971 1 0 3 0x100083 ttyin getty 67003 408718 1 0 3 0x88 kqread sshd 35424 407391 24616 73 3 0x1100090 kqread syslogd 24616 103895 1 0 3 0x100082 netio syslogd 89523 189580 1 0 3 0x100080 kqread resolvd 77065 72119 49783 77 3 0x100092 kqread dhcpleased 48310 366098 49783 77 3 0x100092 kqread dhcpleased 49783 124550 1 0 3 0x80 kqread dhcpleased 92111 255872 0 0 3 0x14200 bored smr 51812 384616 0 0 3 0x14200 pgzero zerothread 37704 140386 0 0 3 0x14200 aiodoned aiodoned 84200 248229 0 0 3 0x14200 syncer update 35791 155319 0 0 3 0x14200 cleaner cleaner 83434 387925 0 0 3 0x14200 reaper reaper 42455 501586 0 0 3 0x14200 pgdaemon pagedaemon 34714 69839 0 0 3 0x14200 bored viomb 4570 435282 0 0 3 0x40014200 acpi0 acpi0 74133 178283 0 0 3 0x40014200 idle1 46586 138806 0 0 3 0x14200 bored softnet3 42451 306030 0 0 3 0x14200 bored softnet2 3133 313996 0 0 3 0x14200 bored softnet1 73232 458600 0 0 3 0x14200 bored softnet0 3122 232317 0 0 3 0x14200 bored systqmp 22306 139254 0 0 3 0x14200 bored systq 75711 234769 0 0 3 0x14200 tmoslp softclockmp *49080 123624 0 0 7 0x40014200 softclock 65405 389591 0 0 3 0x40014200 idle0 1 108736 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 49080 (softclock) thread 0xffff800021159298 (123624) exclusive rwlock netlock r = 0 (0xffffffff82c395b0) #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+0x1c shared rwlock timeout r = 0 (0xffffffff82bc4998) #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+0x1c exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82c692a0) #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+0x1c ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim devbuf 10215 6413K 6420K 78643K 11520 0 pcb 13 16K 20K 78643K 19 0 rtable 242 6K 7K 78643K 3570 0 pf 29 8K 8K 78643K 179 0 ifaddr 44 16K 16K 78643K 352 0 ifgroup 50 2K 2K 78643K 350 0 sysctl 4 1K 1K 78643K 4 0 counters 60 35K 35K 78643K 210 0 ioctlops 0 0K 2K 78643K 567 0 iov 0 0K 24K 78643K 3134 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 9869 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 430 0 VM map 2 1K 1K 78643K 2 0 sem 10 1K 1K 78643K 21 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 19 69K 129K 78643K 33762 0 sigio 0 0K 0K 78643K 775 0 proc 56 78K 115K 78643K 4085 0 subproc 104 6K 6K 78643K 1079 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 2042 0 in_multi 99 7K 7K 78643K 1366 0 ether_multi 1 0K 0K 78643K 39 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 229 1023K 1023K 78643K 229 0 exec 0 0K 1K 78643K 4183 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 422 94K 111K 78643K 328552 0 UVM aobj 131 4K 4K 78643K 143 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 609 0 NDP 11 0K 2K 78643K 252 0 temp 74 5920K 6048K 78643K 85937 0 kqueue 12 18K 30K 78643K 2762 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 1202 0 1198 12 9 3 5 0 8 2 rtentry 112 989 0 875 4 0 4 4 0 8 0 unpcb 144 72113 0 72100 396 392 4 14 0 8 3 syncache 304 330 0 330 61 60 1 1 0 8 1 tcpqe 32 393 0 393 53 52 1 1 0 8 1 tcpcb 808 10021 0 9983 286 278 8 23 0 8 2 arp 120 180 0 161 1 0 1 1 0 8 0 ipq 40 70 0 69 14 13 1 1 0 8 0 ipqe 40 166 0 165 14 13 1 1 0 8 0 inpcb 368 22475 0 22434 359 348 11 21 0 8 4 nd6 136 290 0 263 6 4 2 2 0 8 0 kcovpl 48 83 0 75 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 3935 0 3464 31 1 30 31 0 8 0 art_table 32 3936 0 3464 4 0 4 4 0 8 0 art_node 16 988 0 884 1 0 1 1 0 8 0 sysvmsgpl 40 52 0 25 1 0 1 1 0 8 0 semupl 112 6 0 6 2 2 0 1 0 8 0 semapl 112 13 0 5 1 0 1 1 0 8 0 shmpl 112 140 0 12 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 46401 0 44884 95 0 95 95 0 8 0 ffsino 272 46401 0 44884 102 0 102 102 0 8 0 nchpl 144 90066 0 88428 63 0 63 63 0 8 0 uvmvnodes 80 7799 0 0 160 0 160 160 0 8 0 vnodes 216 7799 0 0 434 0 434 434 0 8 0 namei 1024 299150 0 299150 14 13 1 2 0 8 1 percpumem 16 118 0 75 1 0 1 1 0 8 0 kstatmem 264 172 0 150 2 0 2 2 0 8 0 scxspl 216 279808 0 279808 62 61 1 8 1 8 1 plimitpl 152 5518 0 5494 50 48 2 2 0 8 1 sigapl 424 33905 0 33856 9 2 7 8 0 8 0 futexpl 64 265021 0 265020 13 12 1 1 0 8 0 knotepl 120 2118 0 0 19 0 19 19 0 8 0 kqueuepl 216 6694 0 6686 115 114 1 9 0 8 0 pipepl 320 6197 0 6169 140 137 3 8 0 8 0 fdescpl 496 33886 0 33856 7 2 5 6 0 8 0 filepl 152 245131 0 244894 492 478 14 28 0 8 4 lockfpl 104 4107 0 4105 2 1 1 2 0 8 0 lockfspl 48 1475 0 1473 1 0 1 1 0 8 0 sessionpl 144 98 0 82 1 0 1 1 0 8 0 pgrppl 48 3912 0 3896 1 0 1 1 0 8 0 ucredpl 104 47445 0 47427 1 0 1 1 0 8 0 zombiepl 144 33857 0 33856 1 0 1 1 0 8 0 processpl 1072 33905 0 33856 5 1 4 5 0 8 0 procpl 680 92540 0 92474 58 50 8 8 0 8 1 sosppl 168 679 0 679 47 46 1 1 0 8 1 sockpl 488 97093 0 97035 1994 1976 18 52 0 8 7 mcl64k 65536 57 0 0 5 2 3 3 0 8 0 mcl16k 16384 49 0 0 5 2 3 3 0 8 0 mcl12k 12288 25 0 0 2 0 2 2 0 8 0 mcl9k 9216 17 0 0 2 0 2 2 0 8 0 mcl8k 8192 81 0 0 7 4 3 3 0 8 0 mcl4k 4096 137 0 0 6 3 3 4 0 8 0 mcl2k2 2112 20 0 0 2 0 2 2 0 8 0 mcl2k 2048 640 0 0 32 17 15 32 0 8 0 mtagpl 96 19 0 0 1 0 1 1 0 8 0 mbufpl 256 3063 0 0 134 0 134 134 0 8 0 bufpl 288 57191 0 49392 559 1 558 558 0 8 0 anonpl 24 3207735 0 3196323 406 311 95 130 0 186 0 amapchunkpl 152 1034245 0 1033452 251 212 39 52 0 158 0 amappl16 200 65230 0 64923 362 342 20 42 0 8 0 amappl15 192 30 0 30 9 9 0 1 0 8 0 amappl14 184 382 0 366 2 1 1 2 0 8 0 amappl13 176 12 0 11 1 0 1 1 0 8 0 amappl12 168 35637 0 35601 3 1 2 3 0 8 0 amappl11 160 60 0 48 1 0 1 1 0 8 0 amappl10 152 132 0 120 1 0 1 1 0 8 0 amappl9 144 528 0 527 1 0 1 1 0 8 0 amappl8 136 1636 0 1453 7 0 7 7 0 8 0 amappl7 128 190 0 174 2 0 2 2 0 8 0 amappl6 120 1067 0 1035 4 2 2 3 0 8 0 amappl5 112 1191 0 1183 1 0 1 1 0 8 0 amappl4 104 1686 0 1642 2 0 2 2 0 8 0 amappl3 96 203498 0 203427 6 3 3 4 0 8 0 amappl2 88 35484 0 35410 3 1 2 3 0 8 0 amappl1 80 129617 0 129101 22 10 12 22 0 8 0 amappl 88 326199 0 325976 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 142 0 12 3 0 3 3 0 8 0 uaddrrnd 24 33886 0 33856 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 33886 0 33856 1 0 1 1 0 8 0 vmmpekpl 168 254651 0 254577 4 0 4 4 0 8 0 vmmpepl 168 1967089 0 1964809 368 242 126 137 0 357 0 vmsppl 464 33885 0 33856 7 2 5 6 0 8 0 rwobjpl 56 473098 0 463752 164 28 136 136 0 8 0 pdppl 4096 67780 0 67712 1215 1133 82 98 0 8 14 pvpl 32 9660649 0 9642968 1019 842 177 332 0 265 0 pmappl 248 33885 0 33856 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 2915 0 1854 31 0 31 31 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(ffffffff827a4cb6) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff82825849,ffffffff828720c8,2f6,ffffffff82772294) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd80752df930) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82c8ffc0) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82c8ffc0) at timeout_run+0xd0 sys/kern/kern_timeout.c:665 softclock_thread(ffff800021159298) 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(ffffffff82c69098) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c69098) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff80002c9c3ba0) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002c9c3ba0) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c7c9d862d10, 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(ffffffff82c69098) at __mp_lock+0x122 __mp_lock_spin sys/kern/kern_lock.c:116 [inline] __mp_lock(ffffffff82c69098) at __mp_lock+0x122 sys/kern/kern_lock.c:147 syscall(ffff80002c9c3ba0) at syscall+0x5cd mi_syscall sys/sys/syscall_mi.h:110 [inline] syscall(ffff80002c9c3ba0) at syscall+0x5cd sys/arch/amd64/amd64/trap.c:623 Xsyscall() at Xsyscall+0x128 end of kernel end trace frame: 0x7c7c9d862d10, count: -6