general protection fault in ioctl

5 views
Skip to first unread message

syzbot

unread,
Jun 13, 2022, 10:38:33 AM6/13/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: b8f3be299d51 Linux 4.14.282
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=144fd920080000
kernel config: https://syzkaller.appspot.com/x/.config?x=6f19bc3398ea47b8
dashboard link: https://syzkaller.appspot.com/bug?extid=f97c604a89b38817455c
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

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

create_huge_pmd mm/memory.c:3997 [inline]
__handle_mm_fault+0x2ac4/0x4620 mm/memory.c:4200
handle_mm_fault+0x455/0x9c0 mm/memory.c:4266
__do_page_fault+0x549/0xad0 arch/x86/mm/fault.c:1442
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
page_fault+0x25/0x50 arch/x86/entry/entry_64.S:1123
RIP: 0010:__put_user_4+0x1c/0x30 arch/x86/lib/putuser.S:70
CPU: 0 PID: 30285 Comm: syz-executor.2 Not tainted 4.14.282-syzkaller #0
RSP: 0018:ffff88807b1efcf8 EFLAGS: 00050297
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff88807caa6580 task.stack: ffff88809f6d0000
RAX: 0000000000000000 RBX: 00007fffffffeffd RCX: 0000000020000000
RIP: 0010:vhost_umem_interval_tree_iter_first drivers/vhost/vhost.c:53 [inline]
RIP: 0010:vhost_del_umem_range drivers/vhost/vhost.c:977 [inline]
RIP: 0010:vhost_process_iotlb_msg drivers/vhost/vhost.c:1048 [inline]
RIP: 0010:vhost_chr_write_iter drivers/vhost/vhost.c:1077 [inline]
RIP: 0010:vhost_chr_write_iter+0x873/0x1100 drivers/vhost/vhost.c:1061
RDX: 0000000000000043 RSI: ffffffff86107d6b RDI: 0000000000000282
RSP: 0018:ffff88809f6d7c00 EFLAGS: 00010246
RBP: ffff888094232fc0 R08: ffffffff8b9a8dc0 R09: 0000000000000000
R10: 0000000000000000 R11: ffff88809a4b8040 R12: 0000000000000000
RAX: dffffc0000000000 RBX: ffff88807cc6bb00 RCX: 0000000000000000
R13: 0000000020000000 R14: 0000000000000000 R15: 0000000000000000
RDX: 0000000000000002 RSI: 0000000000000001 RDI: ffff88807cc6bbc0
RBP: ffffed100f98d771 R08: 0000000000000000 R09: 0000000000040659
tcp_ioctl+0x266/0x590 net/ipv4/tcp.c:624
R10: ffff88807caa6e58 R11: ffff88807caa6580 R12: 0000000000000002
R13: 0000000000000000 R14: dffffc0000000000 R15: 1ffff11013edaf87
inet6_ioctl+0xd0/0x1a0 net/ipv6/af_inet6.c:549
FS: 00007ff05cb12700(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
sock_do_ioctl net/socket.c:974 [inline]
sock_ioctl+0x2cc/0x4c0 net/socket.c:1071
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f10f92b6090 CR3: 0000000093b49000 CR4: 00000000003406f0
vfs_ioctl fs/ioctl.c:46 [inline]
file_ioctl fs/ioctl.c:500 [inline]
do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
SYSC_ioctl fs/ioctl.c:701 [inline]
SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692
call_write_iter include/linux/fs.h:1780 [inline]
new_sync_write fs/read_write.c:469 [inline]
__vfs_write+0x44c/0x630 fs/read_write.c:482
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
vfs_write+0x17f/0x4d0 fs/read_write.c:544
RIP: 0033:0x7f3f80382109
SYSC_write fs/read_write.c:590 [inline]
SyS_write+0xf2/0x210 fs/read_write.c:582
RSP: 002b:00007f3f7ecf7168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f3f80494f60 RCX: 00007f3f80382109
RDX: 0000000020000000 RSI: 000000000000541b RDI: 0000000000000003
RBP: 00007f3f7ecf71d0 R08: 0000000000000000 R09: 0000000000000000
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
entry_SYSCALL_64_after_hwframe+0x46/0xbb
R13: 00007ffd96fe183f R14: 00007f3f7ecf7300 R15: 0000000000022000
RIP: 0033:0x7ff05e19d109
RSP: 002b:00007ff05cb12168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007ff05e2aff60 RCX: 00007ff05e19d109
RDX: 0000000000000048 RSI: 0000000020000000 RDI: 0000000000000003
RBP: 00007ff05e1f70ad R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffdf120cf4f R14: 00007ff05cb12300 R15: 0000000000022000
Code: ff df 48 89 f9 48 c1 e9 03 80 3c 01 00 0f 85 c6 06 00 00 4c 8b ab c0 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 89 e9 48 c1 e9 03 <80> 3c 01 00 0f 85 8f 06 00 00 49 8b 6d 00 48 85 ed 0f 84 e4 03
RIP: vhost_umem_interval_tree_iter_first drivers/vhost/vhost.c:53 [inline] RSP: ffff88809f6d7c00
RIP: vhost_del_umem_range drivers/vhost/vhost.c:977 [inline] RSP: ffff88809f6d7c00
RIP: vhost_process_iotlb_msg drivers/vhost/vhost.c:1048 [inline] RSP: ffff88809f6d7c00
RIP: vhost_chr_write_iter drivers/vhost/vhost.c:1077 [inline] RSP: ffff88809f6d7c00
RIP: vhost_chr_write_iter+0x873/0x1100 drivers/vhost/vhost.c:1061 RSP: ffff88809f6d7c00
---[ end trace 3bafc582e43c950a ]---
----------------
Code disassembly (best guess), 1 bytes skipped:
0: df 48 89 fisttps -0x77(%rax)
3: f9 stc
4: 48 c1 e9 03 shr $0x3,%rcx
8: 80 3c 01 00 cmpb $0x0,(%rcx,%rax,1)
c: 0f 85 c6 06 00 00 jne 0x6d8
12: 4c 8b ab c0 00 00 00 mov 0xc0(%rbx),%r13
19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
20: fc ff df
23: 4c 89 e9 mov %r13,%rcx
26: 48 c1 e9 03 shr $0x3,%rcx
* 2a: 80 3c 01 00 cmpb $0x0,(%rcx,%rax,1) <-- trapping instruction
2e: 0f 85 8f 06 00 00 jne 0x6c3
34: 49 8b 6d 00 mov 0x0(%r13),%rbp
38: 48 85 ed test %rbp,%rbp
3b: 0f .byte 0xf
3c: 84 e4 test %ah,%ah
3e: 03 .byte 0x3


---
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 11, 2022, 10:38:33 AM10/11/22
to syzkaller...@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