general protection fault in pending_reads_dispatch_ioctl

7 views
Skip to first unread message

syzbot

unread,
Dec 31, 2021, 12:45:20 PM12/31/21
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 9b28b48fb343 Merge 5.10.89 into android12-5.10-lts
git tree: android12-5.10-lts
console output: https://syzkaller.appspot.com/x/log.txt?x=1395392bb00000
kernel config: https://syzkaller.appspot.com/x/.config?x=194b6725650cc3e2
dashboard link: https://syzkaller.appspot.com/bug?extid=3818f2a1c2c0e58fd214
compiler: Debian clang version 11.0.1-2, GNU ld (GNU Binutils for Debian) 2.35.2

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

general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f]
CPU: 1 PID: 17230 Comm: syz-executor.2 Not tainted 5.10.89-syzkaller-00788-g9b28b48fb343 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ioctl_permit_fill fs/incfs/pseudo_files.c:153 [inline]
RIP: 0010:pending_reads_dispatch_ioctl+0x958/0x2c80 fs/incfs/pseudo_files.c:1026
Code: 4e 3f 63 ff 49 c7 c4 f9 ff ff ff 48 8b 5c 24 20 e9 1b 08 00 00 49 8d 5e 28 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 8a 1b 9d ff 48 c7 c0 c0 57 43 85 48
RSP: 0018:ffffc9000217fb60 EFLAGS: 00010206

RAX: 0000000000000005 RBX: 0000000000000028 RCX: dffffc0000000000
RDX: ffffc9000117b000 RSI: 000000000000001d RDI: 000000000000001e
RBP: ffffc9000217feb8 R08: ffffffff81b64e0b R09: 0000000000000003
R10: fffff5200042ffa5 R11: 0000000000000004 R12: 1ffff9200042ffa4
R13: 1ffff11021b0b094 R14: 0000000000000000 R15: ffff88810d8584a0
FS: 00007f1194513700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33022000 CR3: 000000015249d000 CR4: 00000000003526a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
vfs_ioctl fs/ioctl.c:48 [inline]
__do_sys_ioctl fs/ioctl.c:753 [inline]
__se_sys_ioctl+0x115/0x190 fs/ioctl.c:739
__x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:739
do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f119539ce99
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f1194513168 EFLAGS: 00000246
ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f11954aff60 RCX: 00007f119539ce99
RDX: 0000000020000000 RSI: 0000000040046721 RDI: 0000000000000004
RBP: 00007f11953f6ff1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd0fcdfe5f R14: 00007f1194513300 R15: 0000000000022000
Modules linked in:
---[ end trace 3bcc52a57e57e0e4 ]---
RIP: 0010:ioctl_permit_fill fs/incfs/pseudo_files.c:153 [inline]
RIP: 0010:pending_reads_dispatch_ioctl+0x958/0x2c80 fs/incfs/pseudo_files.c:1026
Code: 4e 3f 63 ff 49 c7 c4 f9 ff ff ff 48 8b 5c 24 20 e9 1b 08 00 00 49 8d 5e 28 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 8a 1b 9d ff 48 c7 c0 c0 57 43 85 48
RSP: 0018:ffffc9000217fb60 EFLAGS: 00010206

RAX: 0000000000000005 RBX: 0000000000000028 RCX: dffffc0000000000
RDX: ffffc9000117b000 RSI: 000000000000001d RDI: 000000000000001e
RBP: ffffc9000217feb8 R08: ffffffff81b64e0b R09: 0000000000000003
R10: fffff5200042ffa5 R11: 0000000000000004 R12: 1ffff9200042ffa4
R13: 1ffff11021b0b094 R14: 0000000000000000 R15: ffff88810d8584a0
FS: 00007f1194513700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005626dcea7000 CR3: 000000015249d000 CR4: 00000000003526a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 4e 3f rex.WRX (bad)
2: 63 ff movsxd %edi,%edi
4: 49 c7 c4 f9 ff ff ff mov $0xfffffffffffffff9,%r12
b: 48 8b 5c 24 20 mov 0x20(%rsp),%rbx
10: e9 1b 08 00 00 jmpq 0x830
15: 49 8d 5e 28 lea 0x28(%r14),%rbx
19: 48 89 d8 mov %rbx,%rax
1c: 48 c1 e8 03 shr $0x3,%rax
20: 48 b9 00 00 00 00 00 movabs $0xdffffc0000000000,%rcx
27: fc ff df
* 2a: 80 3c 08 00 cmpb $0x0,(%rax,%rcx,1) <-- trapping instruction
2e: 74 08 je 0x38
30: 48 89 df mov %rbx,%rdi
33: e8 8a 1b 9d ff callq 0xff9d1bc2
38: 48 c7 c0 c0 57 43 85 mov $0xffffffff854357c0,%rax
3f: 48 rex.W


---
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,
Dec 31, 2021, 12:56:15 PM12/31/21
to syzkaller-a...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 9b28b48fb343 Merge 5.10.89 into android12-5.10-lts
git tree: android12-5.10-lts
console output: https://syzkaller.appspot.com/x/log.txt?x=1747e9b3b00000
kernel config: https://syzkaller.appspot.com/x/.config?x=194b6725650cc3e2
dashboard link: https://syzkaller.appspot.com/bug?extid=3818f2a1c2c0e58fd214
compiler: Debian clang version 11.0.1-2, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13711b67b00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11dc6253b00000

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

general protection fault, probably for non-canonical address 0xdffffc0000000005: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000028-0x000000000000002f]
CPU: 1 PID: 365 Comm: syz-executor368 Not tainted 5.10.89-syzkaller-00788-g9b28b48fb343 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ioctl_permit_fill fs/incfs/pseudo_files.c:153 [inline]
RIP: 0010:pending_reads_dispatch_ioctl+0x958/0x2c80 fs/incfs/pseudo_files.c:1026
Code: 4e 3f 63 ff 49 c7 c4 f9 ff ff ff 48 8b 5c 24 20 e9 1b 08 00 00 49 8d 5e 28 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 8a 1b 9d ff 48 c7 c0 c0 57 43 85 48
RSP: 0018:ffffc90000b17b60 EFLAGS: 00010206
RAX: 0000000000000005 RBX: 0000000000000028 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000069662f2e RDI: 0000000000000040
RBP: ffffc90000b17eb8 R08: ffffffff81b64e0b R09: 0000000000000003
R10: fffff52000162fa5 R11: 0000000000000004 R12: 1ffff92000162fa4
R13: 1ffff11020ebe464 R14: 0000000000000000 R15: ffff8881075f2320
FS: 0000555556e453c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000001073ef000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
vfs_ioctl fs/ioctl.c:48 [inline]
__do_sys_ioctl fs/ioctl.c:753 [inline]
__se_sys_ioctl+0x115/0x190 fs/ioctl.c:739
__x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:739
do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f66aaf4bc49
Code: 28 c3 e8 5a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c4 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffedddae398 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffedddae3a8 RCX: 00007f66aaf4bc49
RDX: 0000000020000000 RSI: 0000000040046721 RDI: 0000000000000004
RBP: 00007ffedddae3a0 R08: 00007f66aaf0a1b0 R09: 00007f66aaf0a1b0
R10: 00007f66aaf0a1b0 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 30d26f19d5073862 ]---
RIP: 0010:ioctl_permit_fill fs/incfs/pseudo_files.c:153 [inline]
RIP: 0010:pending_reads_dispatch_ioctl+0x958/0x2c80 fs/incfs/pseudo_files.c:1026
Code: 4e 3f 63 ff 49 c7 c4 f9 ff ff ff 48 8b 5c 24 20 e9 1b 08 00 00 49 8d 5e 28 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df <80> 3c 08 00 74 08 48 89 df e8 8a 1b 9d ff 48 c7 c0 c0 57 43 85 48
RSP: 0018:ffffc90000b17b60 EFLAGS: 00010206
RAX: 0000000000000005 RBX: 0000000000000028 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000069662f2e RDI: 0000000000000040
RBP: ffffc90000b17eb8 R08: ffffffff81b64e0b R09: 0000000000000003
R10: fffff52000162fa5 R11: 0000000000000004 R12: 1ffff92000162fa4
R13: 1ffff11020ebe464 R14: 0000000000000000 R15: ffff8881075f2320
FS: 0000555556e453c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000001073ef000 CR4: 00000000003506a0
Reply all
Reply to author
Forward
0 new messages