uvm_fault: pool_do_get (2)

0 views
Skip to first unread message

syzbot

unread,
Sep 23, 2022, 4:54:39 AM9/23/22
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: e9c0eaf3ee16 only call printf the first time amd64_errata(..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=1481de60880000
kernel config: https://syzkaller.appspot.com/x/.config?x=1bc15e68cd2a49e5
dashboard link: https://syzkaller.appspot.com/bug?extid=7b94a5def0e335a03646

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+7b94a5...@syzkaller.appspotmail.com

uvm_fault(0xfffffd806d6289a0, 0x0, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at pool_do_get+0x2c7: movq 0(%rax),%rax
TID PID UID PRFLAGS PFLAGS CPU COMMAND
*262405 53184 0 0 0x4000000 0 syz-executor.6
pool_do_get(ffffffff82a5cc20,9,ffff80002b4631e8) at pool_do_get+0x2c7 pool_update_curpage sys/kern/subr_pool.c:1059 [inline]
pool_do_get(ffffffff82a5cc20,9,ffff80002b4631e8) at pool_do_get+0x2c7 sys/kern/subr_pool.c:765
pool_get(ffffffff82a5cc20,9) at pool_get+0xb3 sys/kern/subr_pool.c:582
socreate(11,ffff80002b4632b8,3,0) at socreate+0xa8 soalloc sys/kern/uipc_socket.c:146 [inline]
socreate(11,ffff80002b4632b8,3,0) at socreate+0xa8 sys/kern/uipc_socket.c:177
sys_socket(ffff800021777ce8,ffff80002b463348,ffff80002b4633a0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:98
syscall(ffff80002b463410) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x1bfcf2a8050, count: 9
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>
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
*cpu0: uvm_fault(0xfffffd806d6289a0, 0x0, 0, 1) -> e
ddb> trace
pool_do_get(ffffffff82a5cc20,9,ffff80002b4631e8) at pool_do_get+0x2c7 pool_update_curpage sys/kern/subr_pool.c:1059 [inline]
pool_do_get(ffffffff82a5cc20,9,ffff80002b4631e8) at pool_do_get+0x2c7 sys/kern/subr_pool.c:765
pool_get(ffffffff82a5cc20,9) at pool_get+0xb3 sys/kern/subr_pool.c:582
socreate(11,ffff80002b4632b8,3,0) at socreate+0xa8 soalloc sys/kern/uipc_socket.c:146 [inline]
socreate(11,ffff80002b4632b8,3,0) at socreate+0xa8 sys/kern/uipc_socket.c:177
sys_socket(ffff800021777ce8,ffff80002b463348,ffff80002b4633a0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:98
syscall(ffff80002b463410) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x1bfcf2a8050, count: -6
ddb> show registers
rdi 0xffff800024c04000
rsi 0x39
rbp 0xffff80002b463190
rbx 0x8
rdx 0xffff800024c04000
rcx 0x38
rax 0
r8 0xffffffff818c66b0 uvm_map_inentry_pc
r9 0x1c
r10 0
r11 0x2479e6ec821f1927
r12 0x8
r13 0xfffffd80793df8f0
r14 0xffffffff82a5cc20 socket_pool
r15 0xfffffd80793dff90
rip 0xffffffff81423717 pool_do_get+0x2c7
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff80002b463110
ss 0x10
pool_do_get+0x2c7: movq 0(%rax),%rax
ddb> show proc
PROC (syz-executor.6) pid=262405 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=32, usrpri=80, nice=20
forw=0xffffffffffffffff, list=0xffff800021776008,0xffff800026614020
process=0xffff8000217113b0 user=0xffff80002b45e000, vmspace=0xfffffd806d6289a0
estcpu=30, cpticks=0, pctcpu=0.0
user=0, sys=0, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
26663 31072 66059 0 2 0 syz-executor.0
26663 500153 66059 0 2 0x4000000 syz-executor.0
53184 274540 35656 0 2 0 syz-executor.6
*53184 262405 35656 0 7 0x4000000 syz-executor.6
1800 326519 10180 0 2 0 syz-executor.7
1800 318390 10180 0 3 0x4000080 fsleep syz-executor.7
1800 86467 10180 0 3 0x4000080 fsleep syz-executor.7
40565 299822 7065 0 2 0 syz-executor.2
40565 97484 7065 0 3 0x4000080 fsleep syz-executor.2
40565 199840 7065 0 3 0x4000080 fsleep syz-executor.2
40565 68820 7065 0 3 0x4000080 fsleep syz-executor.2
16597 150742 90284 0 2 0 syz-executor.4
16597 494371 90284 0 3 0x4000080 fsleep syz-executor.4
7065 147141 51628 0 3 0x82 nanoslp syz-executor.2
35656 270085 51628 0 3 0x82 nanoslp syz-executor.6
66059 337595 51628 0 3 0x82 nanoslp syz-executor.0
34983 93711 51628 0 3 0x82 nanoslp syz-executor.3
90284 338925 51628 0 3 0x82 nanoslp syz-executor.4
63937 482604 51628 0 3 0x82 nanoslp syz-executor.1
94754 135305 0 0 3 0x14200 acct acct
59834 280416 0 0 3 0x14200 bored sosplice
30097 113451 0 0 3 0x14280 nfsidl nfsio
23598 158785 0 0 3 0x14280 nfsidl nfsio
2154 42841 0 0 3 0x14280 nfsidl nfsio
37872 164011 0 0 3 0x14280 nfsidl nfsio
74553 88299 0 0 3 0x14280 nfsidl nfsio
81041 110693 0 0 3 0x14280 nfsidl nfsio
59241 368435 0 0 3 0x14280 nfsidl nfsio
32970 522957 0 0 3 0x14280 nfsidl nfsio
46923 273968 0 0 3 0x14280 nfsidl nfsio
73095 161153 0 0 3 0x14280 nfsidl nfsio
12198 303883 0 0 3 0x14280 nfsidl nfsio
87078 33050 0 0 3 0x14280 nfsidl nfsio
33240 420041 0 0 3 0x14280 nfsidl nfsio
31399 415918 0 0 3 0x14280 nfsidl nfsio
24373 253923 0 0 3 0x14280 nfsidl nfsio
74684 367276 0 0 3 0x14280 nfsidl nfsio
83387 154125 0 0 3 0x14280 nfsidl nfsio
25154 366799 0 0 3 0x14280 nfsidl nfsio
26100 51204 0 0 3 0x14280 nfsidl nfsio
75549 519426 0 0 3 0x14280 nfsidl nfsio
10180 320571 51628 0 3 0x82 nanoslp syz-executor.7
51628 348417 64541 0 3 0x82 wait syz-fuzzer
51628 451691 64541 0 3 0x4000082 thrsleep syz-fuzzer
51628 307010 64541 0 3 0x4000082 thrsleep syz-fuzzer
51628 91866 64541 0 3 0x4000082 thrsleep syz-fuzzer
51628 333962 64541 0 3 0x4000082 wait syz-fuzzer
51628 69681 64541 0 3 0x4000082 wait syz-fuzzer
51628 143005 64541 0 3 0x4000082 wait syz-fuzzer
51628 422625 64541 0 3 0x4000082 thrsleep syz-fuzzer
51628 352147 64541 0 3 0x4000082 wait syz-fuzzer
51628 211325 64541 0 3 0x4000082 wait syz-fuzzer
51628 212547 64541 0 3 0x4000082 kqread syz-fuzzer
51628 148156 64541 0 3 0x4000082 thrsleep syz-fuzzer
51628 159088 64541 0 3 0x4000082 wait syz-fuzzer
51628 226508 64541 0 3 0x4000082 thrsleep syz-fuzzer
64541 217209 89405 0 3 0x10008a sigsusp ksh
89405 211936 54282 0 3 0x9a kqread sshd
66115 309745 1 0 3 0x100083 ttyopn getty
54282 370466 1 0 3 0x88 kqread sshd
10952 333312 59355 73 3 0x1100090 kqread syslogd
59355 135275 1 0 3 0x100082 netio syslogd
41970 48169 1 0 3 0x100080 kqread resolvd
31438 426342 81589 77 3 0x100092 kqread dhcpleased
77571 40692 81589 77 3 0x100092 kqread dhcpleased
81589 419613 1 0 3 0x80 kqread dhcpleased
2392 183752 0 0 3 0x14200 bored smr
93679 63583 0 0 2 0x14200 zerothread
57799 146256 0 0 3 0x14200 aiodoned aiodoned
68291 244095 0 0 3 0x14200 syncer update
17977 366455 0 0 3 0x14200 cleaner cleaner
6983 114158 0 0 3 0x14200 reaper reaper
19874 170311 0 0 3 0x14200 pgdaemon pagedaemon
75155 113820 0 0 3 0x14200 bored viomb
10102 268713 0 0 3 0x40014200 acpi0 acpi0
29073 141744 0 0 3 0x14200 bored softnet
1855 80513 0 0 3 0x14200 bored softnet
96809 258765 0 0 3 0x14200 bored softnet
42706 81909 0 0 3 0x14200 bored softnet
15807 121953 0 0 3 0x14200 bored systqmp
75067 28616 0 0 3 0x14200 bored systq
89758 23761 0 0 3 0x40014200 bored softclock
83276 191614 0 0 3 0x40014200 idle0
1 348215 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb> show all locks
No such command
ddb> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim
devbuf 10190 6406K 6798K 78643K 14539 0
pcb 13 12K 14K 78643K 761 0
rtable 161 7K 10K 78643K 2540 0
ifaddr 90 20K 21K 78643K 337 0
sysctl 1 1K 1K 78643K 1 0
counters 25 17K 17K 78643K 99 0
ioctlops 0 0K 4K 78643K 757 0
iov 0 0K 24K 78643K 266 0
mount 1 1K 1K 78643K 1 0
log 0 0K 0K 78643K 4 0
vnodes 1340 84K 84K 78643K 2985 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 5K 78643K 15 0
VM map 2 0K 0K 78643K 2 0
sem 12 0K 0K 78643K 292 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1697 195K 286K 78643K 12548 0
file desc 14 49K 69K 78643K 3580 0
sigio 0 0K 0K 78643K 102 0
proc 59 59K 83K 78643K 1101 0
subproc 91 5K 6K 78643K 351 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
ip_moptions 0 0K 0K 78643K 51 0
in_multi 69 4K 6K 78643K 357 0
ether_multi 1 0K 0K 78643K 9 0
mrt 0 0K 0K 78643K 33 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 157 705K 705K 78643K 157 0
exec 0 0K 2K 78643K 1740 0
pfkey data 0 0K 0K 78643K 3 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 265 158K 174K 78643K 20047 0
UVM aobj 19 2K 2K 78643K 19 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
ip6_options 0 0K 0K 78643K 99 0
NDP 10 0K 2K 78643K 107 0
temp 116 4725K 4790K 78643K 90307 0
kqueue 14 22K 28K 78643K 705 0
SYN cache 2 16K 16K 78643K 2 0
ddb> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg Idle
rtpcb 120 2104 0 2101 16 13 3 4 0 8 2
rtentry 112 370 0 300 4 1 3 4 0 8 0
unpcb 144 3243 0 3225 27 26 1 6 0 8 0
syncache 296 20 0 20 6 6 0 1 0 8 0
tcpqe 32 55 0 55 4 4 0 1 0 8 0
tcpcb 768 633 0 627 40 39 1 18 0 8 0
arp 88 59 0 47 1 0 1 1 0 8 0
ipq 40 2 0 2 2 2 0 1 0 8 0
ipqe 40 9 0 9 2 2 0 1 0 8 0
inpcb 336 3055 0 3045 48 41 7 15 0 8 5
nd6 48 91 0 75 1 0 1 1 0 8 0
pkpcb 40 3 0 3 1 1 0 1 0 8 0
kcovpl 48 27 0 20 1 0 1 1 0 8 0
ppxss 1160 45 0 45 3 3 0 1 0 8 0
pfstscr 40 10 0 9 1 0 1 1 0 8 0
pfrktable 1344 21 0 21 1 1 0 1 0 8 0
pfanchor 1280 318 0 119 17 0 17 17 0 8 0
pftag 88 1 0 0 1 0 1 1 0 8 0
pfstitem 24 2 0 0 1 0 1 1 0 8 0
pfstkey 120 17 0 15 1 0 1 1 0 8 0
pfstate 336 10 0 9 1 0 1 1 0 8 0
pfrule 1360 134 0 113 6 4 2 2 0 8 0
rttmr 136 11 0 11 4 4 0 1 0 8 0
art_heap8 4096 3 0 2 3 2 1 2 0 8 0
art_heap4 256 1569 0 1231 35 11 24 30 0 8 0
art_table 32 1572 0 1233 4 0 4 4 0 8 0
art_node 16 366 0 305 1 0 1 1 0 8 0
sysvmsgpl 40 19 0 4 1 0 1 1 0 8 0
semupl 112 3 0 3 1 1 0 1 0 8 0
semapl 112 290 0 280 1 0 1 1 0 8 0
shmpl 112 16 0 0 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 5912 0 4475 91 0 91 91 0 8 0
ffsino 240 5912 0 4475 85 0 85 85 0 8 0
nchpl 144 10219 0 8598 63 1 62 63 0 8 0
rtmask 32 3 0 3 1 1 0 1 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 35240 0 35240 2 1 1 2 0 8 1
vcpupl 2048 9 0 2 2 0 2 2 0 8 0
vmpool 536 76 0 69 1 0 1 1 0 8 0
pfiaddrpl 120 9 0 9 1 1 0 1 0 8 0
kstatmem 264 98 0 78 2 0 2 2 0 8 0
scxspl 216 29457 0 29457 14 13 1 8 0 8 1
plimitpl 152 415 0 401 1 0 1 1 0 8 0
sigapl 424 3854 0 3789 8 0 8 8 0 8 0
futexpl 64 31792 0 31786 1 0 1 1 0 8 0
knotepl 120 220691 0 220481 29 21 8 15 0 8 1
kqueuepl 184 1124 0 1114 17 16 1 4 0 8 0
pipepl 288 480 0 455 3 0 3 3 0 8 0
fdescpl 432 3816 0 3791 4 0 4 4 0 8 0
filepl 120 22998 0 22775 36 25 11 16 0 8 4
lockfpl 104 834 0 832 3 2 1 2 0 8 0
lockfspl 48 288 0 286 1 0 1 1 0 8 0
sessionpl 144 42 0 27 1 0 1 1 0 8 0
pgrppl 48 48 0 33 1 0 1 1 0 8 0
ucredpl 104 2534 0 2524 1 0 1 1 0 8 0
zombiepl 144 3791 0 3789 1 0 1 1 0 8 0
processpl 1000 3854 0 3789 10 1 9 9 0 8 0
procpl 672 8700 0 8614 13 4 9 9 0 8 1
sosppl 168 24 0 23 2 1 1 1 0 8 0
sockpl 456 8411 0 8380 155 143 12 37 0 8 8
sockpl: pool(0xffffffff82a5cc20:sockpl): page inconsistency: page 0x0; at page head addr 0xfffffd8067faff90 (p 0xfffffd8067faf000)
mcl64k 65536 95 0 95 5 4 1 1 0 8 1
mcl16k 16384 45 0 45 9 8 1 1 0 8 1
mcl12k 12288 87 0 87 8 8 0 1 0 8 0
mcl9k 9216 41 0 41 8 7 1 1 0 8 1
mcl8k 8192 123 0 123 6 5 1 1 0 8 1
mcl4k 4096 345 0 345 2 1 1 1 0 8 1
mcl2k2 2112 29 0 29 10 9 1 1 0 8 1
mcl2k 2048 75409 0 75348 24 15 9 16 0 8 0
mtagpl 96 462 0 272 8 3 5 6 0 8 0
mbufpl 256 299330 0 298947 1682 1608 74 556 0 8 13
bufpl 288 8844 0 2432 459 0 459 459 0 8 0
anonpl 24 656412 0 640428 130 15 115 115 0 188 0
amapchunkpl 152 80773 0 80040 372 329 43 343 0 158 13
amappl16 200 8035 0 7431 40 6 34 35 0 8 1
amappl15 192 532 0 528 1 0 1 1 0 8 0
amappl14 184 108 0 104 1 0 1 1 0 8 0
amappl13 176 883 0 880 1 0 1 1 0 8 0
amappl12 168 787 0 779 1 0 1 1 0 8 0
amappl11 160 294 0 277 1 0 1 1 0 8 0
amappl10 152 512 0 511 1 0 1 1 0 8 0
amappl9 144 848 0 835 1 0 1 1 0 8 0
amappl8 136 1161 0 1101 3 0 3 3 0 8 0
amappl7 128 497 0 477 1 0 1 1 0 8 0
amappl6 120 629 0 611 2 1 1 2 0 8 0
amappl5 112 3502 0 3489 1 0 1 1 0 8 0
amappl4 104 1555 0 1525 2 1 1 2 0 8 0
amappl3 96 11023 0 10971 2 0 2 2 0 8 0
amappl2 88 4559 0 4497 2 0 2 2 0 8 0
amappl1 80 90307 0 89612 22 6 16 21 0 8 0
amappl 88 19231 0 19074 4 0 4 4 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 18 0 0 1 0 1 1 0 8 0
uaddrrnd 24 3892 0 3860 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 3892 0 3860 1 0 1 1 0 8 0
vmmpekpl 168 30039 0 29978 3 0 3 3 0 8 0
vmmpepl 168 374752 0 372141 219 91 128 156 0 357 5
vmsppl 272 3891 0 3860 4 1 3 3 0 8 0
rwobjpl 24 92030 0 84420 47 0 47 47 0 8 0
pdppl 4096 7790 0 7727 274 204 70 72 0 8 7
pvpl 32 1459974 0 1441313 263 84 179 243 0 265 0
pmappl 216 3891 0 3860 3 0 3 3 0 8 0
extentpl 40 56 0 38 1 0 1 1 0 8 0
phpool 112 2747 0 1907 39 13 26 33 0 8 1
ddb> machine ddbcpu 0
No such command
ddb> trace
pool_do_get(ffffffff82a5cc20,9,ffff80002b4631e8) at pool_do_get+0x2c7 pool_update_curpage sys/kern/subr_pool.c:1059 [inline]
pool_do_get(ffffffff82a5cc20,9,ffff80002b4631e8) at pool_do_get+0x2c7 sys/kern/subr_pool.c:765
pool_get(ffffffff82a5cc20,9) at pool_get+0xb3 sys/kern/subr_pool.c:582
socreate(11,ffff80002b4632b8,3,0) at socreate+0xa8 soalloc sys/kern/uipc_socket.c:146 [inline]
socreate(11,ffff80002b4632b8,3,0) at socreate+0xa8 sys/kern/uipc_socket.c:177
sys_socket(ffff800021777ce8,ffff80002b463348,ffff80002b4633a0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:98
syscall(ffff80002b463410) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x1bfcf2a8050, count: -6
ddb> machine ddbcpu 1
No such command
ddb> trace
pool_do_get(ffffffff82a5cc20,9,ffff80002b4631e8) at pool_do_get+0x2c7 pool_update_curpage sys/kern/subr_pool.c:1059 [inline]
pool_do_get(ffffffff82a5cc20,9,ffff80002b4631e8) at pool_do_get+0x2c7 sys/kern/subr_pool.c:765
pool_get(ffffffff82a5cc20,9) at pool_get+0xb3 sys/kern/subr_pool.c:582
socreate(11,ffff80002b4632b8,3,0) at socreate+0xa8 soalloc sys/kern/uipc_socket.c:146 [inline]
socreate(11,ffff80002b4632b8,3,0) at socreate+0xa8 sys/kern/uipc_socket.c:177
sys_socket(ffff800021777ce8,ffff80002b463348,ffff80002b4633a0) at sys_socket+0xd8 sys/kern/uipc_syscalls.c:98
syscall(ffff80002b463410) at syscall+0x447 sys/arch/amd64/amd64/trap.c:585
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0x1bfcf2a8050, count: -6


---
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,
Jan 14, 2023, 7:52:44 AM1/14/23
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