openbsd test error: uvm_fault: spllower

6 views
Skip to first unread message

syzbot

unread,
Dec 2, 2020, 6:49:22 PM12/2/20
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 1ea95950 Prevent a TOCTOU race in single_thread_set() by e..
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=100cd673500000
kernel config: https://syzkaller.appspot.com/x/.config?x=fe55924c11e64b0a
dashboard link: https://syzkaller.appspot.com/bug?extid=6fbdde8cabece10947ed

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

login: uvm_fault(0xfffffd806bc02220, 0x6f0bb5b0, 0, 1) -> e
kernel: page fault trap, code=0
Stopped at spllower+0x27: movq cpu_info_full_primary+0x25b0(,%rax,8),%r13
ddb>
ddb> set $lines = 0
ddb> set $maxwidth = 0
ddb> show panic
kernel page fault
uvm_fault(0xfffffd806bc02220, 0x6f0bb5b0, 0, 1) -> e
spllower(ffff80001d946000) at spllower+0x27 sys/arch/amd64/amd64/intr.c:716
end trace frame: 0xffff80001e94af00, count: 0
ddb> trace
spllower(ffff80001d946000) at spllower+0x27 sys/arch/amd64/amd64/intr.c:716
single_thread_check_locked(ffff8000ffff8298,0) at single_thread_check_locked+0x16a sys/kern/kern_sig.c:1971
userret(ffff8000ffff8298) at userret+0x2d5 single_thread_check sys/kern/kern_sig.c:1991 [inline]
userret(ffff8000ffff8298) at userret+0x2d5 sys/kern/kern_sig.c:1936
syscall(ffff80001e94b030) at syscall+0x429 mi_syscall_return sys/sys/syscall_mi.h:129 [inline]
syscall(ffff80001e94b030) at syscall+0x429 sys/arch/amd64/amd64/trap.c:612
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xc718d7aa760, count: -5
ddb> show registers
rdi 0xffff80001d946000
rsi 0x415
rbp 0xffff80001e94aea0
rbx 0x1000 __ALIGN_SIZE
rdx 0xffff80001d946000
rcx 0x414
rax 0x1d946000
r8 0xffffffff817299e6 setrunnable+0x76
r9 0x5
r10 0x4cf16613953efd41
r11 0xe2eae049d49df5ca
r12 0xffff80001d8a1c38
r13 0x1
r14 0xffff80001d8a1b30
r15 0x1d946000
rip 0xffffffff81eb6267 spllower+0x27
cs 0x8
rflags 0x10246 __ALIGN_SIZE+0xf246
rsp 0xffff80001e94ae60
ss 0x10
spllower+0x27: movq cpu_info_full_primary+0x25b0(,%rax,8),%r13
ddb> show proc
PROC (syz-executor.0) pid=478725 stat=onproc
flags process=1000<SINGLEEXIT> proc=4080000<SUSPSINGLE,THREAD>
pri=32, usrpri=50, nice=20
forw=0xffffffffffffffff, list=0xffff8000ffff8528,0xffffffff827ed7d0
process=0xffff80001d8a1b30 user=0xffff80001e946000, vmspace=0xfffffd806bc02220
estcpu=36, cpticks=0, pctcpu=0.0
user=0, sys=0, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
35716 369456 51397 0 2 0x3000 syz-executor.0
*35716 478725 51397 0 7 0x4081000 syz-executor.0
51397 330832 23738 0 3 0x82 nanosleep syz-executor.0
23738 268299 18509 0 3 0x82 kqread syz-fuzzer
23738 123444 18509 0 3 0x4000082 thrsleep syz-fuzzer
23738 269218 18509 0 3 0x4000082 thrsleep syz-fuzzer
23738 516478 18509 0 3 0x4000082 thrsleep syz-fuzzer
23738 228149 18509 0 3 0x4000082 thrsleep syz-fuzzer
23738 141075 18509 0 3 0x4000082 thrsleep syz-fuzzer
18509 314659 90816 0 3 0x10008a pause ksh
90816 395646 31986 0 3 0x92 select sshd
2694 166209 1 0 3 0x100083 ttyin getty
31986 262643 1 0 3 0x80 select sshd
11669 308034 52584 73 3 0x100090 kqread syslogd
52584 153569 1 0 3 0x100082 netio syslogd
46604 204914 1 77 3 0x100090 poll dhclient
93684 123578 1 0 3 0x80 poll dhclient
9045 273159 0 0 3 0x14200 bored smr
37640 466236 0 0 2 0x14200 zerothread
46529 313254 0 0 3 0x14200 aiodoned aiodoned
51550 304958 0 0 3 0x14200 syncer update
32829 16923 0 0 3 0x14200 cleaner cleaner
95166 40035 0 0 3 0x14200 reaper reaper
94563 224403 0 0 3 0x14200 pgdaemon pagedaemon
40202 174582 0 0 3 0x14200 bored crynlk
22996 483777 0 0 3 0x14200 bored crypto
25910 445557 0 0 3 0x40014200 acpi0 acpi0
53449 271567 0 0 3 0x14200 bored softnet
89024 77952 0 0 3 0x14200 bored systqmp
87885 346353 0 0 3 0x14200 bored systq
1230 400170 0 0 3 0x40014200 bored softclock
34751 104836 0 0 3 0x40014200 idle0
1 178920 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 9443 6321K 6321K 78643K 10540 0
pcb 13 8K 8K 78643K 13 0
rtable 83 2K 2K 78643K 153 0
ifaddr 32 8K 8K 78643K 32 0
counters 20 16K 16K 78643K 20 0
ioctlops 0 0K 2K 78643K 14 0
mount 1 1K 1K 78643K 1 0
vnodes 1199 75K 75K 78643K 1204 0
UFS quota 1 32K 32K 78643K 1 0
UFS mount 5 36K 36K 78643K 5 0
shm 2 1K 1K 78643K 2 0
VM map 2 0K 0K 78643K 2 0
sem 2 0K 0K 78643K 2 0
dirhash 12 2K 2K 78643K 12 0
ACPI 1809 195K 288K 78643K 12938 0
file desc 3 8K 12K 78643K 18 0
proc 47 38K 54K 78643K 324 0
subproc 16 1K 1K 78643K 17 0
NFS srvsock 1 0K 0K 78643K 1 0
NFS daemon 1 16K 16K 78643K 1 0
in_multi 22 1K 1K 78643K 22 0
ether_multi 1 0K 0K 78643K 1 0
ISOFS mount 1 32K 32K 78643K 1 0
MSDOSFS mount 1 16K 16K 78643K 1 0
ttys 19 95K 95K 78643K 19 0
exec 0 0K 2K 78643K 295 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 51 10K 10K 78643K 599 0
UVM aobj 3 2K 2K 78643K 3 0
memdesc 1 4K 4K 78643K 1 0
crypto data 1 1K 1K 78643K 1 0
NDP 6 0K 0K 78643K 6 0
temp 40 3950K 4013K 78643K 1664 0
kqueue 3 4K 4K 78643K 3 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
arp 64 4 0 0 1 0 1 1 0 8 0
rtpcb 120 17 0 15 1 0 1 1 0 8 0
rtentry 112 34 0 1 1 0 1 1 0 8 0
unpcb 120 23 0 15 1 0 1 1 0 8 0
syncache 296 4 0 4 1 0 1 1 0 8 1
tcpcb 736 10 0 4 1 0 1 1 0 8 0
inpcb 296 28 0 22 1 0 1 1 0 8 0
nd6 48 3 0 0 1 0 1 1 0 8 0
kcovpl 48 1 0 0 1 0 1 1 0 8 0
art_heap8 4096 1 0 0 1 0 1 1 0 8 0
art_heap4 256 144 0 0 9 0 9 9 0 8 0
art_table 32 145 0 0 2 0 2 2 0 8 0
art_node 16 33 0 3 1 0 1 1 0 8 0
dirhash 1024 17 0 0 3 0 3 3 0 8 0
dino2pl 256 1412 0 21 87 0 87 87 0 8 0
ffsino 240 1412 0 21 82 0 82 82 0 8 0
nchpl 144 1627 0 36 59 0 59 59 0 8 0
uvmvnodes 72 1438 0 0 27 0 27 27 0 8 0
vnodes 208 1438 0 0 76 0 76 76 0 8 0
namei 1024 3827 0 3827 1 0 1 1 0 8 1
scxspl 216 4705 0 4705 1 0 1 1 0 8 1
plimitpl 152 13 0 7 1 0 1 1 0 8 0
sigapl 424 209 0 182 4 0 4 4 0 8 0
futexpl 56 3 0 3 1 0 1 1 0 8 1
knotepl 112 62 0 50 1 0 1 1 0 8 0
kqueuepl 152 2 0 0 1 0 1 1 0 8 0
pipepl 272 69 0 61 1 0 1 1 0 8 0
fdescpl 432 195 0 182 2 0 2 2 0 8 0
filepl 120 920 0 849 3 0 3 3 0 8 0
lockfpl 104 5 0 4 1 0 1 1 0 8 0
lockfspl 48 3 0 2 1 0 1 1 0 8 0
sessionpl 144 16 0 7 1 0 1 1 0 8 0
pgrppl 48 16 0 7 1 0 1 1 0 8 0
ucredpl 96 48 0 41 1 0 1 1 0 8 0
zombiepl 144 182 0 182 1 0 1 1 0 8 1
processpl 992 209 0 182 4 0 4 4 0 8 0
procpl 656 215 0 182 3 0 3 3 0 8 0
sockpl 400 68 0 52 2 0 2 2 0 8 0
mcl4k 4096 8 0 8 1 0 1 1 0 8 1
mcl2k 2048 9254 0 9214 9 2 7 9 0 8 1
mtagpl 96 2 0 2 1 1 0 1 0 8 0
mbufpl 256 15504 0 15424 7 1 6 6 0 8 0
bufpl 280 3440 0 169 234 0 234 234 0 8 0
anonpl 16 22240 0 20175 16 2 14 14 0 107 3
amapchunkpl 152 731 0 662 5 0 5 5 0 158 2
amappl16 192 145 0 89 3 0 3 3 0 8 0
amappl15 184 1 0 0 1 0 1 1 0 8 0
amappl14 176 24 0 19 1 0 1 1 0 8 0
amappl13 168 20 0 18 1 0 1 1 0 8 0
amappl12 160 6 0 5 2 1 1 1 0 8 0
amappl11 152 43 0 34 1 0 1 1 0 8 0
amappl10 144 5 0 2 1 0 1 1 0 8 0
amappl9 136 369 0 368 1 0 1 1 0 8 0
amappl8 128 88 0 69 1 0 1 1 0 8 0
amappl7 120 202 0 197 1 0 1 1 0 8 0
amappl6 112 54 0 46 1 0 1 1 0 8 0
amappl5 104 351 0 337 1 0 1 1 0 8 0
amappl4 96 244 0 219 1 0 1 1 0 8 0
amappl3 88 101 0 92 1 0 1 1 0 8 0
amappl2 80 851 0 793 2 0 2 2 0 8 0
amappl1 72 13577 0 13159 24 6 18 18 0 8 8
amappl 80 406 0 379 1 0 1 1 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
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 64 2 0 0 1 0 1 1 0 8 0
uaddrrnd 24 195 0 182 1 0 1 1 0 8 0
uaddrbest 32 2 0 0 1 0 1 1 0 8 0
uaddr 24 195 0 182 1 0 1 1 0 8 0
vmmpekpl 168 5649 0 5631 1 0 1 1 0 8 0
vmmpepl 168 30001 0 28980 78 6 72 72 0 357 27
vmsppl 272 194 0 182 1 0 1 1 0 8 0
pdppl 4096 396 0 364 46 10 36 36 0 8 4
pvpl 32 108642 0 103793 116 0 116 116 0 265 75
pmappl 200 194 0 182 1 0 1 1 0 8 0
extentpl 40 54 0 37 1 0 1 1 0 8 0
phpool 112 253 0 15 7 0 7 7 0 8 0
ddb> machine ddbcpu 0
No such command
ddb> trace
spllower(ffff80001d946000) at spllower+0x27 sys/arch/amd64/amd64/intr.c:716
single_thread_check_locked(ffff8000ffff8298,0) at single_thread_check_locked+0x16a sys/kern/kern_sig.c:1971
userret(ffff8000ffff8298) at userret+0x2d5 single_thread_check sys/kern/kern_sig.c:1991 [inline]
userret(ffff8000ffff8298) at userret+0x2d5 sys/kern/kern_sig.c:1936
syscall(ffff80001e94b030) at syscall+0x429 mi_syscall_return sys/sys/syscall_mi.h:129 [inline]
syscall(ffff80001e94b030) at syscall+0x429 sys/arch/amd64/amd64/trap.c:612
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xc718d7aa760, count: -5
ddb> machine ddbcpu 1
No such command
ddb> trace
spllower(ffff80001d946000) at spllower+0x27 sys/arch/amd64/amd64/intr.c:716
single_thread_check_locked(ffff8000ffff8298,0) at single_thread_check_locked+0x16a sys/kern/kern_sig.c:1971
userret(ffff8000ffff8298) at userret+0x2d5 single_thread_check sys/kern/kern_sig.c:1991 [inline]
userret(ffff8000ffff8298) at userret+0x2d5 sys/kern/kern_sig.c:1936
syscall(ffff80001e94b030) at syscall+0x429 mi_syscall_return sys/sys/syscall_mi.h:129 [inline]
syscall(ffff80001e94b030) at syscall+0x429 sys/arch/amd64/amd64/trap.c:612
Xsyscall() at Xsyscall+0x128
end of kernel
end trace frame: 0xc718d7aa760, 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.

Greg Steuck

unread,
Dec 2, 2020, 10:39:02 PM12/2/20
to syzbot, 'Dmitry Vyukov' via syzkaller-openbsd-bugs
#syz fix: Revert previous extension of the SCHED_LOCK(), the state isn't passed down.

--
You received this message because you are subscribed to the Google Groups "syzkaller-openbsd-bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-openbsd...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-openbsd-bugs/00000000000077319e05b583e482%40google.com.


--
nest.cx is Gmail hosted, use PGP: https://pgp.key-server.io/0x0B1542BD8DF5A1B0
Fingerprint: 5E2B 2D0E 1E03 2046 BEC3  4D50 0B15 42BD 8DF5 A1B0
Reply all
Reply to author
Forward
0 new messages