login: panic: kernel diagnostic assertion "ifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/netinet/if_ether.c", line 716 Stopped at db_enter+0x18: addq $0x8,%rsp TID PID UID PRFLAGS PFLAGS CPU COMMAND 398056 3459 0 0 0 1 syz-executor.1 *523126 5272 0 0x14000 0x40000200 0K softclock db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff82200a8f,ffffffff821fb7f0,2cc,ffffffff8218543d) at __assert+0x2b sys/kern/subr_prf.c:154 arptfree(fffffd8066fed938) at arptfree+0xfb sys/netinet/if_ether.c:716 arptimer(ffffffff8251dc38) at arptimer+0x95 sys/netinet/if_ether.c:120 timeout_run(ffffffff8251dc38) at timeout_run+0xc4 timeout_sync_leave sys/kern/kern_timeout.c:177 [inline] timeout_run(ffffffff8251dc38) at timeout_run+0xc4 sys/kern/kern_timeout.c:477 softclock_thread(ffff800020a10000) at softclock_thread+0x16a sys/kern/kern_timeout.c:558 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 kernel diagnostic assertion "ifp != NULL" failed: file "/syzkaller/managers/multicore/kernel/sys/netinet/if_ether.c", line 716 ddb{0}> trace db_enter() at db_enter+0x18 sys/arch/amd64/amd64/db_interface.c:398 panic() at panic+0x15c sys/kern/subr_prf.c:207 __assert(ffffffff82200a8f,ffffffff821fb7f0,2cc,ffffffff8218543d) at __assert+0x2b sys/kern/subr_prf.c:154 arptfree(fffffd8066fed938) at arptfree+0xfb sys/netinet/if_ether.c:716 arptimer(ffffffff8251dc38) at arptimer+0x95 sys/netinet/if_ether.c:120 timeout_run(ffffffff8251dc38) at timeout_run+0xc4 timeout_sync_leave sys/kern/kern_timeout.c:177 [inline] timeout_run(ffffffff8251dc38) at timeout_run+0xc4 sys/kern/kern_timeout.c:477 softclock_thread(ffff800020a10000) at softclock_thread+0x16a sys/kern/kern_timeout.c:558 end trace frame: 0x0, count: -7 ddb{0}> show registers rdi 0 rsi 0x1 rbp 0xffff800020a24f40 rbx 0xffff800020a24ff0 rdx 0xffff800020a10000 rcx 0 rax 0 r8 0xffffffff8173b9af kprintf+0x16f r9 0x1 r10 0x25 r11 0xacd5c08758af059d r12 0x3000000008 r13 0xffff800020a24f50 r14 0x100 r15 0x1 rip 0xffffffff8212d578 db_enter+0x18 cs 0x8 rflags 0x246 rsp 0xffff800020a24f30 ss 0 db_enter+0x18: addq $0x8,%rsp ddb{0}> show proc PROC (softclock) pid=523126 stat=onproc flags process=14000 proc=40000200 pri=0, usrpri=50, nice=20 forw=0xffffffffffffffff, list=0xffff800020a104f0,0xffff800020a10288 process=0xffff800020a12380 user=0xffff800020a20000, vmspace=0xffffffff8265b6c0 estcpu=0, cpticks=1, pctcpu=0.0 user=0, sys=1, intr=0 ddb{0}> ps PID TID PPID UID S FLAGS WAIT COMMAND 3459 398056 83463 0 7 0 syz-executor.1 3459 164977 83463 0 2 0x4000000 syz-executor.1 3459 286511 83463 0 2 0x4000000 syz-executor.1 41782 444620 5661 0 2 0 syz-executor.0 41782 66763 5661 0 3 0x4000080 pipewr syz-executor.0 41782 108146 5661 0 2 0x4000000 syz-executor.0 5661 502946 96799 0 2 0x482 syz-executor.0 58090 321076 1 0 3 0x100083 ttyin getty 83463 158273 96799 0 2 0x482 syz-executor.1 19310 514931 0 0 3 0x14200 acct acct 16968 272145 0 0 3 0x14200 bored sosplice 96799 360417 27244 0 3 0x82 thrsleep syz-fuzzer 96799 437289 27244 0 3 0x4000082 thrsleep syz-fuzzer 96799 273942 27244 0 3 0x4000082 thrsleep syz-fuzzer 96799 486385 27244 0 3 0x4000082 thrsleep syz-fuzzer 96799 19169 27244 0 3 0x4000082 thrsleep syz-fuzzer 96799 288118 27244 0 3 0x4000082 thrsleep syz-fuzzer 96799 452243 27244 0 3 0x4000082 thrsleep syz-fuzzer 96799 322960 27244 0 3 0x4000082 thrsleep syz-fuzzer 96799 178997 27244 0 3 0x4000082 thrsleep syz-fuzzer 96799 254340 27244 0 3 0x4000082 kqread syz-fuzzer 27244 302095 16779 0 3 0x10008a pause ksh 16779 441567 83071 0 3 0x92 select sshd 83071 59439 1 0 3 0x80 select sshd 74605 84767 31795 74 3 0x100092 bpf pflogd 31795 306356 1 0 3 0x80 netio pflogd 14620 524143 1977 73 3 0x100090 kqread syslogd 1977 480430 1 0 3 0x100082 netio syslogd 77058 356748 0 0 2 0x14200 zerothread 74793 90351 0 0 3 0x14200 aiodoned aiodoned 19398 387342 0 0 3 0x14200 syncer update 88564 100444 0 0 3 0x14200 cleaner cleaner 782 272137 0 0 3 0x14200 reaper reaper 68995 464516 0 0 3 0x14200 pgdaemon pagedaemon 41709 363655 0 0 3 0x14200 bored crynlk 56757 90534 0 0 3 0x14200 bored crypto 4710 81061 0 0 3 0x40014200 acpi0 acpi0 21864 257474 0 0 3 0x40014200 idle1 90729 459942 0 0 3 0x14200 bored softnet 50208 230809 0 0 3 0x14200 bored systqmp 67480 156558 0 0 3 0x14200 bored systq * 5272 523126 0 0 7 0x40014200 softclock 146 308816 0 0 3 0x40014200 idle0 70302 88273 0 0 3 0x14200 bored smr 1 432271 0 0 3 0x82 wait init 0 0 -1 0 3 0x10200 scheduler swapper ddb{0}> show all locks Process 5272 (softclock) thread 0xffff800020a10000 (523126) exclusive rwlock netlock r = 0 (0xffffffff824ea0f8) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 arptimer+0x22 sys/netinet/if_ether.c:119 #2 timeout_run+0xc4 timeout_sync_leave sys/kern/kern_timeout.c:177 [inline] #2 timeout_run+0xc4 sys/kern/kern_timeout.c:477 #3 softclock_thread+0x16a sys/kern/kern_timeout.c:558 #4 proc_trampoline+0x1c shared rwlock timeout r = 0 (0xffffffff824f39c0) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 timeout_run+0xb9 sys/kern/kern_timeout.c:476 #2 softclock_thread+0x16a sys/kern/kern_timeout.c:558 #3 proc_trampoline+0x1c exclusive kernel_lock &kernel_lock r = 0 (0xffffffff82623270) #0 witness_lock+0x52e sys/kern/subr_witness.c:1163 #1 __mp_acquire_count+0x51 sys/kern/kern_lock.c:227 #2 mi_switch+0x392 sys/kern/sched_bsd.c:441 #3 sleep_finish+0x113 sys/kern/kern_synch.c:373 #4 softclock_thread+0x103 sys/kern/kern_timeout.c:553 #5 proc_trampoline+0x1c ddb{0}> show malloc Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim devbuf 9662 6439K 7180K 78643K 25821 0 0 pcb 13 8K 8K 78643K 5121 0 0 rtable 156 15K 15K 78643K 6119 0 0 ifaddr 122 42K 53K 78643K 4624 0 0 counters 39 33K 33K 78643K 39 0 0 ioctlops 0 0K 4K 78643K 2695 0 0 iov 0 0K 28K 78643K 3861 0 0 mount 1 1K 1K 78643K 1 0 0 vnodes 1196 75K 77K 78643K 17266 0 0 UFS quota 1 32K 32K 78643K 1 0 0 UFS mount 5 36K 36K 78643K 5 0 0 shm 2 1K 9K 78643K 663 0 0 VM map 2 1K 1K 78643K 58 0 0 sem 12 1K 1K 78643K 5116 0 0 dirhash 12 2K 2K 78643K 12 0 0 ACPI 1808 196K 290K 78643K 12765 0 0 file desc 6 17K 25K 78643K 37249 0 0 sigio 0 0K 0K 78643K 315 0 0 proc 57 51K 95K 78643K 9839 0 0 subproc 32 2K 2K 78643K 2615 0 0 NFS srvsock 1 0K 0K 78643K 1 0 0 NFS daemon 1 16K 16K 78643K 1 0 0 ip_moptions 0 0K 0K 78643K 3630 0 0 in_multi 44 2K 3K 78643K 2829 0 0 ether_multi 1 0K 0K 78643K 214 0 0 mrt 5 0K 0K 78643K 186 0 0 ISOFS mount 1 32K 32K 78643K 1 0 0 MSDOSFS mount 1 16K 16K 78643K 1 0 0 ttys 252 1113K 1113K 78643K 252 0 0 exec 0 0K 1K 78643K 5018 0 0 pfkey data 0 0K 4K 78643K 11 0 0 pagedep 1 8K 8K 78643K 1 0 0 inodedep 1 32K 32K 78643K 1 0 0 newblk 1 0K 0K 78643K 1 0 0 VM swap 7 26K 26K 78643K 7 0 0 UVM amap 193 26K 36K 78643K 127182 0 0 UVM aobj 130 8K 8K 78643K 197 0 0 memdesc 1 4K 4K 78643K 1 0 0 crypto data 1 1K 1K 78643K 1 0 0 ip6_options 0 0K 1K 78643K 5078 0 0 NDP 25 0K 1K 78643K 1446 0 0 temp 263 3557K 4198K 78643K 596340 0 0 kqueue 0 0K 0K 78643K 305 0 0 SYN cache 2 16K 16K 78643K 2 0 0 ddb{0}> show all pools Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle arp 64 261 0 254 1 0 1 1 0 8 0 plcache 128 20 0 0 1 0 1 1 0 8 0 rtpcb 80 2168 0 2168 39 38 1 1 0 8 1 rtentry 112 1680 0 1626 2 0 2 2 0 8 0 unpcb 120 15492 0 15436 9 6 3 3 0 8 1 syncache 264 4 0 4 1 1 0 1 0 8 0 sackhl 24 9 0 9 6 6 0 1 0 8 0 tcpqe 32 5558 0 5558 2 2 0 2 0 8 0 tcpcb 544 16651 0 16647 79 78 1 3 0 8 0 inpcb 280 34937 0 34929 104 102 2 3 0 8 1 rttmr 72 25 0 25 24 24 0 1 0 8 0 ip6q 72 2 0 2 2 2 0 1 0 8 0 ip6af 40 2 0 2 2 2 0 1 0 8 0 nd6 48 292 0 288 2 1 1 1 0 8 0 pkpcb 40 213 0 213 71 70 1 1 0 8 1 swfcl 56 13 0 0 1 0 1 1 0 8 0 ppxss 1128 787 0 787 90 89 1 1 0 8 1 pffrag 232 49 0 49 28 28 0 1 0 482 0 pffrnode 88 49 0 49 28 28 0 1 0 8 0 pffrent 40 130 0 130 35 35 0 1 0 8 0 pfosfp 40 846 0 846 5 5 0 5 0 8 0 pfosfpen 112 1428 0 1428 21 21 0 21 0 8 0 pfstitem 24 1001 0 968 1 0 1 1 0 8 0 pfstkey 112 1001 0 968 4 2 2 2 0 8 0 pfstate 328 1001 0 967 17 14 3 4 0 8 0 pfrule 1360 21 0 16 2 1 1 2 0 8 0 art_heap8 4096 3 0 2 3 2 1 3 0 8 0 art_heap4 256 7057 0 6722 64 43 21 22 0 8 0 art_table 32 7060 0 6724 3 0 3 3 0 8 0 art_node 16 1592 0 1542 1 0 1 1 0 8 0 sysvmsgpl 40 17 0 13 1 0 1 1 0 8 0 semapl 112 5114 0 5104 1 0 1 1 0 8 0 shmpl 112 195 0 67 4 0 4 4 0 8 0 dirhash 1024 17 0 0 3 0 3 3 0 8 0 dino1pl 128 58442 0 56908 50 0 50 50 0 8 0 ffsino 272 58442 0 56908 106 3 103 103 0 8 0 nchpl 144 123140 0 121478 67 1 66 66 0 8 0 uvmvnodes 72 10932 0 0 199 0 199 199 0 8 0 vnodes 208 10932 0 0 576 0 576 576 0 8 0 namei 1024 408940 0 408940 12 11 1 1 0 8 1 percpumem 16 30 0 0 1 0 1 1 0 8 0 vmpool 552 56 0 56 23 23 0 1 0 8 0 scsiplug 64 59 0 59 40 40 0 1 0 8 0 scxspl 192 320987 0 320987 177 176 1 7 0 8 1 plimitpl 152 3674 0 3667 1 0 1 1 0 8 0 sigapl 432 37019 0 37005 3 1 2 3 0 8 0 futexpl 56 664187 0 664187 9 8 1 1 0 8 1 knotepl 112 9209 0 9190 28 27 1 3 0 8 0 kqueuepl 104 18193 0 18191 2 1 1 2 0 8 0 pipepl 112 20164 0 20143 68 66 2 2 0 8 0 fdescpl 488 37020 0 37005 3 0 3 3 0 8 0 filepl 152 283965 0 283874 79 74 5 8 0 8 1 lockfpl 104 12157 0 12157 14 13 1 1 0 8 1 lockfspl 48 3725 0 3725 14 13 1 1 0 8 1 sessionpl 112 192 0 183 1 0 1 1 0 8 0 pgrppl 48 610 0 601 1 0 1 1 0 8 0 ucredpl 96 50123 0 50105 2 1 1 2 0 8 0 zombiepl 144 37015 0 37015 12 11 1 1 0 8 1 processpl 896 37047 0 37015 4 0 4 4 0 8 0 procpl 632 118898 0 118853 92 87 5 5 0 8 1 srpgc 64 306 0 306 104 103 1 1 0 8 1 sosppl 128 534 0 534 114 113 1 1 0 8 1 sockpl 384 53300 0 53240 123 115 8 10 0 8 1 mcl64k 65536 1993 0 0 222 162 60 66 0 8 1 mcl16k 16384 89 0 0 11 9 2 3 0 8 0 mcl12k 12288 106 0 0 3 1 2 2 0 8 0 mcl9k 9216 81 0 0 4 2 2 2 0 8 0 mcl8k 8192 89 0 0 7 4 3 3 0 8 0 mcl4k 4096 49 0 0 6 3 3 3 0 8 0 mcl2k2 2112 18 0 0 2 0 2 2 0 8 0 mcl2k 2048 305 0 0 27 19 8 27 0 8 0 mtagpl 80 75 0 0 2 0 2 2 0 8 0 mbufpl 256 2348 0 0 57 18 39 39 0 8 0 bufpl 256 106900 0 95759 698 1 697 697 0 8 0 anonpl 16 3431741 0 3418447 550 478 72 74 0 124 5 amapchunkpl 152 234866 0 234737 190 184 6 20 0 158 0 amappl16 192 182941 0 182175 837 787 50 53 0 8 8 amappl15 184 3915 0 3915 23 23 0 1 0 8 0 amappl14 176 8322 0 8318 2 1 1 1 0 8 0 amappl13 168 3929 0 3929 21 21 0 1 0 8 0 amappl12 160 4638 0 4633 1 0 1 1 0 8 0 amappl11 152 6088 0 6077 1 0 1 1 0 8 0 amappl10 144 4795 0 4785 1 0 1 1 0 8 0 amappl9 136 6933 0 6926 1 0 1 1 0 8 0 amappl8 128 6675 0 6549 6 1 5 5 0 8 0 amappl7 120 5358 0 5348 1 0 1 1 0 8 0 amappl6 112 5876 0 5849 1 0 1 1 0 8 0 amappl5 104 5971 0 5960 1 0 1 1 0 8 0 amappl4 96 34004 0 33966 2 1 1 2 0 8 0 amappl3 88 11842 0 11836 1 0 1 1 0 8 0 amappl2 80 289692 0 289605 3 1 2 3 0 8 0 amappl1 72 822833 0 822398 25 15 10 20 0 8 0 amappl 80 121674 0 121633 2 0 2 2 0 84 0 dma4096 4096 1 0 1 1 1 0 1 0 8 0 dma256 256 6 0 6 1 1 0 1 0 8 0 dma64 64 259 0 259 1 1 0 1 0 8 0 dma32 32 7 0 7 1 1 0 1 0 8 0 dma16 16 17 0 17 1 1 0 1 0 8 0 aobjpl 64 196 0 67 3 0 3 3 0 8 0 uaddrrnd 24 37076 0 37005 1 0 1 1 0 8 0 uaddrbest 32 2 0 0 1 0 1 1 0 8 0 uaddr 24 37076 0 37005 1 0 1 1 0 8 0 vmmpekpl 168 292936 0 292903 2 0 2 2 0 8 0 vmmpepl 168 4552157 0 4550068 1227 1107 120 135 0 357 17 vmsppl 368 37019 0 37005 2 0 2 2 0 8 0 pdppl 4096 74159 0 74122 10 5 5 6 0 8 0 pvpl 32 9018643 0 9002073 1276 1102 174 179 0 265 24 pmappl 232 37075 0 37061 4 3 1 2 0 8 0 extentpl 40 41 0 26 1 0 1 1 0 8 0 phpool 112 1311 0 361 28 0 28 28 0 8 0