uvm_fault: km_free

0 views
Skip to first unread message

syzbot

unread,
Jan 5, 2022, 1:38:22 PM1/5/22
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: bce33954026f Use LC_CTYPE instead of LC_ALL. Makes regress..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=165d64e7b00000
kernel config: https://syzkaller.appspot.com/x/.config?x=bf87b6915a88cd0d
dashboard link: https://syzkaller.appspot.com/bug?extid=654ab682493c0c3be51e

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+654ab6...@syzkaller.appspotmail.com

login: uvm_fault(0xffffffff82969580, 0x0, 0, 2) -> e
kernel: page fault trap, code=0
Stopped at km_free+0x118: movq $0,0(%rax)
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*267239 47467 0 0x14000 0x200 0K systqmp
km_free(0,1000,ffffffff826ee900,ffffffff826ee918) at km_free+0x118 sys/uvm/uvm_km.c:973
pool_p_free(ffffffff828ebcd0,fffffd8067763f90) at pool_p_free+0x14b sys/kern/subr_pool.c:1014
pool_gc_pages(0) at pool_gc_pages+0x255 sys/kern/subr_pool.c:1585
taskq_thread(ffffffff82789130) at taskq_thread+0xe5 sys/kern/kern_task.c:449
end trace frame: 0x0, count: 11
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: uvm_fault(0xffffffff82969580, 0x0, 0, 2) -> e
ddb{0}> trace
km_free(0,1000,ffffffff826ee900,ffffffff826ee918) at km_free+0x118 sys/uvm/uvm_km.c:973
pool_p_free(ffffffff828ebcd0,fffffd8067763f90) at pool_p_free+0x14b sys/kern/subr_pool.c:1014
pool_gc_pages(0) at pool_gc_pages+0x255 sys/kern/subr_pool.c:1585
taskq_thread(ffffffff82789130) at taskq_thread+0xe5 sys/kern/kern_task.c:449
end trace frame: 0x0, count: -4
ddb{0}> show registers
rdi 0x1000 __ALIGN_SIZE
rsi 0x28000000
rbp 0xffff800021161380
rbx 0x28000000000
rdx 0
rcx 0xffffffff826ee918 kp_dirty
rax 0
r8 0
r9 0
r10 0
r11 0x73f3cd23db28a321
r12 0
r13 0xffffffff826ee900 kv_page
r14 0x1000 __ALIGN_SIZE
r15 0x1000 __ALIGN_SIZE
rip 0xffffffff8212e818 km_free+0x118
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff800021161300
ss 0x10
km_free+0x118: movq $0,0(%rax)
ddb{0}> show proc
PROC (systqmp) pid=267239 stat=onproc
flags process=14000<NOZOMBIE,SYSTEM> proc=200<SYSTEM>
pri=32, usrpri=50, nice=20
forw=0xffffffffffffffff, list=0xffff800021149260,0xffff800021148550
process=0xffff8000ffffd8f0 user=0xffff80002115c000, vmspace=0xffffffff82969580
estcpu=0, cpticks=0, pctcpu=0.0
user=0, sys=0, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
4430 230146 44687 0 3 0x82 piperd syz-executor.2
93724 402241 1 0 3 0x100083 ttyin getty
46915 179530 44687 0 3 0x82 piperd syz-executor.1
86543 231222 0 0 3 0x14280 nfsidl nfsio
42867 210215 0 0 3 0x14280 nfsidl nfsio
18835 480336 0 0 3 0x14280 nfsidl nfsio
19586 30003 0 0 3 0x14280 nfsidl nfsio
70209 235215 0 0 3 0x14280 nfsidl nfsio
63933 398591 0 0 3 0x14280 nfsidl nfsio
95205 477906 0 0 3 0x14280 nfsidl nfsio
76710 90543 0 0 3 0x14280 nfsidl nfsio
32239 416887 0 0 3 0x14280 nfsidl nfsio
2655 8313 0 0 3 0x14280 nfsidl nfsio
45672 278606 0 0 3 0x14280 nfsidl nfsio
68193 389434 0 0 3 0x14280 nfsidl nfsio
82958 31385 0 0 3 0x14280 nfsidl nfsio
41540 518603 0 0 3 0x14280 nfsidl nfsio
53323 432856 0 0 3 0x14280 nfsidl nfsio
32463 456038 0 0 3 0x14280 nfsidl nfsio
58701 56233 0 0 3 0x14280 nfsidl nfsio
27509 273901 0 0 3 0x14280 nfsidl nfsio
17751 366484 0 0 3 0x14280 nfsidl nfsio
26574 457733 0 0 3 0x14280 nfsidl nfsio
92704 365999 44687 0 3 0x82 piperd syz-executor.0
53056 236239 0 0 3 0x14200 acct acct
57210 264474 0 0 3 0x14200 bored sosplice
44687 91852 45850 0 3 0x82 thrsleep syz-fuzzer
44687 362957 45850 0 3 0x4000082 thrsleep syz-fuzzer
44687 432790 45850 0 3 0x4000082 thrsleep syz-fuzzer
44687 132836 45850 0 3 0x4000082 kqread syz-fuzzer
44687 24955 45850 0 3 0x4000082 thrsleep syz-fuzzer
44687 348153 45850 0 3 0x4000082 thrsleep syz-fuzzer
44687 73967 45850 0 3 0x4000082 thrsleep syz-fuzzer
44687 349660 45850 0 3 0x4000082 thrsleep syz-fuzzer
44687 294587 45850 0 3 0x4000082 thrsleep syz-fuzzer
45850 322724 31039 0 3 0x10008a sigsusp ksh
31039 63911 82924 0 3 0x9a poll sshd
82924 496869 1 0 3 0x88 poll sshd
79983 78129 32476 74 3 0x100092 bpf pflogd
32476 331441 1 0 3 0x80 netio pflogd
90080 158792 83469 73 3 0x100090 kqread syslogd
83469 448749 1 0 3 0x100082 netio syslogd
27040 375659 1 0 3 0x100080 kqread resolvd
67460 421015 84678 77 3 0x100092 kqread dhcpleased
21765 313937 84678 77 3 0x100092 kqread dhcpleased
84678 321704 1 0 3 0x80 kqread dhcpleased
43496 395746 0 0 3 0x14200 bored smr
99478 99744 0 0 3 0x14200 pgzero zerothread
84296 368355 0 0 3 0x14200 aiodoned aiodoned
81508 74078 0 0 3 0x14200 syncer update
77006 202114 0 0 3 0x14200 cleaner cleaner
12574 351380 0 0 3 0x14200 reaper reaper
90335 428813 0 0 3 0x14200 pgdaemon pagedaemon
6501 42457 0 0 3 0x14200 bored viomb
65624 444343 0 0 3 0x40014200 acpi0 acpi0
71447 523564 0 0 7 0x40014200 idle1
32134 425359 0 0 3 0x14200 bored softnet
*47467 267239 0 0 7 0x14200 systqmp
53080 10833 0 0 2 0x14200 systq
14331 443295 0 0 3 0x40014200 bored softclock
84251 396283 0 0 3 0x40014200 idle0
1 402371 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 47467 (systqmp) thread 0xffff8000211487e0 (267239)
exclusive kernel_lock &kernel_lock r = 0 (0xffffffff829c30a0)
#0 witness_lock+0x44d
#1 kpageflttrap+0x23d sys/arch/amd64/amd64/trap.c:274
#2 kerntrap+0xef sys/arch/amd64/amd64/trap.c:318
#3 alltraps_kern_meltdown+0x7b
#4 km_free+0x118 sys/uvm/uvm_km.c:973
#5 pool_p_free+0x14b sys/kern/subr_pool.c:1014
#6 pool_gc_pages+0x255 sys/kern/subr_pool.c:1585
#7 taskq_thread+0xe5 sys/kern/kern_task.c:449
#8 proc_trampoline+0x1c
shared rwlock pools r = 0 (0xffffffff827c1b70)
#0 witness_lock+0x44d
#1 pool_gc_pages+0x21 sys/kern/subr_pool.c:1562
#2 taskq_thread+0xe5 sys/kern/kern_task.c:449
#3 proc_trampoline+0x1c
shared rwlock systqmp r = 0 (0xffffffff827891a0)
#0 witness_lock+0x44d
#1 taskq_thread+0xca sys/kern/kern_task.c:445
#2 proc_trampoline+0x1c
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10196 6480K 14674K 78643K 64795 0
pcb 13 16K 20K 78643K 1877 0
rtable 162 15K 19K 78643K 4144 0
ifaddr 73 18K 21K 78643K 1186 0
sysctl 3 1K 1K 78643K 3 0
counters 46 34K 34K 78643K 272 0
ioctlops 0 0K 8K 78643K 7136 0
iov 0 0K 16K 78643K 999 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 5 0
vnodes 1404 88K 89K 78643K 19362 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 9K 78643K 134 0
VM map 2 1K 1K 78643K 2 0
sem 12 0K 1K 78643K 1789 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12598 0
file desc 5 13K 49K 78643K 13471 0
sigio 0 0K 0K 78643K 770 0
proc 70 87K 124K 78643K 2226 0
subproc 39 2K 3K 78643K 671 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 712 0
in_multi 40 2K 3K 78643K 1071 0
ether_multi 1 0K 0K 78643K 174 0
mrt 1 0K 0K 78643K 64 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 247 1102K 1102K 78643K 247 0
exec 0 0K 2K 78643K 2762 0
pfkey data 0 0K 0K 78643K 10 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 7 26K 26K 78643K 7 0
UVM amap 399 723K 732K 78643K 167533 0
UVM aobj 131 4K 4K 78643K 151 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 704 0
NDP 8 0K 1K 78643K 254 0
temp 106 4225K 8322K 78643K 112745 0
kqueue 10 14K 20K 78643K 505 0
SYN cache 2 8K 16K 78643K 3 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 1079 0 1076 16 15 1 3 0 8 0
rtentry 112 792 0 746 2 0 2 2 0 8 0
unpcb 136 9365 0 9350 92 91 1 6 0 8 0
syncache 296 85 0 85 21 20 1 1 0 8 1
sackhl 24 1 0 1 1 1 0 1 0 8 0
tcpqe 32 108 0 108 8 8 0 1 0 8 0
tcpcb 736 4269 0 4265 161 158 3 13 0 8 2
arp 120 117 0 108 1 0 1 1 0 8 0
inpcb 304 11750 0 11740 183 176 7 16 0 8 5
rttmr 72 21 0 21 7 7 0 1 0 8 0
nd6 48 195 0 188 1 0 1 1 0 8 0
pkpcb 40 21 0 21 5 5 0 1 0 8 0
kcovpl 48 51 0 48 1 0 1 1 0 8 0
ppxss 1248 15 0 15 6 6 0 1 0 8 0
pfstscr 40 27 0 27 7 6 1 1 0 8 1
pffrag 232 74 0 72 8 7 1 1 0 482 0
pffrnode 88 74 0 72 8 7 1 1 0 8 0
pffrent 40 839 0 837 9 8 1 1 0 8 0
pfosfp 40 1428 0 1005 5 0 5 5 0 8 0
pfosfpen 112 1428 0 714 21 0 21 21 0 8 0
pfrktable 1344 535 0 513 9 7 2 3 0 8 0
pftag 88 77 0 75 2 1 1 1 0 8 0
pfqueue 264 8 0 4 2 1 1 1 0 8 0
pfstitem 24 31 0 29 1 0 1 1 0 8 0
pfstkey 112 217 0 215 1 0 1 1 0 8 0
pfstate 320 122 0 120 2 1 1 2 0 8 0
pfsrctr 152 22 0 22 4 4 0 1 0 8 0
pfrule 1360 2785 0 2671 15 5 10 10 0 8 0
art_heap8 4096 7 0 6 3 2 1 3 0 8 0
art_heap4 256 3419 0 3206 33 14 19 21 0 8 1
art_table 32 3426 0 3212 6 3 3 3 0 8 0
art_node 16 788 0 749 1 0 1 1 0 8 0
sysvmsgpl 40 9 0 2 1 0 1 1 0 8 0
semapl 112 1786 0 1776 1 0 1 1 0 8 0
shmpl 112 148 0 20 4 0 4 4 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 17860 0 16415 91 0 91 91 0 8 0
ffsino 272 17860 0 16415 97 0 97 97 0 8 0
nchpl 144 34824 0 33239 61 0 61 61 0 8 0
uvmvnodes 80 5926 0 0 121 0 121 121 0 8 0
vnodes 224 5926 0 0 349 0 349 349 0 8 0
namei 1024 137511 0 137511 6 5 1 1 0 8 1
percpumem 16 148 0 113 1 0 1 1 0 8 0
vcpupl 2048 254 0 2 32 0 32 32 0 8 0
vmpool 560 308 0 56 20 2 18 18 0 8 0
pfiaddrpl 120 302 0 264 5 3 2 2 0 8 0
scsiplug 72 6 0 6 2 2 0 1 0 8 0
scxspl 216 98303 0 98303 25 24 1 8 0 8 1
plimitpl 152 1235 0 1225 1 0 1 1 0 8 0
sigapl 424 13635 0 13581 8 1 7 7 0 8 0
futexpl 64 128900 0 128900 5 4 1 1 0 8 1
knotepl 112 133 0 0 3 0 3 3 0 8 0
kqueuepl 216 4128 0 4122 54 51 3 6 0 8 2
pipepl 336 2650 0 2637 78 76 2 7 0 8 0
fdescpl 496 13558 0 13540 5 2 3 4 0 8 0
filepl 152 100854 0 100724 181 170 11 18 0 8 5
lockfpl 104 4903 0 4901 14 13 1 2 0 8 0
lockfspl 48 1112 0 1110 1 0 1 1 0 8 0
sessionpl 144 71 0 59 1 0 1 1 0 8 0
pgrppl 48 111 0 99 1 0 1 1 0 8 0
ucredpl 96 9563 0 9548 1 0 1 1 0 8 0
zombiepl 144 13581 0 13581 2 1 1 1 0 8 1
processpl 1064 13635 0 13581 6 2 4 5 0 8 0
procpl 672 35878 0 35816 20 13 7 8 0 8 1
srpgc 96 56 0 56 10 9 1 1 0 8 1
sosppl 168 90 0 90 19 19 0 1 0 8 0
sockpl 480 22240 0 22208 512 499 13 29 0 8 8
mcl64k 65536 17 0 0 3 0 3 3 0 8 0
mcl16k 16384 13 0 0 2 0 2 2 0 8 0
mcl12k 12288 20 0 0 2 0 2 2 0 8 0
mcl9k 9216 17 0 0 2 0 2 2 0 8 0
mcl8k 8192 18 0 0 3 0 3 3 0 8 0
mcl4k 4096 25 0 0 3 0 3 3 0 8 0
mcl2k2 2112 8 0 0 1 0 1 1 0 8 0
mcl2k 2048 607 0 0 28 1 27 28 0 8 0
mtagpl 96 1228 0 0 20 0 20 20 0 8 0
mbufpl 256 7275 0 0 433 0 433 433 0 8 0
bufpl 288 21864 0 15519 454 0 454 454 0 8 0
anonpl 24 3833757 0 3813510 397 237 160 173 0 186 9
amapchunkpl 152 431707 0 431022 132 99 33 47 0 158 0
amappl16 200 40318 0 39315 196 133 63 67 0 8 8
amappl15 192 2308 0 2308 5 4 1 1 0 8 1
amappl14 184 3023 0 3021 1 0 1 1 0 8 0
amappl13 176 1516 0 1512 1 0 1 1 0 8 0
amappl12 168 1402 0 1399 1 0 1 1 0 8 0
amappl11 160 1694 0 1680 1 0 1 1 0 8 0
amappl10 152 967 0 957 1 0 1 1 0 8 0
amappl9 144 2027 0 2025 1 0 1 1 0 8 0
amappl8 136 2742 0 2657 4 0 4 4 0 8 0
amappl7 128 1711 0 1698 1 0 1 1 0 8 0
amappl6 120 2016 0 1994 1 0 1 1 0 8 0
amappl5 112 10972 0 10946 1 0 1 1 0 8 0
amappl4 104 5515 0 5488 1 0 1 1 0 8 0
amappl3 96 2870 0 2846 1 0 1 1 0 8 0
amappl2 88 2887 0 2834 3 1 2 2 0 8 0
amappl1 80 247202 0 246760 16 5 11 13 0 8 0
amappl 88 166082 0 165854 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 150 0 20 3 0 3 3 0 8 0
uaddrrnd 24 13866 0 13596 2 0 2 2 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 13866 0 13596 2 0 2 2 0 8 0
vmmpekpl 168 89879 0 89819 5 1 4 4 0 8 0
vmmpepl 168 1246953 0 1244049 511 341 170 179 0 357 26
vmsppl 368 13865 0 13596 25 0 25 25 0 8 0
rwobjpl 56 301702 0 293731 142 24 118 118 0 8 4
pdppl 4096 27740 0 27444 406 100 306 306 0 8 10
pvpl 32 6297170 0 6279432 514 314 200 243 0 265 1
pmappl 248 13865 0 13596 18 0 18 18 0 8 0
extentpl 40 57 0 38 1 0 1 1 0 8 0
phpool 112 1879 0 363 44 0 44 44 0 8 0
ddb{0}> machine ddbcpu 0
Invalid cpu 0
ddb{0}> trace
km_free(0,1000,ffffffff826ee900,ffffffff826ee918) at km_free+0x118 sys/uvm/uvm_km.c:973
pool_p_free(ffffffff828ebcd0,fffffd8067763f90) at pool_p_free+0x14b sys/kern/subr_pool.c:1014
pool_gc_pages(0) at pool_gc_pages+0x255 sys/kern/subr_pool.c:1585
taskq_thread(ffffffff82789130) at taskq_thread+0xe5 sys/kern/kern_task.c:449
end trace frame: 0x0, count: -4
ddb{0}> machine ddbcpu 1
Stopped at x86_ipi_db+0x1a: addq $0x8,%rsp
x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a 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+0x23
acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206
sched_idle(ffff800020d38ff0) at sched_idle+0x417 sys/kern/kern_sched.c:178
end trace frame: 0x0, count: 10
ddb{1}> trace
x86_ipi_db(ffff800020d38ff0) at x86_ipi_db+0x1a 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+0x23
acpicpu_idle() at acpicpu_idle+0x312 sys/dev/acpi/acpicpu.c:1206
sched_idle(ffff800020d38ff0) at sched_idle+0x417 sys/kern/kern_sched.c:178
end trace frame: 0x0, count: -5


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Oct 10, 2022, 6:33:28 PM10/10/22
to syzkaller-o...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages