general protection fault in del_gendisk (2)

2 views
Skip to first unread message

syzbot

unread,
Apr 26, 2022, 8:53:25 PM4/26/22
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: e08dd85cc95e ANDROID: fix up abi issue with struct snd_pcm..
git tree: android12-5.10-lts
console output: https://syzkaller.appspot.com/x/log.txt?x=129dbbfcf00000
kernel config: https://syzkaller.appspot.com/x/.config?x=7d4273ae486e6ab0
dashboard link: https://syzkaller.appspot.com/bug?extid=64d76aa47f3672d5889c
compiler: Debian clang version 13.0.1-++20220126092033+75e33f71c2da-1~exp1~20220126212112.63, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10c453b2f00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10541bc8f00000

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

Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc119f7138 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000005816 RCX: 00007fda9370e079
RDX: 0000000000000000 RSI: 0000000000004c81 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: 00007ffc119f6bb0 R11: 0000000000000246 R12: 00007ffc119f714c
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
---[ end trace 32d74d475de6e590 ]---
general protection fault, probably for non-canonical address 0xdffffc000000001a: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x00000000000000d0-0x00000000000000d7]
CPU: 1 PID: 369 Comm: syz-executor222 Tainted: G W 5.10.110-syzkaller-01300-ge08dd85cc95e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:kill_device drivers/base/core.c:3361 [inline]
RIP: 0010:device_del+0xdf/0xf00 drivers/base/core.c:3389
Code: 20 42 80 3c 28 00 74 08 48 89 df e8 1b 1f df fe 4c 89 7c 24 48 41 bf d0 00 00 00 48 89 5c 24 18 4c 03 3b 4d 89 fc 49 c1 ec 03 <43> 8a 04 2c 84 c0 0f 85 0d 0d 00 00 41 0f b6 1f 89 de 83 e6 01 31
RSP: 0018:ffffc900002bfb60 EFLAGS: 00010202
RAX: 1ffff110232e1c1a RBX: ffff88811970e0d0 RCX: ffffffff84920db6
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc900002bfae0
RBP: ffffc900002bfc50 R08: dffffc0000000000 R09: fffff52000057f5d
R10: fffff52000057f5d R11: 1ffff92000057f5c R12: 000000000000001a
R13: dffffc0000000000 R14: ffff88811970e108 R15: 00000000000000d0
FS: 00005555574f2300(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fda9377f130 CR3: 00000001069a2000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
del_gendisk+0xbf2/0xe20 block/genhd.c:953
loop_remove+0x46/0xb0 drivers/block/loop.c:2185
loop_control_ioctl+0x67f/0x740 drivers/block/loop.c:2284
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+0x34/0x70 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7fda9370e079
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc119f7138 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 0000000000005816 RCX: 00007fda9370e079
RDX: 0000000000000000 RSI: 0000000000004c81 RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: 00007ffc119f6bb0 R11: 0000000000000246 R12: 00007ffc119f714c
R13: 431bde82d7b634db R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 32d74d475de6e591 ]---
RIP: 0010:kill_device drivers/base/core.c:3361 [inline]
RIP: 0010:device_del+0xdf/0xf00 drivers/base/core.c:3389
Code: 20 42 80 3c 28 00 74 08 48 89 df e8 1b 1f df fe 4c 89 7c 24 48 41 bf d0 00 00 00 48 89 5c 24 18 4c 03 3b 4d 89 fc 49 c1 ec 03 <43> 8a 04 2c 84 c0 0f 85 0d 0d 00 00 41 0f b6 1f 89 de 83 e6 01 31
RSP: 0018:ffffc900002bfb60 EFLAGS: 00010202
RAX: 1ffff110232e1c1a RBX: ffff88811970e0d0 RCX: ffffffff84920db6
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffc900002bfae0
RBP: ffffc900002bfc50 R08: dffffc0000000000 R09: fffff52000057f5d
R10: fffff52000057f5d R11: 1ffff92000057f5c R12: 000000000000001a
R13: dffffc0000000000 R14: ffff88811970e108 R15: 00000000000000d0
FS: 00005555574f2300(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fda9377f130 CR3: 00000001069a2000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 28 00 sub %al,(%rax)
2: 00 00 add %al,(%rax)
4: 75 05 jne 0xb
6: 48 83 c4 28 add $0x28,%rsp
a: c3 retq
b: e8 b1 14 00 00 callq 0x14c1
10: 90 nop
11: 48 89 f8 mov %rdi,%rax
14: 48 89 f7 mov %rsi,%rdi
17: 48 89 d6 mov %rdx,%rsi
1a: 48 89 ca mov %rcx,%rdx
1d: 4d 89 c2 mov %r8,%r10
20: 4d 89 c8 mov %r9,%r8
23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9
28: 0f 05 syscall
* 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction
30: 73 01 jae 0x33
32: c3 retq
33: 48 c7 c1 c0 ff ff ff mov $0xffffffffffffffc0,%rcx
3a: f7 d8 neg %eax
3c: 64 89 01 mov %eax,%fs:(%rcx)
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 can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches

Tadeusz Struk

unread,
May 5, 2022, 6:31:12 PM5/5/22
to syzbot+64d76a...@syzkaller.appspotmail.com, syzkaller
#syz invalid
Reply all
Reply to author
Forward
0 new messages