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 *407026 52494 0 0x14000 0x40000200 0K softclock db_enter() at db_enter+0x1c sys/arch/amd64/amd64/db_interface.c:437 panic(ffffffff827a4ca4) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f81c,ffffffff8286fd85,2f6,ffffffff8276f191) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd80689be558) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82d7f5d8) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82d7f5d8) at timeout_run+0xd0 sys/kern/kern_timeout.c:640 softclock_thread(ffff800021168ff0) 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(ffffffff827a4ca4) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f81c,ffffffff8286fd85,2f6,ffffffff8276f191) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd80689be558) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82d7f5d8) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82d7f5d8) at timeout_run+0xd0 sys/kern/kern_timeout.c:640 softclock_thread(ffff800021168ff0) 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 0xffff8000211754b0 rbx 0xffffffff82b94ba7 cpu_info_full_primary+0x2ba7 rdx 0 rcx 0xffff800021168ff0 rax 0xffffffff82b93ff0 cpu_info_full_primary+0x1ff0 r8 0x101010101010101 r9 0x8080808080808080 r10 0xc516693e88bcdfd5 r11 0xbfe875d2fd9916cd r12 0xffffffff82b949a8 cpu_info_full_primary+0x29a8 r13 0 r14 0 r15 0x1 rip 0xffffffff825c107c db_enter+0x1c cs 0x8 rflags 0x246 rsp 0xffff8000211754a0 ss 0x10 db_enter+0x1c: addq $0x8,%rsp ddb{0}> show proc PROC (softclock) tid=407026 pid=52494 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=0xffff800021169540,0xffff800021168ab0 process=0xffff8000ffffe5b0 user=0xffff800021170000, vmspace=0xffffffff82cf8890 estcpu=0, cpticks=1, pctcpu=0.0, user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 71283 488564 76282 32767 2 0x490 syz-executor.2 71283 299494 76282 32767 3 0x4000090 netio syz-executor.2 71283 114221 76282 32767 3 0x4000090 fsleep syz-executor.2 21647 457136 13860 32767 3 0x90 piperd syz-executor.1 13860 31757 66905 0 3 0x82 wait syz-executor.1 59362 155407 74816 32767 3 0x90 piperd syz-executor.6 74816 102548 66905 0 3 0x82 wait syz-executor.6 19524 143270 10446 32767 3 0x90 piperd syz-executor.5 10446 415100 66905 0 3 0x82 wait syz-executor.5 31028 215525 68135 32767 3 0x90 piperd syz-executor.3 68135 292850 66905 0 3 0x82 wait syz-executor.3 51360 97579 40407 32767 3 0x90 piperd syz-executor.7 40407 42889 66905 0 3 0x82 wait syz-executor.7 2790 134242 90753 32767 3 0x90 piperd syz-executor.4 90753 288136 66905 0 3 0x82 wait syz-executor.4 89038 86675 66905 0 3 0x82 wait syz-executor.0 76282 133655 47282 32767 3 0x90 nanoslp syz-executor.2 47282 421086 66905 0 3 0x82 wait syz-executor.2 22774 402762 0 0 3 0x14200 bored sosplice 66905 51935 43042 0 3 0x2000082 wait syz-fuzzer 66905 359523 43042 0 3 0x6000082 thrsleep syz-fuzzer 66905 16321 43042 0 3 0x6000082 thrsleep syz-fuzzer 66905 312550 43042 0 3 0x6000082 kqread syz-fuzzer 66905 326127 43042 0 3 0x6000082 thrsleep syz-fuzzer 66905 64911 43042 0 3 0x6000082 wait syz-fuzzer 66905 229827 43042 0 3 0x6000082 thrsleep syz-fuzzer 66905 320788 43042 0 3 0x6000082 wait syz-fuzzer 66905 372226 43042 0 3 0x6000082 wait syz-fuzzer 66905 329546 43042 0 3 0x6000082 wait syz-fuzzer 66905 508720 43042 0 3 0x6000082 wait syz-fuzzer 66905 130475 43042 0 3 0x6000082 thrsleep syz-fuzzer 66905 324760 43042 0 3 0x6000082 thrsleep syz-fuzzer 66905 70175 43042 0 3 0x6000082 wait syz-fuzzer 66905 151275 43042 0 3 0x6000082 thrsleep syz-fuzzer 66905 172677 43042 0 3 0x6000082 wait syz-fuzzer 43042 452110 23998 0 3 0x10008a sigsusp ksh 23998 77121 19264 0 3 0x9a kqread sshd 41320 481296 1 0 3 0x100083 ttyin getty 19264 69522 1 0 3 0x88 kqread sshd 11284 276767 81488 73 3 0x1100090 kqread syslogd 81488 38681 1 0 3 0x100082 netio syslogd 60809 143593 1 0 3 0x100080 kqread resolvd 90404 343973 20790 77 3 0x100092 kqread dhcpleased 41216 314447 20790 77 3 0x100092 kqread dhcpleased 20790 329366 1 0 3 0x80 kqread dhcpleased 1197 38871 0 0 3 0x14200 bored smr 59531 131294 0 0 3 0x14200 pgzero zerothread 2398 389629 0 0 3 0x14200 aiodoned aiodoned 47258 471232 0 0 3 0x14200 syncer update 70627 122026 0 0 3 0x14200 cleaner cleaner 70377 375725 0 0 3 0x14200 reaper reaper 24462 57958 0 0 3 0x14200 pgdaemon pagedaemon 60243 351773 0 0 3 0x14200 bored viomb 23046 286222 0 0 3 0x40014200 acpi0 acpi0 3704 356407 0 0 7 0x40014200 idle1 86327 345504 0 0 3 0x14200 bored softnet3 11600 319159 0 0 3 0x14200 bored softnet2 44918 81543 0 0 3 0x14200 bored softnet1 38753 335521 0 0 3 0x14200 bored softnet0 91685 487220 0 0 3 0x14200 bored systqmp 69676 451747 0 0 3 0x14200 bored systq *52494 407026 0 0 7 0x40014200 softclock 35982 29499 0 0 3 0x40014200 idle0 1 1054 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 52494 (softclock) thread 0xffff800021168ff0 (407026) exclusive rwlock netlock r = 0 (0xffffffff82c17950) #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 (0xffffffff82ba4d90) #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 (0xffffffff82c85a38) #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 10226 6414K 6420K 78643K 11579 0 pcb 13 20K 24K 78643K 21 0 rtable 240 6K 7K 78643K 5561 0 pf 29 8K 8K 78643K 211 0 ifaddr 44 16K 16K 78643K 416 0 ifgroup 50 2K 2K 78643K 414 0 sysctl 3 1K 3K 78643K 39 0 counters 60 35K 35K 78643K 242 0 ioctlops 0 0K 2K 78643K 407 0 iov 0 0K 28K 78643K 7574 0 mount 1 1K 1K 78643K 1 0 log 0 0K 0K 78643K 4 0 vnodes 1279 80K 80K 78643K 12471 0 UFS quota 1 32K 32K 78643K 1 0 UFS mount 5 36K 36K 78643K 5 0 shm 2 1K 9K 78643K 744 0 VM map 2 1K 1K 78643K 2 0 sem 11 1K 1K 78643K 17 0 dirhash 12 2K 2K 78643K 12 0 ACPI 1697 195K 286K 78643K 12548 0 file desc 19 69K 113K 78643K 68120 0 sigio 0 0K 0K 78643K 1954 0 proc 56 78K 115K 78643K 7486 0 subproc 104 6K 6K 78643K 1287 0 NFS srvsock 1 0K 0K 78643K 1 0 NFS daemon 1 16K 16K 78643K 1 0 ip_moptions 0 0K 0K 78643K 3202 0 in_multi 99 7K 7K 78643K 1617 0 ether_multi 1 0K 0K 78643K 75 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 295 1314K 1314K 78643K 295 0 exec 0 0K 1K 78643K 9871 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 503 93K 110K 78643K 675669 0 UVM aobj 131 5K 5K 78643K 134 0 memdesc 1 4K 4K 78643K 1 0 crypto data 1 1K 1K 78643K 1 0 ip6_options 0 0K 0K 78643K 1765 0 NDP 11 0K 2K 78643K 300 0 temp 74 5920K 6048K 78643K 166979 0 kqueue 12 18K 38K 78643K 6598 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 3187 0 3184 45 43 2 5 0 8 1 rtentry 112 1249 0 1136 4 0 4 4 0 8 0 unpcb 144 40651 0 40634 450 444 6 14 0 8 5 syncache 304 743 0 743 123 122 1 1 0 8 1 sackhl 24 6 0 6 6 6 0 1 0 8 0 tcpqe 32 653 0 653 97 96 1 1 0 8 1 tcpcb 808 26829 0 26771 544 531 13 21 0 8 6 arp 120 215 0 196 1 0 1 1 0 8 0 ipq 40 293 0 291 47 46 1 1 0 8 0 ipqe 40 1421 0 1419 47 46 1 1 0 8 0 inpcb 368 48040 0 47979 606 594 12 25 0 8 5 nd6 136 419 0 393 7 6 1 2 0 8 0 kcovpl 48 99 0 91 1 0 1 1 0 8 0 art_heap8 4096 1 0 0 1 0 1 1 0 8 0 art_heap4 256 5101 0 4625 54 23 31 33 0 8 1 art_table 32 5102 0 4625 5 1 4 5 0 8 0 art_node 16 1248 0 1145 1 0 1 1 0 8 0 sysvmsgpl 40 48 0 10 1 0 1 1 0 8 0 semupl 112 6 0 6 1 1 0 1 0 8 0 semapl 112 9 0 0 1 0 1 1 0 8 0 shmpl 112 131 0 3 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino2pl 256 88053 0 86552 94 0 94 94 0 8 0 ffsino 272 88053 0 86552 101 0 101 101 0 8 0 nchpl 144 176149 0 174508 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 632793 0 632793 9 8 1 2 0 8 1 percpumem 16 134 0 91 1 0 1 1 0 8 0 kstatmem 264 204 0 182 2 0 2 2 0 8 0 scxspl 216 546041 0 546041 149 148 1 8 1 8 1 plimitpl 152 10869 0 10846 113 111 2 2 0 8 1 sigapl 424 68226 0 68178 7 0 7 7 0 8 0 futexpl 64 603566 0 603565 5 4 1 1 0 8 0 knotepl 120 3673 0 0 21 3 18 21 0 8 0 kqueuepl 216 15452 0 15444 286 282 4 8 0 8 3 pipepl 320 15633 0 15605 413 405 8 16 0 8 5 fdescpl 496 68208 0 68178 7 2 5 6 0 8 0 filepl 152 449436 0 449198 740 724 16 28 0 8 5 lockfpl 104 202481 0 202479 11 10 1 3 0 8 0 lockfspl 48 11942 0 11940 1 0 1 1 0 8 0 sessionpl 144 114 0 98 1 0 1 1 0 8 0 pgrppl 48 978 0 962 1 0 1 1 0 8 0 ucredpl 104 60504 0 60486 1 0 1 1 0 8 0 zombiepl 144 68179 0 68178 1 0 1 1 0 8 0 processpl 1072 68226 0 68178 4 0 4 4 0 8 0 procpl 680 193674 0 193609 134 126 8 9 0 8 1 sosppl 168 918 0 918 64 63 1 1 0 8 1 sockpl 488 96256 0 96170 1750 1722 28 50 0 8 17 mcl64k 65536 50 0 0 3 0 3 3 0 8 0 mcl16k 16384 58 0 0 6 3 3 3 0 8 0 mcl12k 12288 50 0 0 2 0 2 2 0 8 0 mcl9k 9216 50 0 0 2 0 2 2 0 8 0 mcl8k 8192 131 0 0 7 4 3 3 0 8 0 mcl4k 4096 241 0 0 4 0 4 4 0 8 0 mcl2k2 2112 25 0 0 2 0 2 2 0 8 0 mcl2k 2048 1113 0 0 45 26 19 35 0 8 0 mtagpl 96 22 0 0 1 0 1 1 0 8 0 mbufpl 256 4224 0 0 81 0 81 81 0 8 0 bufpl 288 123113 0 116787 455 2 453 453 0 8 0 anonpl 24 6398662 0 6388307 308 209 99 122 0 186 0 amapchunkpl 152 2151571 0 2150828 490 452 38 50 0 158 1 amappl16 200 132683 0 132385 767 748 19 45 0 8 0 amappl15 192 78 0 78 25 25 0 1 0 8 0 amappl14 184 457 0 443 2 1 1 2 0 8 0 amappl13 176 37 0 35 1 0 1 1 0 8 0 amappl12 168 70209 0 70174 2 0 2 2 0 8 0 amappl11 160 53 0 43 1 0 1 1 0 8 0 amappl10 152 173 0 156 1 0 1 1 0 8 0 amappl9 144 866 0 866 115 114 1 1 0 8 1 amappl8 136 2754 0 2419 12 0 12 12 0 8 0 amappl7 128 420 0 405 2 0 2 2 0 8 0 amappl6 120 1616 0 1587 1 0 1 1 0 8 0 amappl5 112 1959 0 1950 1 0 1 1 0 8 0 amappl4 104 2594 0 2546 2 0 2 2 0 8 0 amappl3 96 416841 0 416771 5 2 3 4 0 8 0 amappl2 88 71659 0 71586 3 1 2 3 0 8 0 amappl1 80 250002 0 249481 22 10 12 22 0 8 0 amappl 88 671825 0 671611 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 133 0 3 3 0 3 3 0 8 0 uaddrrnd 24 68208 0 68178 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 68208 0 68178 1 0 1 1 0 8 0 vmmpekpl 168 502307 0 502231 5 0 5 5 0 8 0 vmmpepl 168 3929665 0 3927242 472 332 140 143 0 357 0 vmsppl 464 68207 0 68178 7 2 5 6 0 8 0 rwobjpl 56 950042 0 942421 137 25 112 116 0 8 0 pdppl 4096 136424 0 136356 1962 1880 82 90 0 8 14 pvpl 32 18575261 0 18558851 1051 858 193 338 0 265 14 pmappl 248 68207 0 68178 4 1 3 3 0 8 0 extentpl 40 56 0 38 1 0 1 1 0 8 0 phpool 112 4112 0 3199 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(ffffffff827a4ca4) at panic+0x17b sys/kern/subr_prf.c:198 __assert(ffffffff8281f81c,ffffffff8286fd85,2f6,ffffffff8276f191) at __assert+0x29 sys/kern/subr_prf.c:157 arptfree(fffffd80689be558) at arptfree+0x132 sys/netinet/if_ether.c:758 arptimer(ffffffff82d7f5d8) at arptimer+0x88 sys/netinet/if_ether.c:135 timeout_run(ffffffff82d7f5d8) at timeout_run+0xd0 sys/kern/kern_timeout.c:640 softclock_thread(ffff800021168ff0) 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 ddb{1}>