kernel BUG in bio_split

23 views
Skip to first unread message

syzbot

unread,
Jun 17, 2021, 9:31:18 PM6/17/21
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 013507ea ANDROID: kasan: fix interoperability with KFENCE
git tree: android12-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=1402280c300000
kernel config: https://syzkaller.appspot.com/x/.config?x=f219d7cdacd06b9a
dashboard link: https://syzkaller.appspot.com/bug?extid=7fac146f17f1d32e86e3
compiler: Debian clang version 11.0.1-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+7fac14...@syzkaller.appspotmail.com

------------[ cut here ]------------
kernel BUG at block/bio.c:1901!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 28199 Comm: systemd-udevd Not tainted 5.4.125-syzkaller-00208-g013507ea12a6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:bio_split+0x17e/0x190 block/bio.c:1901
Code: ff ff ff 4c 89 e7 e8 61 f3 78 ff e9 55 ff ff ff 89 d9 80 e1 07 fe c1 38 c1 7c 8c 48 89 df e8 49 f3 78 ff eb 82 e8 92 33 4a ff <0f> 0b e8 8b 33 4a ff 0f 0b 66 0f 1f 84 00 00 00 00 00 55 41 57 41
RSP: 0018:ffff8881d2aa6de8 EFLAGS: 00010293
RAX: ffffffff821b1c0e RBX: 0000000000000000 RCX: ffff888186d5ee40
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: ffffffff821b1ab6 R09: ffff8881d2aa6f20
R10: ffffed103a554de6 R11: 0000000000000000 R12: ffff88817a821000
R13: dffffc0000000000 R14: ffff8881f050eb38 R15: 0000000000000c00
FS: 00007facb43ee8c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000563f4c CR3: 0000000188d95000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__blk_queue_split+0xf3b/0x1580 block/blk-merge.c:281
blk_mq_make_request+0x1cf/0x2290 block/blk-mq.c:1996
generic_make_request+0x3d3/0xda0 block/blk-core.c:1076
submit_bio+0x146/0x5d0 block/blk-core.c:1203
mpage_bio_submit+0x2b5/0x500 fs/mpage.c:102
mpage_readpages+0x47c/0x500 fs/mpage.c:446
read_pages+0x118/0x400 mm/readahead.c:126
__do_page_cache_readahead+0x470/0x510 mm/readahead.c:212
force_page_cache_readahead mm/readahead.c:243 [inline]
page_cache_sync_readahead+0x339/0x3b0 mm/readahead.c:522
generic_file_buffered_read mm/filemap.c:2070 [inline]
generic_file_read_iter+0x676/0x2120 mm/filemap.c:2343
blkdev_read_iter+0x12a/0x180 fs/block_dev.c:2043
call_read_iter include/linux/fs.h:1965 [inline]
new_sync_read fs/read_write.c:414 [inline]
__vfs_read+0x5e9/0x770 fs/read_write.c:427
vfs_read+0x161/0x370 fs/read_write.c:461
ksys_read+0x186/0x2b0 fs/read_write.c:587
do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7facb3534210
Code: 73 01 c3 48 8b 0d 98 7d 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d b9 c1 20 00 00 75 10 b8 00 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 4e fc ff ff 48 89 04 24
RSP: 002b:00007ffdb9e18f08 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 0000556b3a119520 RCX: 00007facb3534210
RDX: 0000000000000400 RSI: 0000556b3a119548 RDI: 000000000000000f
RBP: 0000556b3a11ad60 R08: 00007facb351ef58 R09: 0000000000000430
R10: 0000556b3a119538 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000400 R14: 0000556b3a11adb0 R15: 0000000000000400
Modules linked in:
---[ end trace 407cc50a348aade8 ]---
RIP: 0010:bio_split+0x17e/0x190 block/bio.c:1901
Code: ff ff ff 4c 89 e7 e8 61 f3 78 ff e9 55 ff ff ff 89 d9 80 e1 07 fe c1 38 c1 7c 8c 48 89 df e8 49 f3 78 ff eb 82 e8 92 33 4a ff <0f> 0b e8 8b 33 4a ff 0f 0b 66 0f 1f 84 00 00 00 00 00 55 41 57 41
RSP: 0018:ffff8881d2aa6de8 EFLAGS: 00010293
RAX: ffffffff821b1c0e RBX: 0000000000000000 RCX: ffff888186d5ee40
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: ffffffff821b1ab6 R09: ffff8881d2aa6f20
R10: ffffed103a554de6 R11: 0000000000000000 R12: ffff88817a821000
R13: dffffc0000000000 R14: ffff8881f050eb38 R15: 0000000000000c00
FS: 00007facb43ee8c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000970004 CR3: 0000000188d95000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
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,
Jun 17, 2021, 10:16:19 PM6/17/21
to syzkaller-a...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 013507ea ANDROID: kasan: fix interoperability with KFENCE
git tree: android12-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=17bc8548300000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14cfc910300000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=108d93f0300000

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

------------[ cut here ]------------
kernel BUG at block/bio.c:1901!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 352 Comm: systemd-udevd Not tainted 5.4.125-syzkaller-00208-g013507ea12a6 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:bio_split+0x17e/0x190 block/bio.c:1901
Code: ff ff ff 4c 89 e7 e8 61 f3 78 ff e9 55 ff ff ff 89 d9 80 e1 07 fe c1 38 c1 7c 8c 48 89 df e8 49 f3 78 ff eb 82 e8 92 33 4a ff <0f> 0b e8 8b 33 4a ff 0f 0b 66 0f 1f 84 00 00 00 00 00 55 41 57 41
RSP: 0018:ffff8881e6ac6de8 EFLAGS: 00010293
RAX: ffffffff821b1c0e RBX: 0000000000000000 RCX: ffff8881e62c3f00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000000 R08: ffffffff821b1ab6 R09: ffff8881e6ac6f20
R10: ffffed103cd58de6 R11: 0000000000000000 R12: ffff8881ec146140
R13: dffffc0000000000 R14: ffff8881f0409728 R15: 0000000000000c00
FS: 00007fa99e9438c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff0050dbd8 CR3: 00000001e5dd5000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__blk_queue_split+0xf3b/0x1580 block/blk-merge.c:281
blk_mq_make_request+0x1cf/0x2290 block/blk-mq.c:1996
generic_make_request+0x3d3/0xda0 block/blk-core.c:1076
submit_bio+0x146/0x5d0 block/blk-core.c:1203
mpage_bio_submit+0x2b5/0x500 fs/mpage.c:102
mpage_readpages+0x47c/0x500 fs/mpage.c:446
read_pages+0x118/0x400 mm/readahead.c:126
__do_page_cache_readahead+0x470/0x510 mm/readahead.c:212
force_page_cache_readahead mm/readahead.c:243 [inline]
page_cache_sync_readahead+0x339/0x3b0 mm/readahead.c:522
generic_file_buffered_read mm/filemap.c:2070 [inline]
generic_file_read_iter+0x676/0x2120 mm/filemap.c:2343
blkdev_read_iter+0x12a/0x180 fs/block_dev.c:2043
call_read_iter include/linux/fs.h:1965 [inline]
new_sync_read fs/read_write.c:414 [inline]
__vfs_read+0x5e9/0x770 fs/read_write.c:427
vfs_read+0x161/0x370 fs/read_write.c:461
ksys_read+0x186/0x2b0 fs/read_write.c:587
do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7fa99da89210
Code: 73 01 c3 48 8b 0d 98 7d 20 00 f7 d8 64 89 01 48 83 c8 ff c3 66 0f 1f 44 00 00 83 3d b9 c1 20 00 00 75 10 b8 00 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 4e fc ff ff 48 89 04 24
RSP: 002b:00007fff00510db8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 000055b150900fa0 RCX: 00007fa99da89210
RDX: 0000000000000100 RSI: 000055b150900fc8 RDI: 000000000000000f
RBP: 000055b1508f7a10 R08: 0000000000000000 R09: 0000000000000130
R10: 000055b150900fb8 R11: 0000000000000246 R12: 0000000000000000
R1

Reply all
Reply to author
Forward
0 new messages