[block?] general protection fault in blk_mq_sched_bio_merge

4 views
Skip to first unread message

syzbot

unread,
Apr 27, 2023, 5:44:56 PM4/27/23
to syzkaller-upst...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 32f7ad0fbe75 Merge tag 'drm-next-2023-04-27' of git://anon..
git tree: upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=143036f0280000
kernel config: https://syzkaller.appspot.com/x/.config?x=fb9715c2850514fd
dashboard link: https://syzkaller.appspot.com/bug?extid=775472b2c41600dd7b22
compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2
CC: [ax...@kernel.dk linux...@vger.kernel.org linux-...@vger.kernel.org]

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

general protection fault, probably for non-canonical address 0xdffffc0000000027: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000138-0x000000000000013f]
CPU: 2 PID: 5580 Comm: udevd Not tainted 6.3.0-syzkaller-07927-g32f7ad0fbe75 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
RIP: 0010:blk_mq_sched_bio_merge+0x1cd/0x400 block/blk-mq-sched.c:356
Code: 80 3c 02 00 0f 85 8a 01 00 00 4c 8b bc dd 90 00 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d bf 38 01 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 bd 01 00 00 49 8b 9f 38 01 00 00 31 ff 83 e3 01
RSP: 0018:ffffc90003127290 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000027 RSI: ffffffff83f61530 RDI: 0000000000000138
RBP: ffff88802c800000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000094001 R12: ffff88801f08f2d0
R13: ffff88802843b400 R14: 0000000000000001 R15: 0000000000000000
FS: 00007f3606ab6280(0000) GS:ffff88802c800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3606b88e6d CR3: 0000000068ddf000 CR4: 0000000000350ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
blk_mq_attempt_bio_merge block/blk-mq.c:2826 [inline]
blk_mq_attempt_bio_merge+0xea/0x110 block/blk-mq.c:2820
blk_mq_get_new_requests block/blk-mq.c:2847 [inline]
blk_mq_submit_bio+0x10e6/0x1f50 block/blk-mq.c:2954
__submit_bio+0xfc/0x310 block/blk-core.c:594
__submit_bio_noacct_mq block/blk-core.c:673 [inline]
submit_bio_noacct_nocheck+0x7f9/0xb40 block/blk-core.c:702
submit_bio_noacct+0x945/0x1a00 block/blk-core.c:801
mpage_bio_submit fs/mpage.c:64 [inline]
mpage_readahead+0x41c/0x580 fs/mpage.c:359
read_pages+0x1a2/0xd40 mm/readahead.c:161
page_cache_ra_unbounded+0x477/0x5e0 mm/readahead.c:270
do_page_cache_ra mm/readahead.c:300 [inline]
force_page_cache_ra+0x333/0x470 mm/readahead.c:331
page_cache_sync_ra+0x105/0x200 mm/readahead.c:705
page_cache_sync_readahead include/linux/pagemap.h:1210 [inline]
filemap_get_pages+0x28d/0x1620 mm/filemap.c:2598
filemap_read+0x35e/0xc70 mm/filemap.c:2693
blkdev_read_iter+0x3eb/0x760 block/fops.c:606
call_read_iter include/linux/fs.h:1848 [inline]
new_sync_read fs/read_write.c:389 [inline]
vfs_read+0x682/0x930 fs/read_write.c:470
ksys_read+0x12b/0x250 fs/read_write.c:613
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f3606716b6a
Code: 00 3d 00 00 41 00 75 0d 50 48 8d 3d 2d 08 0a 00 e8 ea 7d 01 00 31 c0 e9 07 ff ff ff 64 8b 04 25 18 00 00 00 85 c0 75 1b 0f 05 <48> 3d 00 f0 ff ff 76 6c 48 8b 15 8f a2 0d 00 f7 d8 64 89 02 48 83
RSP: 002b:00007fff7b25ee78 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 000003ffffff0000 RCX: 00007f3606716b6a
RDX: 0000000000000040 RSI: 000056107486cc88 RDI: 0000000000000009
RBP: 0000000000000040 R08: 000056107486cc60 R09: 0000000000000400
R10: 0000000000000015 R11: 0000000000000246 R12: 000056107486cc60
R13: 000056107486cc78 R14: 000056107484efd8 R15: 000056107484ef80
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:blk_mq_sched_bio_merge+0x1cd/0x400 block/blk-mq-sched.c:356
Code: 80 3c 02 00 0f 85 8a 01 00 00 4c 8b bc dd 90 00 00 00 48 b8 00 00 00 00 00 fc ff df 49 8d bf 38 01 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 bd 01 00 00 49 8b 9f 38 01 00 00 31 ff 83 e3 01
RSP: 0018:ffffc90003127290 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: 0000000000000001 RCX: 0000000000000000
RDX: 0000000000000027 RSI: ffffffff83f61530 RDI: 0000000000000138
RBP: ffff88802c800000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000094001 R12: ffff88801f08f2d0
R13: ffff88802843b400 R14: 0000000000000001 R15: 0000000000000000
FS: 00007f3606ab6280(0000) GS:ffff88802c800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f3606b88e6d CR3: 0000000068ddf000 CR4: 0000000000350ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1)
4: 0f 85 8a 01 00 00 jne 0x194
a: 4c 8b bc dd 90 00 00 mov 0x90(%rbp,%rbx,8),%r15
11: 00
12: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
19: fc ff df
1c: 49 8d bf 38 01 00 00 lea 0x138(%r15),%rdi
23: 48 89 fa mov %rdi,%rdx
26: 48 c1 ea 03 shr $0x3,%rdx
* 2a: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) <-- trapping instruction
2e: 0f 85 bd 01 00 00 jne 0x1f1
34: 49 8b 9f 38 01 00 00 mov 0x138(%r15),%rbx
3b: 31 ff xor %edi,%edi
3d: 83 e3 01 and $0x1,%ebx


---
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.

If the bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to change bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Jul 31, 2023, 2:17:41 AM7/31/23
to syzkaller-upst...@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