uvm_fault: wsmux_do_ioctl (2)

2 views
Skip to first unread message

syzbot

unread,
Jan 27, 2019, 9:14:04 AM1/27/19
to syzkaller-o...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 269c2856b78e sentences start with capital letters;
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=10db9ac0c00000
kernel config: https://syzkaller.appspot.com/x/.config?x=ffa1da4399f74b2b
dashboard link: https://syzkaller.appspot.com/bug?extid=ed88256423ae8d882b8b
compiler:

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

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

uvm_fault(0xfffffd803f015738, 0x10, 0, 2) -> e
kernel: page fault trap, code=0
Stopped at wsmux_do_ioctl+0x6ce: movq %rax,0x10(%rdx,%r15,8)
ddb>
ddb> set $lines = 0
ddb> show panic
kernel page fault
uvm_fault(0xfffffd803f015738, 0x10, 0, 2) -> e
wsmux_do_ioctl(89063e48e5d6e261,80185760,fffffd8037e760b0,3,fffffd803f7c77e0)
at
wsmux_do_ioctl+0x6ce sys/dev/wscons/wsmux.c:404
end trace frame: 0xffff800014a38430, count: 0
ddb> trace
wsmux_do_ioctl(89063e48e5d6e261,80185760,fffffd8037e760b0,3,fffffd803f7c77e0)
at
wsmux_do_ioctl+0x6ce sys/dev/wscons/wsmux.c:404
VOP_IOCTL(312c608220ae305b,80185760,fffffd8030794f10,ffff8000ffff8008,fffffd8037e760b0,ffff8000ffff8008)
at
VOP_IOCTL+0x80 sys/kern/vfs_vops.c:290
vn_ioctl(d39b910065049c7f,fffffd8030794f10,ffff8000ffff8008,18) at
vn_ioctl+0xc5 sys/kern/vfs_vnops.c:512
sys_ioctl(929bbd9c89191901,0,ffff8000ffff8008) at sys_ioctl+0x639
syscall(f6675b67fc023366) at syscall+0x528
Xsyscall(6,0,ffffffffffffff89,0,3,ac85f849010) at Xsyscall+0x128
end of kernel
end trace frame: 0xacac4955b70, count: -6
ddb> show registers
rdi 0xff
rsi 0x1
rbp 0xffff800014a383b0
rbx 0x1
rdx 0
rcx 0
rax 0
r8 0xffffffff81d09e11 wsmux_do_ioctl+0x1e1
r9 0x7
r10 0x295371b3f8608861
r11 0xc6289eb06760f04b
r12 0xffff800000669150
r13 0
r14 0xffff800014a38560
r15 0
rip 0xffffffff81d0a2fe wsmux_do_ioctl+0x6ce
cs 0x8
rflags 0x10293 __ALIGN_SIZE+0xf293
rsp 0xffff800014a38360
ss 0x10
wsmux_do_ioctl+0x6ce: movq %rax,0x10(%rdx,%r15,8)
ddb> show proc
PROC (syz-executor0) pid=131207 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=86, usrpri=86, nice=20
forw=0xffffffffffffffff, list=0xffff8000ffff8e18,0xffff80001496c4d0
process=0xffff8000149b2020 user=0xffff800014a33000,
vmspace=0xfffffd803f015738
estcpu=36, cpticks=17, pctcpu=0.85
user=0, sys=1, intr=0
ddb> ps
PID TID PPID UID S FLAGS WAIT COMMAND
4590 423578 25031 0 2 0 syz-executor0
* 4590 131207 25031 0 7 0x4000000 syz-executor0
4590 265079 25031 0 3 0x4000080 fsleep syz-executor0
91550 138462 83288 0 3 0x82 nanosleep syz-executor1
25031 155477 83288 0 3 0x82 nanosleep syz-executor0
65437 377054 0 0 3 0x14200 bored sosplice
83288 488286 31561 0 3 0x82 thrsleep syz-fuzzer
83288 170258 31561 0 3 0x4000082 thrsleep syz-fuzzer
83288 47257 31561 0 3 0x4000082 thrsleep syz-fuzzer
83288 218182 31561 0 3 0x4000082 kqread syz-fuzzer
83288 24297 31561 0 3 0x4000082 thrsleep syz-fuzzer
83288 7891 31561 0 3 0x4000082 thrsleep syz-fuzzer
83288 475670 31561 0 3 0x4000082 thrsleep syz-fuzzer
83288 148136 31561 0 3 0x4000082 thrsleep syz-fuzzer
31561 263897 94719 0 3 0x10008a pause ksh
94719 271874 22515 0 3 0x92 select sshd
98846 182001 1 0 3 0x100083 ttyin getty
22515 401187 1 0 3 0x80 select sshd
50790 347042 34746 73 2 0x100090 syslogd
34746 374431 1 0 3 0x100082 netio syslogd
99149 295030 1 77 3 0x100090 poll dhclient
22614 365548 1 0 3 0x80 poll dhclient
54836 447922 0 0 2 0x14200 zerothread
37655 143226 0 0 3 0x14200 aiodoned aiodoned
26571 10089 0 0 3 0x14200 syncer update
11698 146066 0 0 3 0x14200 cleaner cleaner
33554 223969 0 0 3 0x14200 reaper reaper
17116 410319 0 0 3 0x14200 pgdaemon pagedaemon
78605 384068 0 0 3 0x14200 bored crynlk
40580 108133 0 0 3 0x14200 bored crypto
32508 240463 0 0 3 0x40014200 acpi0 acpi0
99569 99711 0 0 3 0x14200 bored softnet
43097 354810 0 0 3 0x14200 bored systqmp
17103 194658 0 0 3 0x14200 bored systq
80937 119723 0 0 3 0x40014200 bored softclock
57896 406018 0 0 3 0x40014200 idle0
1 26043 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 Kern Lim
devbuf 9524 6360K 6370K 78643K 12136 0 0
pcb 23 9K 11K 78643K 3127 0 0
rtable 100 3K 3K 78643K 1130 0 0
ifaddr 59 16K 19K 78643K 562 0 0
counters 19 16K 16K 78643K 19 0 0
ioctlops 0 0K 2K 78643K 60 0 0
iov 0 0K 32K 78643K 738 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1177 74K 76K 78643K 5183 0 0
UFS quota 1 32K 32K 78643K 1 0 0
UFS mount 5 36K 36K 78643K 5 0 0
shm 2 1K 5K 78643K 91 0 0
VM map 2 0K 0K 78643K 2 0 0
sem 12 0K 0K 78643K 465 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1777 193K 286K 78643K 12501 0 0
file desc 5 13K 25K 78643K 6267 0 0
sigio 0 0K 0K 78643K 160 0 0
proc 42 30K 55K 78643K 1267 0 0
subproc 64 65538K 67586K 78643K 284 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 806 0 0
in_multi 33 2K 2K 78643K 327 0 0
ether_multi 1 0K 0K 78643K 40 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 138 609K 609K 78643K 138 0 0
exec 0 0K 1K 78643K 660 0 0
pfkey data 0 0K 0K 78643K 2 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 113 22K 40K 78643K 15803 0 0
UVM aobj 130 8K 8K 78643K 136 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 203 0 0
NDP 12 0K 0K 78643K 162 0 0
temp 170 2347K 2419K 78643K 19696 0 0
kqueue 0 0K 0K 78643K 79 0 0
SYN cache 2 16K 16K 78643K 2 0 0
ddb> show all pools
Name Size Requests Fail Releases Pgreq Pgrel Npage Hiwat Minpg Maxpg
Idle
arp 64 10 0 6 1 0 1 1 0
8 0
inpcbpl 280 2634 0 2627 1 0 1 1 0
8 0
plimitpl 152 89 0 82 1 0 1 1 0
8 0
rtentry 112 95 0 55 2 0 2 2 0
8 0
syncache 264 4 0 4 1 1 0 1 0
8 0
tcpcb 544 916 0 912 1 0 1 1 0
8 0
nd6 48 16 0 12 1 0 1 1 0
8 0
swfcl 56 1 0 0 1 0 1 1 0
8 0
ppxss 1128 104 0 104 32 31 1 1 0
8 1
art_heap8 4096 1 0 0 1 0 1 1 0
8 0
art_heap4 256 459 0 272 12 0 12 12 0
8 0
art_table 32 460 0 272 2 0 2 2 0
8 0
art_node 16 94 0 60 1 0 1 1 0
8 0
sysvmsgpl 40 22 0 8 1 0 1 1 0
8 0
semapl 112 461 0 451 1 0 1 1 0
8 0
shmpl 112 134 0 6 4 0 4 4 0
8 0
dirhash 1024 17 0 0 3 0 3 3 0
8 0
dino1pl 128 13657 0 12156 50 1 49 49 0
8 0
ffsino 240 13657 0 12156 89 0 89 89 0
8 0
nchpl 144 22852 0 21273 59 0 59 59 0
8 0
uvmvnodes 72 6449 0 0 118 0 118 118 0
8 0
vnodes 200 6449 0 0 340 0 340 340 0
8 0
namei 1024 72375 0 72375 5 4 1 1 0
8 1
scsiplug 64 10 0 10 7 6 1 1 0
8 1
scxspl 192 73552 0 73552 35 32 3 6 0
8 3
sigapl 432 6416 0 6403 2 0 2 2 0
8 0
futexpl 56 99004 0 99003 6 5 1 1 0
8 0
knotepl 112 1755 0 1728 6 5 1 2 0
8 0
kqueuepl 104 2139 0 2137 1 0 1 1 0
8 0
pipepl 112 4024 0 4005 17 16 1 2 0
8 0
fdescpl 424 6417 0 6403 2 0 2 2 0
8 0
filepl 120 40946 0 40851 12 8 4 5 0
8 1
lockfpl 96 2026 0 2026 11 10 1 1 0
8 1
lockfspl 24 3618 0 3618 10 9 1 1 0
8 1
sessionpl 112 23 0 13 1 0 1 1 0
8 0
pgrppl 48 107 0 97 1 0 1 1 0
8 0
ucredpl 96 13748 0 13741 1 0 1 1 0
8 0
zombiepl 144 6403 0 6402 2 1 1 1 0
8 0
processpl 840 6431 0 6402 5 1 4 4 0
8 0
procpl 600 14878 0 14840 9 5 4 4 0
8 1
sosppl 128 107 0 107 26 25 1 1 0
8 1
sockpl 384 5573 0 5556 12 9 3 4 0
8 1
mcl64k 65536 3459 0 3459 319 318 1 64 0
8 1
mcl16k 16384 21 0 21 13 13 0 1 0
8 0
mcl12k 12288 122 0 122 23 22 1 1 0
8 1
mcl9k 9216 107 0 107 29 28 1 1 0
8 1
mcl8k 8192 139 0 139 25 25 0 1 0
8 0
mcl4k 4096 296 0 296 13 12 1 1 0
8 1
mcl2k2 2112 48 0 48 20 20 0 1 0
8 0
mcl2k 2048 49039 0 49009 11 6 5 8 0
8 0
mtagpl 80 2 0 2 1 1 0 1 0
8 0
mbufpl 256 113118 0 113044 160 152 8 37 0
8 0
bufpl 256 17615 0 11144 405 0 405 405 0
8 0
anonpl 16 635572 0 627969 293 255 38 50 0
62 2
amapchunkpl 152 27495 0 27414 84 80 4 14 0
158 0
amappl16 192 37469 0 37065 346 323 23 34 0
8 2
amappl15 184 1425 0 1424 1 0 1 1 0
8 0
amappl14 176 266 0 266 2 2 0 1 0
8 0
amappl13 168 583 0 576 1 0 1 1 0
8 0
amappl12 160 3738 0 3738 3 3 0 1 0
8 0
amappl11 152 215 0 206 1 0 1 1 0
8 0
amappl10 144 559 0 557 1 0 1 1 0
8 0
amappl9 136 316 0 314 1 0 1 1 0
8 0
amappl8 128 3978 0 3927 2 0 2 2 0
8 0
amappl7 120 596 0 585 1 0 1 1 0
8 0
amappl6 112 315 0 306 1 0 1 1 0
8 0
amappl5 104 1680 0 1669 1 0 1 1 0
8 0
amappl4 96 323 0 299 2 1 1 2 0
8 0
amappl3 88 585 0 579 1 0 1 1 0
8 0
amappl2 80 63009 0 62958 2 0 2 2 0
8 0
amappl1 72 120722 0 120300 28 19 9 19 0
8 0
amappl 72 15194 0 15162 1 0 1 1 0
75 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 135 0 6 3 0 3 3 0
8 0
uaddrrnd 24 6417 0 6403 1 0 1 1 0
8 0
uaddrbest 32 2 0 0 1 0 1 1 0
8 0
uaddr 24 6417 0 6403 1 0 1 1 0
8 0
vmmpekpl 168 43697 0 43674 2 0 2 2 0
8 0
vmmpepl 168 656367 0 655000 317 251 66 76 0
357 2
vmsppl 264 6416 0 6403 4 3 1 2 0
8 0
pdppl 4096 12840 0 12806 8 3 5 6 0
8 0
pvpl 32 1960748 0 1949565 701 542 159 232 0 265
68
pmappl 192 6416 0 6403 1 0 1 1 0
8 0
extentpl 40 39 0 25 1 0 1 1 0
8 0
phpool 112 1067 0 535 19 1 18 18 0
8 0


---
This bug 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 bug report. See:
https://goo.gl/tpsmEJ#bug-status-tracking for how to communicate with
syzbot.

syzbot

unread,
Jan 28, 2019, 5:58:05 AM1/28/19
to syzkaller-o...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: c41c16f02568 The test sshd_config in in $OBJ.
git tree: openbsd
console output: https://syzkaller.appspot.com/x/log.txt?x=15c7875f400000
kernel config: https://syzkaller.appspot.com/x/.config?x=3303344588104330
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=178cffcf400000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1688bf90c00000

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

uvm_fault(0xfffffd806e90e2d8, 0x28, 0, 2) -> e
kernel: page fault trap, code=0
Stopped at wsmux_do_ioctl+0x6ba: movq %rax,0x10(%rdx,%r15,8)
ddb{0}>
ddb{0}> set $lines = 0
ddb{0}> show panic
kernel page fault
uvm_fault(0xfffffd806e90e2d8, 0x28, 0, 2) -> e
wsmux_do_ioctl(ee79b6071e14d62b,80185760,fffffd806dc2f580,f,fffffd807f7c7ba0)
at
wsmux_do_ioctl+0x6ba sys/dev/wscons/wsmux.c:404
end trace frame: 0xffff800020c22f10, count: 0
ddb{0}> trace
wsmux_do_ioctl(ee79b6071e14d62b,80185760,fffffd806dc2f580,f,fffffd807f7c7ba0)
at
wsmux_do_ioctl+0x6ba sys/dev/wscons/wsmux.c:404
VOP_IOCTL(5636c2c0f7c1dde2,80185760,fffffd80741ef260,ffff800020b74e18,fffffd806dc2f580,ffff800020b74e18)
at
VOP_IOCTL+0x80 sys/kern/vfs_vops.c:290
vn_ioctl(22cc9d2c988fcff,fffffd80741ef260,ffff800020b74e18,18) at
vn_ioctl+0xc5
sys/kern/vfs_vnops.c:512sys_ioctl(b503842e34188979,0,ffff800020b74e18) at
sys_ioctl+0x652
syscall(68b32b9fc24c344b) at syscall+0x5a0 mi_syscall
sys/sys/syscall_mi.h:99 [inline]
syscall(68b32b9fc24c344b) at syscall+0x5a0 sys/arch/amd64/amd64/trap.c:583
Xsyscall(6,0,e4763a350c8,0,e4763a350a8,e4763a350a0) at Xsyscall+0x128
end of kernel
end trace frame: 0xe499ac51a50, count: -6
ddb{0}> show registers
rdi 0xff
rsi 0x2
rbp 0xffff800020c22e90
rbx 0x2
rdx 0
rcx 0x1
rax 0x3
r8 0xffffffff815384e0 wsmux_do_ioctl+0x1e0
r9 0x7
r10 0xc4eb83199e035252
r11 0x114bc7164b73d443
r12 0xffff800000026f50
r13 0
r14 0xffff800020c23040
r15 0x3
rip 0xffffffff815389ba wsmux_do_ioctl+0x6ba
cs 0x8
rflags 0x10297 __ALIGN_SIZE+0xf297
rsp 0xffff800020c22e40
ss 0x10
wsmux_do_ioctl+0x6ba: movq %rax,0x10(%rdx,%r15,8)
ddb{0}> show proc
PROC (syz-executor9909) pid=420318 stat=onproc
flags process=0 proc=4000000<THREAD>
pri=51, usrpri=51, nice=20
forw=0xffffffffffffffff, list=0xffff800020b74260,0xffff800020b75080
process=0xffff800020bcad38 user=0xffff800020c1e000,
vmspace=0xfffffd806e90e2d8
estcpu=1, cpticks=4, pctcpu=0.98
user=0, sys=0, intr=0
ddb{0}> ps
PID TID PPID UID S FLAGS WAIT COMMAND
69030 348331 55491 0 2 0 syz-executor9909
*69030 420318 55491 0 7 0x4000000 syz-executor9909
69030 436165 55491 0 3 0x4000080 fsleep syz-executor9909
32630 358330 49290 0 2 0 syz-executor9909
32630 367158 49290 0 3 0x4000080 fsleep syz-executor9909
32630 468459 49290 0 3 0x4000080 fsleep syz-executor9909
49290 305927 8066 0 3 0x80 nanosleep syz-executor9909
55491 442504 8066 0 3 0x80 nanosleep syz-executor9909
8066 287238 48578 0 3 0x82 nanosleep syz-executor9909
48578 233777 68021 0 3 0x10008a pause ksh
68021 18953 58919 0 3 0x92 select sshd
13705 478653 1 0 3 0x100083 ttyin getty
58919 470461 1 0 3 0x80 select sshd
65885 189643 48888 73 7 0x100090 syslogd
48888 13318 1 0 3 0x100082 netio syslogd
66029 326756 1 77 3 0x100090 poll dhclient
34691 113779 1 0 3 0x80 poll dhclient
81913 99959 0 0 2 0x14200 zerothread
61080 136206 0 0 3 0x14200 aiodoned aiodoned
63388 41938 0 0 3 0x14200 syncer update
71473 105061 0 0 3 0x14200 cleaner cleaner
29525 10284 0 0 3 0x14200 reaper reaper
79326 417329 0 0 3 0x14200 pgdaemon pagedaemon
8239 317961 0 0 3 0x14200 bored crynlk
97430 111889 0 0 3 0x14200 bored crypto
4087 510994 0 0 3 0x40014200 acpi0 acpi0
11957 156260 0 0 3 0x40014200 idle1
79115 437826 0 0 3 0x14200 bored softnet
5909 422232 0 0 3 0x14200 bored systqmp
5492 205634 0 0 3 0x14200 bored systq
91342 417038 0 0 3 0x40014200 bored softclock
85271 421340 0 0 3 0x40014200 idle0
1 105146 0 0 3 0x82 wait init
0 0 -1 0 3 0x10200 scheduler swapper
ddb{0}> show all locks
Process 69030 (syz-executor9909) thread 0xffff800020b74e18 (420318)
exclusive kernel_lock &kernel_lock r = 1 (0xffffffff8230c478) locked @
/syzkaller/managers/multicore/kernel/sys/arch/amd64/amd64/trap.c:161
ddb{0}> show malloc
Type InUse MemUse HighUse Limit Requests Type Lim Kern Lim
devbuf 9442 6315K 6323K 78643K 10531 0 0
pcb 23 9K 9K 78643K 55 0 0
rtable 61 2K 2K 78643K 115 0 0
ifaddr 21 7K 7K 78643K 21 0 0
counters 39 33K 33K 78643K 39 0 0
ioctlops 0 0K 2K 78643K 13 0 0
mount 1 1K 1K 78643K 1 0 0
vnodes 1166 73K 73K 78643K 1173 0 0
UFS quota 1 32K 32K 78643K 1 0 0
UFS mount 5 36K 36K 78643K 5 0 0
shm 2 1K 1K 78643K 2 0 0
VM map 2 1K 1K 78643K 2 0 0
sem 2 0K 0K 78643K 2 0 0
dirhash 12 2K 2K 78643K 12 0 0
ACPI 1792 194K 288K 78643K 12592 0 0
file desc 1 0K 0K 78643K 1 0 0
proc 40 38K 46K 78643K 201 0 0
NFS srvsock 1 0K 0K 78643K 1 0 0
NFS daemon 1 16K 16K 78643K 1 0 0
in_multi 11 0K 0K 78643K 11 0 0
ether_multi 1 0K 0K 78643K 1 0 0
ISOFS mount 1 32K 32K 78643K 1 0 0
MSDOSFS mount 1 16K 16K 78643K 1 0 0
ttys 18 79K 79K 78643K 18 0 0
exec 0 0K 1K 78643K 149 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 58 3K 3K 78643K 666 0 0
UVM aobj 2 2K 2K 78643K 2 0 0
memdesc 1 4K 4K 78643K 1 0 0
crypto data 1 1K 1K 78643K 1 0 0
NDP 3 0K 0K 78643K 3 0 0
temp 30 2347K 2411K 78643K 1690 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 2 0 0 1 0 1 1 0
8 0
inpcbpl 280 22 0 16 1 0 1 1 0
8 0
plimitpl 152 13 0 8 1 0 1 1 0
8 0
plcache 128 20 0 0 1 0 1 1 0
8 0
rtentry 112 23 0 1 1 0 1 1 0
8 0
syncache 264 5 0 5 1 0 1 1 0
8 1
tcpcb 544 8 0 5 1 0 1 1 0
8 0
art_heap8 4096 1 0 0 1 0 1 1 0
8 0
art_heap4 256 96 0 0 6 0 6 6 0
8 0
art_table 32 97 0 0 1 0 1 1 0
8 0
art_node 16 22 0 2 1 0 1 1 0
8 0
dirhash 1024 17 0 0 3 0 3 3 0
8 0
dino1pl 128 1385 0 20 45 0 45 45 0
8 0
ffsino 272 1385 0 20 92 0 92 92 0
8 0
nchpl 144 1555 0 30 57 0 57 57 0
8 0
uvmvnodes 72 1394 0 0 26 0 26 26 0
8 0
vnodes 200 1394 0 0 74 0 74 74 0
8 0
namei 1024 3270 0 3270 2 1 1 1 0
8 1
percpumem 16 30 0 0 1 0 1 1 0
8 0
scxspl 192 2367 0 2367 8 2 6 6 0
8 6
sigapl 432 179 0 165 2 0 2 2 0
8 0
futexpl 56 14 0 11 1 0 1 1 0
8 0
knotepl 112 5 0 0 1 0 1 1 0
8 0
kqueuepl 104 1 0 0 1 0 1 1 0
8 0
pipepl 112 114 0 107 2 1 1 1 0
8 0
fdescpl 488 180 0 165 2 0 2 2 0
8 0
filepl 152 814 0 771 2 0 2 2 0
8 0
lockfpl 96 9 0 8 2 1 1 1 0
8 0
lockfspl 24 5 0 4 2 1 1 1 0
8 0
sessionpl 112 17 0 9 1 0 1 1 0
8 0
pgrppl 48 17 0 9 1 0 1 1 0
8 0
ucredpl 96 47 0 40 1 0 1 1 0
8 0
zombiepl 144 165 0 165 2 1 1 1 0
8 1
processpl 840 194 0 165 4 0 4 4 0
8 0
procpl 600 202 0 169 3 0 3 3 0
8 0
sockpl 384 64 0 48 2 0 2 2 0
8 0
mcl4k 4096 3 0 0 1 0 1 1 0
8 0
mcl2k 2048 67 0 0 9 0 9 9 0
8 0
mtagpl 80 1 0 0 1 0 1 1 0
8 0
mbufpl 256 84 0 0 6 0 6 6 0
8 0
bufpl 256 2013 0 261 110 0 110 110 0
8 0
anonpl 16 16993 0 15784 6 1 5 6 0
125 0
amapchunkpl 152 507 0 460 2 0 2 2 0
158 0
amappl16 192 88 0 82 1 0 1 1 0
8 0
amappl15 184 1 0 0 1 0 1 1 0
8 0
amappl14 176 1 0 1 1 1 0 1 0
8 0
amappl13 168 16 0 13 1 0 1 1 0
8 0
amappl12 160 11 0 11 1 1 0 1 0
8 0
amappl11 152 171 0 162 1 0 1 1 0
8 0
amappl10 144 45 0 45 2 1 1 1 0
8 1
amappl9 136 209 0 208 1 0 1 1 0
8 0
amappl8 128 110 0 98 1 0 1 1 0
8 0
amappl7 120 30 0 25 1 0 1 1 0
8 0
amappl6 112 43 0 39 1 0 1 1 0
8 0
amappl5 104 133 0 123 1 0 1 1 0
8 0
amappl4 96 258 0 238 1 0 1 1 0
8 0
amappl3 88 112 0 106 1 0 1 1 0
8 0
amappl2 80 566 0 511 2 0 2 2 0
8 0
amappl1 72 11674 0 11238 15 5 10 15 0
8 0
amappl 72 377 0 350 1 0 1 1 0
75 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 1 0 0 1 0 1 1 0
8 0
uaddrrnd 24 180 0 165 1 0 1 1 0
8 0
uaddrbest 32 2 0 0 1 0 1 1 0
8 0
uaddr 24 180 0 165 1 0 1 1 0
8 0
vmmpekpl 168 5131 0 5111 1 0 1 1 0
8 0
vmmpepl 168 23623 0 22758 53 15 38 43 0
357 0
vmsppl 360 179 0 165 2 0 2 2 0
8 0
pdppl 4096 367 0 330 5 0 5 5 0
8 0
pvpl 32 70358 0 67411 30 4 26 26 0
265 2
pmappl 224 179 0 165 1 0 1 1 0
8 0
extentpl 40 39 0 25 1 0 1 1 0
8 0
phpool 112 238 0 3 7 0 7 7 0
8 0
ddb{0}>

Anton Lindqvist

unread,
Feb 1, 2019, 12:27:06 PM2/1/19
to syzbot, syzkaller-o...@googlegroups.com
#syz fix: In wskbdclose(), use the same logic as in wskbdopen() to determine if the device was opened in write-only mode. Relying on me_evar being NULL does not work if the wskbd device was opened first followed by opening a wsmux device. Closing the wskbd device first at this stage would cause the wscons_event queue inherited from the wsmux device to be freed. This in turn could cause a panic if an ioctl(WSMUXIO_INJECTEVENT) command is issued to the wsmux device.
Reply all
Reply to author
Forward
0 new messages