kernel: protection fault trap, code=0
Stopped at malloc+0x83d: movq 0x8(%rbx),%r15
ddb{0}>
ddb{0}> set $lines = 0
ddb{0}> set $maxwidth = 0
ddb{0}> show panic
the kernel did not panic
ddb{0}> trace
malloc(10,7f,1) at malloc+0x83d sys/kern/kern_malloc.c:290
dofilereadv(ffff8000ffffb960,a,ffff80002a39c538,0,ffff80002a39c5f0) at dofilereadv+0x1d2
sys_read(ffff8000ffffb960,ffff80002a39c6a0,ffff80002a39c5f0) at sys_read+0xa2 sys/kern/sys_generic.c:172
syscall(ffff80002a39c6a0) at syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80002a39c6a0) at syscall+0xbc6 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7409a9b09f80, count: -5
ddb{0}> show registers
rdi 0x5e31487838901b8
rsi 0
rbp 0xffff80002a39c490
rbx 0x5e31487838901b8
rdx 0
rcx 0xffff8000ffffb960
rax 0xffffffff83797ff0 cpu_info_full_primary+0x1ff0
r8 0
r9 0
r10 0x7742ed63db21fcaa
r11 0xa238f1a678963e13
r12 0x5e31487838901b8
r13 0xffffffff839ba6a0 bucket+0x120
r14 0x5e31487838901b8
r15 0
rip 0xffffffff82a03e4d malloc+0x83d
cs 0x8
rflags 0x10206 __ALIGN_SIZE+0xf206
rsp 0xffff80002a39c3c0
ss 0x10
malloc+0x83d: movq 0x8(%rbx),%r15
ddb{0}> show proc
PROC (syslogd) tid=357510 pid=96654 tcnt=1 stat=onproc
flags process=1100010<SUGID,PLEDGE,CHROOT> proc=0
runpri=50, usrpri=51, slppri=24, nice=20
wchan=0x0, wmesg=, ps_single=0x0 scnt=0 ecnt=0
forw=0xffffffffffffffff, list=0xffff8000ffffb6d8,0xffff8000ffffa020
process=0xffff80002a371dc0 user=0xffff80002a397000, vmspace=0xfffffd806eb84ab8
estcpu=1, cpticks=1, pctcpu=0.0, user=0, sys=5, intr=1
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
74384 28490 41037 0 2 0 syz-executor
74384 236851 41037 0 3 0x4000080 fsleep syz-executor
74384 200670 41037 0 3 0x4000080 fsleep syz-executor
23053 148124 84797 0 2 0 syz-executor
23053 183443 84797 0 3 0x4000080 fsleep syz-executor
54255 190480 45189 0 2 0 syz-executor
54255 304624 45189 0 3 0x4000080 fsleep syz-executor
21904 342082 17673 0 2 0 syz-executor
21904 243014 17673 0 2 0x4000000 syz-executor
21904 94795 17673 0 3 0x4000080 fsleep syz-executor
18638 146138 61194 0 3 0x80 nanoslp syz-executor
18638 22258 61194 0 3 0x4000080 msgwait syz-executor
18638 279598 61194 0 3 0x4000080 fsleep syz-executor
58444 206104 85753 0 3 0x80 nanoslp syz-executor
58444 519939 85753 0 3 0x4000080 msgwait syz-executor
58444 155655 85753 0 3 0x4000080 fsleep syz-executor
70343 152008 64286 0 7 0x100002 arp
64286 133356 38564 0 3 0x10008a sigsusp sh
84797 447329 97856 0 3 0x82 nanoslp syz-executor
54691 148290 97856 0 3 0x82 nanoslp syz-executor
38564 501383 97856 0 3 0x82 wait syz-executor
17673 68309 97856 0 3 0x82 nanoslp syz-executor
41037 279708 97856 0 3 0x82 nanoslp syz-executor
45189 61175 97856 0 3 0x82 nanoslp syz-executor
61194 185256 97856 0 3 0x82 nanoslp syz-executor
85753 482122 97856 0 3 0x82 nanoslp syz-executor
97856 327897 96366 0 3 0x82 kqread syz-executor
96366 237104 98344 0 3 0x10008a sigsusp ksh
98344 165871 16489 0 3 0x98 kqread sshd-session
16489 222993 7964 0 3 0x92 kqread sshd-session
27747 35823 1 0 3 0x100083 ttyin getty
7964 25701 1 0 3 0x88 kqread sshd
79885 51591 96669 74 3 0x1100092 bpf pflogd
96669 386541 1 0 3 0x80 sbwait pflogd
*96654 357510 37981 73 7 0x1100010 syslogd
37981 439302 1 0 3 0x100082 sbwait syslogd
79853 31122 1 0 3 0x100080 kqread resolvd
14565 268162 11051 77 3 0x100012 netlock dhcpleased
21752 357400 11051 77 3 0x100092 kqread dhcpleased
11051 235360 1 0 3 0x80 kqread dhcpleased
10070 363833 0 0 3 0x14200 bored smr
81343 268714 0 0 2 0x14200 zerothread
16660 7357 0 0 3 0x14200 aiodoned aiodoned
33343 402664 0 0 3 0x14200 syncer update
22566 223662 0 0 3 0x14200 cleaner cleaner
55333 88123 0 0 3 0x14200 reaper reaper
70000 51355 0 0 3 0x14200 pgdaemon pagedaemon
96465 465387 0 0 3 0x14200 bored viomb
63373 516003 0 0 3 0x40014200 acpi0 acpi0
94744 403357 0 0 3 0x40014200 idle1
12955 422644 0 0 3 0x14200 bored softnet3
64911 154539 0 0 3 0x14200 bored softnet2
79808 190117 0 0 3 0x14200 bored softnet1
76717 207655 0 0 3 0x14200 bored softnet0
83266 79392 0 0 3 0x14200 bored systqmp
88125 188289 0 0 3 0x14200 bored systq
4969 270367 0 0 3 0x14200 tmoslp softclockmp
83578 251277 0 0 3 0x40014200 tmoslp softclock
53987 67544 0 0 3 0x40014200 idle0
1 452313 0 0 3 0x80082 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
CPU 0:
exclusive mutex /syzkaller/managers/multicore/kernel/sys/kern/kern_malloc.c:96 r = 0 (0xffffffff8385d888)
#0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0 witness_lock+0x5bb sys/kern/subr_witness.c:1155
#1 mtx_enter_try+0x178
#2 mtx_enter+0x60 sys/kern/kern_lock.c:239
#3 malloc+0x2f9 sys/kern/kern_malloc.c:199
#4 dofilereadv+0x1d2
#5 sys_read+0xa2 sys/kern/sys_generic.c:172
#6 syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#6 syscall+0xbc6 sys/arch/amd64/amd64/trap.c:577
#7 Xsyscall+0x128
Process 21904 (syz-executor) thread 0xffff8000330be530 (243014)
exclusive rwlock art r = 0 (0xffff80000006c6a0)
#0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0 witness_lock+0x5bb sys/kern/subr_witness.c:1155
#1 rw_do_enter_write+0x3ea sys/kern/kern_rwlock.c:316
#2 rtable_mpath_reprio+0x135 sys/net/rtable.c:809
#3 rt_if_linkstate_change+0x23b
#4 rtable_walk_helper+0x73 sys/net/rtable.c:738
#5 art_table_walk+0x350 art_walk_apply sys/net/art.c:675 [inline]
#5 art_table_walk+0x350 sys/net/art.c:647
#6 art_table_walk+0x3e6 sys/net/art.c:656
#7 art_table_walk+0x3e6 sys/net/art.c:656
#8 art_table_walk+0x3e6 sys/net/art.c:656
#9 art_table_walk+0x3e6 sys/net/art.c:656
#10 art_table_walk+0x3e6 sys/net/art.c:656
#11 art_table_walk+0x3e6 sys/net/art.c:656
#12 art_table_walk+0x3e6 sys/net/art.c:656
#13 art_table_walk+0x3e6 sys/net/art.c:656
#14 art_table_walk+0x3e6 sys/net/art.c:656
#15 art_table_walk+0x3e6 sys/net/art.c:656
#16 art_table_walk+0x3e6 sys/net/art.c:656
#17 art_table_walk+0x3e6 sys/net/art.c:656
#18 art_table_walk+0x3e6 sys/net/art.c:656
exclusive rwlock netlock r = 0 (0xffffffff838203f8)
#0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0 witness_lock+0x5bb sys/kern/subr_witness.c:1155
#1 rw_do_enter_write+0x3ea sys/kern/kern_rwlock.c:316
#2 ifioctl+0x23b1 sys/net/if.c:2297
#3 sys_ioctl+0x5c3
#4 syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#4 syscall+0xbc6 sys/arch/amd64/amd64/trap.c:577
#5 Xsyscall+0x128
Process 14565 (dhcpleased) thread 0xffff8000ffffaa30 (268162)
exclusive rwlock sysctllk r = 0 (0xffffffff838599e8)
#0 witness_lock+0x5bb stacktrace_save sys/sys/stacktrace.h:37 [inline]
#0 witness_lock+0x5bb sys/kern/subr_witness.c:1155
#1 rw_do_enter_write+0x3ea sys/kern/kern_rwlock.c:316
#2 sysctl_vslock+0x45 sys/kern/kern_sysctl.c:185
#3 net_sysctl+0x5a1 sys/kern/uipc_domain.c:253
#4 sys_sysctl+0x425
#5 syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline]
#5 syscall+0xbc6 sys/arch/amd64/amd64/trap.c:577
#6 Xsyscall+0x128
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10194 11031K 11425K 166960K 11362 0
pcb 17 12K 12K 166960K 36 0
rtable 218 7K 7K 166960K 423 0
pf 37 18K 18K 166960K 49 0
ifaddr 41 6K 7K 166960K 44 0
ifgroup 59 2K 2K 166960K 59 0
sysctl 2 1K 1K 166960K 2 0
counters 66 36K 36K 166960K 66 0
ioctlops 0 0K 4K 166960K 1485 0
mount 1 1K 1K 166960K 1 0
log 0 0K 0K 166960K 4 0
vnodes 1374 86K 86K 166960K 1500 0
UFS quota 1 32K 32K 166960K 1 0
UFS mount 5 36K 36K 166960K 5 0
shm 2 1K 5K 166960K 3 0
VM map 2 1K 1K 166960K 2 0
sem 2 0K 0K 166960K 3 0
dirhash 12 2K 2K 166960K 15 0
ACPI 1690 195K 286K 166960K 12468 0
file desc 19 69K 89K 166960K 200 0
sigio 0 0K 0K 166960K 1 0
proc 72 91K 115K 166960K 530 0
subproc 72 4K 4K 166960K 72 0
NFS srvsock 1 0K 0K 166960K 1 0
NFS daemon 1 16K 16K 166960K 1 0
ip_moptions 0 0K 0K 166960K 3 0
in_multi 85 6K 6K 166960K 91 0
ether_multi 1 0K 0K 166960K 1 0
ISOFS mount 1 32K 32K 166960K 1 0
MSDOSFS mount 1 16K 16K 166960K 1 0
ttys 55 254K 254K 166960K 55 0
exec 0 0K 1K 166960K 379 0
fusefs mount 1 32K 32K 166960K 1 0
pfkey data 0 0K 0K 166960K 1 0
tdb 3 0K 0K 166960K 3 0
VM swap 8 62K 64K 166960K 10 0
UVM amap 239 73K 74K 166960K 3507 0
UVM aobj 5 2K 2K 166960K 5 0
pinsyscall 45 90K 104K 166960K 1314 0
memdesc 1 4K 4K 166960K 1 0
crypto data 1 1K 1K 166960K 1 0
ip6_options 0 0K 0K 166960K 5 0
NDP 13 0K 1K 166960K 27 0
temp 41 8631K 8695K 166960K 5545 0
kqueue 13 20K 30K 166960K 33 0
SYN cache 2 16K 16K 166960K 2 0
ddb{0}> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
plcache 128 24 0 0 1 0 1 1 0 8 0
rtpcb 120 41 0 36 1 0 1 1 0 8 0
rtentry 112 105 0 6 3 0 3 3 0 8 0
unpcb 144 68 0 51 2 0 2 2 0 8 1
syncache 336 4 0 4 1 1 0 1 0 8 0
tcpcb 808 28 0 24 2 1 1 2 0 8 0
arp 120 17 0 0 1 0 1 1 0 8 0
inpcb 376 168 0 158 5 3 2 5 0 8 1
nd6 136 22 0 2 1 0 1 1 0 8 0
pkpcb 40 1 0 1 1 0 1 1 0 8 1
kcovpl 48 8 0 0 1 0 1 1 0 8 0
pffrag 232 1 0 1 1 0 1 1 0 482 1
pffrnode 88 1 0 1 1 0 1 1 0 8 1
pffrent 40 2 0 2 1 0 1 1 0 8 1
pfosfp 40 1428 0 1005 5 0 5 5 0 8 0
pfosfpen 112 1428 0 714 21 0 21 21 0 8 0
pfstitem 24 24 0 0 1 0 1 1 0 8 0
pfstkey 128 24 0 0 1 0 1 1 0 8 0
pfstate 376 24 0 0 3 0 3 3 0 8 0
pfrule 1344 21 0 15 2 0 2 2 0 8 0
art_heap8 4096 2 0 0 2 0 2 2 0 8 0
art_heap4 256 447 0 16 28 0 28 28 0 8 0
art_table 32 449 0 16 4 0 4 4 0 8 0
art_node 16 104 0 13 1 0 1 1 0 8 0
sysvmsgpl 40 1 0 0 1 0 1 1 0 8 0
semapl 112 1 0 1 1 1 0 1 0 8 0
shmpl 112 2 0 0 1 0 1 1 0 8 0
dirhash 1024 19 0 2 3 0 3 3 0 8 0
dino2pl 256 1743 0 230 95 0 95 95 0 8 0
ffsino 280 1743 0 230 109 0 109 109 0 8 0
nchpl 144 2023 0 335 63 0 63 63 0 8 0
uvmvnodes 80 1889 0 0 39 0 39 39 0 8 0
vnodes 216 1889 0 0 105 0 105 105 0 8 0
namei 1024 6418 0 6418 2 1 1 1 0 8 1
percpumem 16 47 0 0 1 0 1 1 0 8 0
kstatmem 264 26 0 0 2 0 2 2 0 8 0
scxspl 216 6245 0 6245 3 2 1 2 1 8 1
plimitpl 152 38 0 21 1 0 1 1 0 8 0
sigapl 424 511 0 460 7 0 7 7 0 8 0
futexpl 64 1228 0 1221 1 0 1 1 0 8 0
knotepl 120 315 0 0 10 0 10 10 0 8 0
kqueuepl 216 39 0 30 1 0 1 1 0 8 0
pipepl 328 114 0 87 3 0 3 3 0 8 0
fdescpl 504 493 0 460 5 0 5 5 0 8 0
filepl 152 2222 0 2002 13 1 12 13 0 8 2
lockfpl 104 35 0 33 1 0 1 1 0 8 0
lockfspl 48 16 0 14 1 0 1 1 0 8 0
sessionpl 144 23 0 14 1 0 1 1 0 8 0
pgrppl 48 31 0 14 1 0 1 1 0 8 0
ucredpl 104 316 0 302 1 0 1 1 0 8 0
zombiepl 144 495 0 494 1 0 1 1 0 8 0
processpl 1168 511 0 460 5 0 5 5 0 8 0
procpl 648 652 0 591 6 0 6 6 0 8 0
srpgc 96 1 0 0 1 0 1 1 0 8 0
sockpl 688 278 0 246 7 2 5 7 0 8 2
mcl64k 65536 1 0 0 1 0 1 1 0 8 0
mcl16k 16384 1 0 0 1 0 1 1 0 8 0
mcl12k 12288 1 0 0 1 0 1 1 0 8 0
mcl8k 8192 3 0 0 1 0 1 1 0 8 0
mcl4k 4096 125 0 0 16 0 16 16 0 8 0
mcl2k 2048 21 0 0 3 0 3 3 0 8 0
mtagpl 96 4 0 0 1 0 1 1 0 8 0
mbufpl 256 170 0 0 11 0 11 11 0 8 0
bufpl 280 2439 0 126 166 0 166 166 0 8 0
anonpl 24 102548 0 99064 34 1 33 33 0 184 9
amapchunkpl 152 10739 0 10206 27 1 26 26 0 158 2
amappl16 200 1783 0 1762 5 3 2 5 0 8 0
amappl15 192 5 0 5 1 1 0 1 0 8 0
amappl14 184 121 0 108 1 0 1 1 0 8 0
amappl13 176 5 0 5 1 1 0 1 0 8 0
amappl12 168 1152 0 1118 4 1 3 3 0 8 0
amappl11 160 49 0 35 1 0 1 1 0 8 0
amappl10 152 11 0 11 1 1 0 1 0 8 0
amappl9 144 246 0 246 1 1 0 1 0 8 0
amappl8 136 26 0 24 1 0 1 1 0 8 0
amappl7 128 113 0 100 1 0 1 1 0 8 0
amappl6 120 203 0 199 1 0 1 1 0 8 0
amappl5 112 121 0 111 1 0 1 1 0 8 0
amappl4 104 325 0 305 1 0 1 1 0 8 0
amappl3 96 1750 0 1626 5 1 4 4 0 8 0
amappl2 88 671 0 606 2 0 2 2 0 8 0
amappl1 80 8148 0 7547 15 0 15 15 0 8 0
amappl 88 3120 0 2940 5 0 5 5 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 4 0 0 1 0 1 1 0 8 0
uaddrrnd 24 493 0 460 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 493 0 460 1 0 1 1 0 8 0
vmmpekpl 168 5864 0 5831 2 0 2 2 0 8 0
vmmpepl 168 36932 0 35000 90 3 87 90 0 357 2
vmsppl 456 492 0 460 5 0 5 5 0 8 0
rwobjpl 64 15232 0 12362 49 2 47 47 0 8 0
pdppl 4096 994 0 920 102 28 74 86 0 8 0
pvpl 32 11209 0 0 91 0 91 91 0 265 0
pmappl 248 492 0 460 3 0 3 3 0 8 0
extentpl 40 55 0 38 1 0 1 1 0 8 0
phpool 112 281 0 33 8 0 8 8 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
malloc(10,7f,1) at malloc+0x83d sys/kern/kern_malloc.c:290
dofilereadv(ffff8000ffffb960,a,ffff80002a39c538,0,ffff80002a39c5f0) at dofilereadv+0x1d2
sys_read(ffff8000ffffb960,ffff80002a39c6a0,ffff80002a39c5f0) at sys_read+0xa2 sys/kern/sys_generic.c:172
syscall(ffff80002a39c6a0) at syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff80002a39c6a0) at syscall+0xbc6 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7409a9b09f80, count: -5
ddb{0}> machine ddbcpu 1
Stopped at x86_ipi_db+0x27: addq $0x8,%rsp
ddb{1}> trace
x86_ipi_db(ffff800029aabff0) at x86_ipi_db+0x27 sys/arch/amd64/amd64/db_interface.c:393
x86_ipi_handler() at x86_ipi_handler+0xd9 sys/arch/amd64/amd64/ipi.c:106
Xresume_lapic_ipi() at Xresume_lapic_ipi+0x27
mtx_enter(ffffffff8385d878) at mtx_enter+0xa0 sys/kern/kern_lock.c:250
malloc(10,7f,1) at malloc+0x2f9 sys/kern/kern_malloc.c:199
dofilereadv(ffff8000330be020,3,ffff800038cdaa38,0,ffff800038cdaaf0) at dofilereadv+0x1d2
sys_read(ffff8000330be020,ffff800038cdaba0,ffff800038cdaaf0) at sys_read+0xa2 sys/kern/sys_generic.c:172
syscall(ffff800038cdaba0) at syscall+0xbc6 mi_syscall sys/sys/syscall_mi.h:176 [inline]
syscall(ffff800038cdaba0) at syscall+0xbc6 sys/arch/amd64/amd64/trap.c:577
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x7f480bf45390, count: -9