WARNING in generic_make_request_checks

39 views
Skip to first unread message

syzbot

unread,
Apr 11, 2019, 2:22:06 AM4/11/19
to syzkaller...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: 4d552acf Linux 4.19.34
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11b794e3200000
kernel config: https://syzkaller.appspot.com/x/.config?x=c95a88291f095edd
dashboard link: https://syzkaller.appspot.com/bug?extid=708a53616245152d582d
compiler: gcc (GCC) 9.0.0 20181231 (experimental)

Unfortunately, I don't have any reproducer for this crash yet.

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+708a53...@syzkaller.appspotmail.com

------------[ cut here ]------------
generic_make_request: Trying to write to read-only block-device nullb0
(partno 0)
WARNING: CPU: 0 PID: 15589 at block/blk-core.c:2171 bio_check_ro
block/blk-core.c:2171 [inline]
WARNING: CPU: 0 PID: 15589 at block/blk-core.c:2171
generic_make_request_checks+0x2006/0x2550 block/blk-core.c:2276
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 15589 Comm: syz-executor.2 Not tainted 4.19.34 #2
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x172/0x1f0 lib/dump_stack.c:113
panic+0x263/0x51d kernel/panic.c:185
__warn.cold+0x20/0x54 kernel/panic.c:540
report_bug+0x263/0x2b0 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x204/0x360 arch/x86/kernel/traps.c:296
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:997
RIP: 0010:bio_check_ro block/blk-core.c:2171 [inline]
RIP: 0010:generic_make_request_checks+0x2006/0x2550 block/blk-core.c:2276
Code: 85 48 05 00 00 45 8b b6 e4 04 00 00 48 8d 73 a0 4c 89 e7 e8 cc 57 06
00 48 c7 c7 e0 fe 7f 87 48 89 c6 44 89 f2 e8 b8 cd 2f fe <0f> 0b 48 8b 95
30 ff ff ff 48 b8 00 00 00 00 00 fc ff df 48 c1 ea
RSP: 0018:ffff888064996f08 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff888064996fd8 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8155d206 RDI: ffffed100c932dd3
RBP: ffff888064997000 R08: ffff888071350580 R09: ffffed1015d04fe9
R10: ffffed1015d04fe8 R11: ffff8880ae827f47 R12: ffff888064a872c0
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000
generic_make_request+0x24c/0x12d0 block/blk-core.c:2400
submit_bio+0xba/0x480 block/blk-core.c:2565
submit_bh_wbc+0x5dc/0x790 fs/buffer.c:3095
__block_write_full_page+0x771/0x1020 fs/buffer.c:1766
block_write_full_page+0x21f/0x270 fs/buffer.c:2956
blkdev_writepage+0x25/0x30 fs/block_dev.c:581
__writepage+0x67/0xe0 mm/page-writeback.c:2308
write_cache_pages+0x974/0x1670 mm/page-writeback.c:2240
generic_writepages mm/page-writeback.c:2332 [inline]
generic_writepages+0xe6/0x160 mm/page-writeback.c:2321
blkdev_writepages+0x1e/0x30 fs/block_dev.c:1965
do_writepages+0xf5/0x2a0 mm/page-writeback.c:2347
__filemap_fdatawrite_range+0x26d/0x340 mm/filemap.c:445
__filemap_fdatawrite mm/filemap.c:453 [inline]
filemap_fdatawrite mm/filemap.c:458 [inline]
filemap_write_and_wait mm/filemap.c:617 [inline]
filemap_write_and_wait+0x47/0xd0 mm/filemap.c:612
__sync_blockdev fs/block_dev.c:463 [inline]
sync_blockdev fs/block_dev.c:472 [inline]
__blkdev_put+0x204/0x810 fs/block_dev.c:1797
blkdev_put+0x98/0x560 fs/block_dev.c:1866
blkdev_close+0x8b/0xb0 fs/block_dev.c:1873
__fput+0x2df/0x8b0 fs/file_table.c:278
____fput+0x16/0x20 fs/file_table.c:309
task_work_run+0x14a/0x1c0 kernel/task_work.c:113
exit_task_work include/linux/task_work.h:22 [inline]
do_exit+0x933/0x2fa0 kernel/exit.c:876
do_group_exit+0x135/0x370 kernel/exit.c:979
get_signal+0x399/0x1d50 kernel/signal.c:2572
do_signal+0x95/0x1950 arch/x86/kernel/signal.c:816
exit_to_usermode_loop+0x244/0x2c0 arch/x86/entry/common.c:162
prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline]
syscall_return_slowpath arch/x86/entry/common.c:268 [inline]
do_syscall_64+0x52d/0x610 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4582f9
Code: Bad RIP value.
RSP: 002b:00007f321a3dac78 EFLAGS: 00000246 ORIG_RAX: 0000000000000035
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00000000004582f9
RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000001
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000020000200 R11: 0000000000000246 R12: 00007f321a3db6d4
R13: 00000000004c6914 R14: 00000000004dc108 R15: 00000000ffffffff
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
This bug 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 bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Apr 16, 2019, 6:33:06 PM4/16/19
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: 4d552acf Linux 4.19.34
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15c05acb200000
kernel config: https://syzkaller.appspot.com/x/.config?x=c95a88291f095edd
dashboard link: https://syzkaller.appspot.com/bug?extid=708a53616245152d582d
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1009952d200000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+708a53...@syzkaller.appspotmail.com

8021q: adding VLAN 0 to HW filter on device batadv0
IPv6: ADDRCONF(NETDEV_UP): vxcan1: link is not ready
8021q: adding VLAN 0 to HW filter on device batadv0
------------[ cut here ]------------
generic_make_request: Trying to write to read-only block-device loop2
(partno 0)
WARNING: CPU: 1 PID: 7977 at block/blk-core.c:2171 bio_check_ro
block/blk-core.c:2171 [inline]
WARNING: CPU: 1 PID: 7977 at block/blk-core.c:2171
generic_make_request_checks+0x2006/0x2550 block/blk-core.c:2276
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 7977 Comm: syz-executor.3 Not tainted 4.19.34 #2
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x172/0x1f0 lib/dump_stack.c:113
panic+0x263/0x51d kernel/panic.c:185
__warn.cold+0x20/0x54 kernel/panic.c:540
report_bug+0x263/0x2b0 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x204/0x360 arch/x86/kernel/traps.c:296
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:997
RIP: 0010:bio_check_ro block/blk-core.c:2171 [inline]
RIP: 0010:generic_make_request_checks+0x2006/0x2550 block/blk-core.c:2276
Code: 85 48 05 00 00 45 8b b6 e4 04 00 00 48 8d 73 a0 4c 89 e7 e8 cc 57 06
00 48 c7 c7 e0 fe 7f 87 48 89 c6 44 89 f2 e8 b8 cd 2f fe <0f> 0b 48 8b 95
30 ff ff ff 48 b8 00 00 00 00 00 fc ff df 48 c1 ea
RSP: 0018:ffff88809e9b6ca8 EFLAGS: 00010286
RAX: 0000000000000000 RBX: ffff88809e9b6d78 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8155d206 RDI: ffffed1013d36d87
RBP: ffff88809e9b6da0 R08: ffff8880a0346040 R09: ffffed1015d24fe9
R10: ffffed1015d24fe8 R11: ffff8880ae927f47 R12: ffff8880a0090c00
R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000
generic_make_request+0x24c/0x12d0 block/blk-core.c:2400
submit_bio+0xba/0x480 block/blk-core.c:2565
kobject: 'loop1' (000000000f250b5e): kobject_uevent_env
kobject: 'loop1' (000000000f250b5e): fill_kobj_path: path
= '/devices/virtual/block/loop1'
submit_bh_wbc+0x5dc/0x790 fs/buffer.c:3095
kobject: 'loop4' (00000000c3c23751): kobject_uevent_env
__block_write_full_page+0x771/0x1020 fs/buffer.c:1766
block_write_full_page+0x21f/0x270 fs/buffer.c:2956
kobject: 'loop4' (00000000c3c23751): fill_kobj_path: path
= '/devices/virtual/block/loop4'
blkdev_writepage+0x25/0x30 fs/block_dev.c:581
__writepage+0x67/0xe0 mm/page-writeback.c:2308
kobject: 'loop1' (000000000f250b5e): kobject_uevent_env
write_cache_pages+0x974/0x1670 mm/page-writeback.c:2240
kobject: 'loop1' (000000000f250b5e): fill_kobj_path: path
= '/devices/virtual/block/loop1'
kobject: 'loop4' (00000000c3c23751): kobject_uevent_env
generic_writepages mm/page-writeback.c:2332 [inline]
generic_writepages+0xe6/0x160 mm/page-writeback.c:2321
kobject: 'loop4' (00000000c3c23751): fill_kobj_path: path
= '/devices/virtual/block/loop4'
blkdev_writepages+0x1e/0x30 fs/block_dev.c:1965
do_writepages+0xf5/0x2a0 mm/page-writeback.c:2347
kobject: 'loop1' (000000000f250b5e): kobject_uevent_env
kobject: 'loop1' (000000000f250b5e): fill_kobj_path: path
= '/devices/virtual/block/loop1'
__filemap_fdatawrite_range+0x26d/0x340 mm/filemap.c:445
kobject: 'loop4' (00000000c3c23751): kobject_uevent_env
file_write_and_wait_range+0x9a/0x100 mm/filemap.c:753
kobject: 'loop4' (00000000c3c23751): fill_kobj_path: path
= '/devices/virtual/block/loop4'
blkdev_fsync+0x6c/0xd0 fs/block_dev.c:638
vfs_fsync_range+0x144/0x230 fs/sync.c:197
generic_write_sync include/linux/fs.h:2735 [inline]
blkdev_write_iter fs/block_dev.c:1926 [inline]
blkdev_write_iter+0x348/0x440 fs/block_dev.c:1901
kobject: 'loop1' (000000000f250b5e): kobject_uevent_env
call_write_iter include/linux/fs.h:1811 [inline]
do_iter_readv_writev+0x55d/0x830 fs/read_write.c:680
kobject: 'loop1' (000000000f250b5e): fill_kobj_path: path
= '/devices/virtual/block/loop1'
kobject: 'loop4' (00000000c3c23751): kobject_uevent_env
do_iter_write fs/read_write.c:959 [inline]
do_iter_write+0x184/0x600 fs/read_write.c:940
kobject: 'loop4' (00000000c3c23751): fill_kobj_path: path
= '/devices/virtual/block/loop4'
vfs_iter_write+0x77/0xb0 fs/read_write.c:972
kobject: 'loop1' (000000000f250b5e): kobject_uevent_env
iter_file_splice_write+0x667/0xbe0 fs/splice.c:750
kobject: 'loop1' (000000000f250b5e): fill_kobj_path: path
= '/devices/virtual/block/loop1'
do_splice_from fs/splice.c:852 [inline]
direct_splice_actor+0x126/0x1a0 fs/splice.c:1019
splice_direct_to_actor+0x2ea/0x890 fs/splice.c:974
kobject: 'loop0' (00000000a3d844b8): kobject_uevent_env
kobject: 'loop0' (00000000a3d844b8): fill_kobj_path: path
= '/devices/virtual/block/loop0'
do_splice_direct+0x1da/0x2a0 fs/splice.c:1062
do_sendfile+0x597/0xce0 fs/read_write.c:1446
__do_sys_sendfile64 fs/read_write.c:1507 [inline]
__se_sys_sendfile64 fs/read_write.c:1493 [inline]
__x64_sys_sendfile64+0x1dd/0x220 fs/read_write.c:1493
do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x458c29
Code: ad b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f06fde63c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000000458c29
RDX: 0000000000000000 RSI: 0000000000000004 RDI: 0000000000000003
RBP: 000000000073bf00 R08: 0000000000000000 R09: 0000000000000000
R10: 0020000102000007 R11: 0000000000000246 R12: 00007f06fde646d4
R13: 00000000004c5e10 R14: 00000000004da5c8 R15: 00000000ffffffff

syzbot

unread,
Apr 18, 2019, 12:53:06 PM4/18/19
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: 4b0e041c Linux 4.19.35
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=16f2067b200000
kernel config: https://syzkaller.appspot.com/x/.config?x=bb1bcac868b1655e
dashboard link: https://syzkaller.appspot.com/bug?extid=708a53616245152d582d
compiler: gcc (GCC) 9.0.0 20181231 (experimental)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11245167200000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1589b6cb200000

IMPORTANT: if you fix the bug, please add the following tag to the commit:
Reported-by: syzbot+708a53...@syzkaller.appspotmail.com

audit: type=1400 audit(1555606205.047:36): avc: denied { map } for
pid=7631 comm="syz-executor871" path="/root/syz-executor871685127"
dev="sda1" ino=16483 scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023
tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
------------[ cut here ]------------
generic_make_request: Trying to write to read-only block-device nullb0
(partno 0)
audit: type=1400 audit(1555606205.047:37): avc: denied { map } for
pid=7631 comm="syz-executor871" path="/dev/nullb0" dev="devtmpfs" ino=15771
scontext=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023
tcontext=system_u:object_r:device_t:s0 tclass=blk_file permissive=1
WARNING: CPU: 1 PID: 7631 at block/blk-core.c:2171 bio_check_ro
block/blk-core.c:2171 [inline]
WARNING: CPU: 1 PID: 7631 at block/blk-core.c:2171
generic_make_request_checks+0x1fcf/0x24c0 block/blk-core.c:2276
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 7631 Comm: syz-executor871 Not tainted 4.19.35 #3
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x172/0x1f0 lib/dump_stack.c:113
panic+0x263/0x51d kernel/panic.c:185
__warn.cold+0x20/0x54 kernel/panic.c:540
report_bug+0x263/0x2b0 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x204/0x360 arch/x86/kernel/traps.c:296
do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:997
RIP: 0010:bio_check_ro block/blk-core.c:2171 [inline]
RIP: 0010:generic_make_request_checks+0x1fcf/0x24c0 block/blk-core.c:2276
Code: 85 1f 04 00 00 45 8b b6 e4 04 00 00 48 8d 73 a0 4c 89 e7 e8 13 58 06
00 48 c7 c7 e0 fe 7f 87 48 89 c6 44 89 f2 e8 8f 01 30 fe <0f> 0b 48 b8 00
00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 80 3c 02
RSP: 0000:ffff88808af571e8 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff88808af572b8 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8155cf26 RDI: ffffed10115eae2f
RBP: ffff88808af572e0 R08: ffff8880a94ee3c0 R09: ffff8880a94eec60
R10: 0000000000000000 R11: 0000000000000000 R12: ffff888093432340
R13: ffff888093432348 R14: 0000000000000000 R15: 0000000000000000
__do_sys_exit_group kernel/exit.c:990 [inline]
__se_sys_exit_group kernel/exit.c:988 [inline]
__x64_sys_exit_group+0x44/0x50 kernel/exit.c:988
do_syscall_64+0x103/0x610 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x43edf8
Code: Bad RIP value.
RSP: 002b:00007fff511fd9e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000043edf8
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000000000
RBP: 00000000004be608 R08: 00000000000000e7 R09: ffffffffffffffd0
R10: 0000000000000003 R11: 0000000000000246 R12: 0000000000000001
R13: 00000000006d0180 R14: 0000000000000000 R15: 0000000000000000
Reply all
Reply to author
Forward
0 new messages