syzbot


WARNING in dio_complete
Status: fixed on 2019/12/30 15:48
Reported-by: syzbot+65d0f0206995021dd76c@syzkaller.appspotmail.com
Fix commit: 365874a0eab5 blk-mq: avoid sysfs buffer overflow with too many CPU cores
First crash: 1137d, last: 907d

Fix bisection: fixed by (bisect log) :
commit 365874a0eab5478d2d4f7b30e57bfc51dde7843c
Author: Ming Lei <ming.lei@redhat.com>
Date: Sat Nov 2 08:02:15 2019 +0000

  blk-mq: avoid sysfs buffer overflow with too many CPU cores

similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-414 WARNING in dio_complete C 3087 1120d 1140d 0/1 public: reported C repro on 2019/04/11 00:00

Sample crash report:
audit: type=1804 audit(1555918540.543:199): pid=7543 uid=0 auid=4294967295 ses=4294967295 subj=unconfined_u:system_r:insmod_t:s0-s0:c0.c1023 op="invalid_pcr" cause="open_writers" comm="syz-executor722" name="/root/bus" dev="sda1" ino=2233 res=1
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7543 at fs/direct-io.c:293 dio_complete+0x671/0x800 fs/direct-io.c:293
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 7543 Comm: syz-executor722 Not tainted 4.14.113 #3
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x138/0x19c lib/dump_stack.c:53
 panic+0x1f2/0x438 kernel/panic.c:182
 __warn.cold+0x2f/0x34 kernel/panic.c:546
 report_bug+0x216/0x254 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x1bb/0x310 arch/x86/kernel/traps.c:295
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:314
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:944
RIP: 0010:dio_complete+0x671/0x800 fs/direct-io.c:293
RSP: 0018:ffff88808671f1b8 EFLAGS: 00010297
RAX: ffff888086166700 RBX: 0000000000010000 RCX: ffff888086166f80
RDX: 0000000000000000 RSI: ffffffff8778ece0 RDI: ffff888088df037c
RBP: ffff88808671f200 R08: ffff888086166700 R09: ffff888086166fc8
R10: 0000000000000000 R11: 0000000000000000 R12: ffff8880a0806440
R13: 0000000000010000 R14: ffff888088df0578 R15: 0000000000000000
 do_blockdev_direct_IO+0x530e/0x7fc0 fs/direct-io.c:1374
 __blockdev_direct_IO+0xa1/0xd0 fs/direct-io.c:1400
 ext4_direct_IO_write fs/ext4/inode.c:3697 [inline]
 ext4_direct_IO+0x70d/0x1890 fs/ext4/inode.c:3827
 generic_file_direct_write+0x1ec/0x430 mm/filemap.c:2927
 __generic_file_write_iter+0x2bc/0x5b0 mm/filemap.c:3106
 ext4_file_write_iter+0x2c0/0xfd0 fs/ext4/file.c:264
 call_write_iter include/linux/fs.h:1774 [inline]
 do_iter_readv_writev+0x41e/0x680 fs/read_write.c:674
 do_iter_write fs/read_write.c:953 [inline]
 do_iter_write+0x154/0x550 fs/read_write.c:934
 vfs_iter_write+0x77/0xb0 fs/read_write.c:966
 iter_file_splice_write+0x578/0xae0 fs/splice.c:749
 do_splice_from fs/splice.c:851 [inline]
 direct_splice_actor+0x126/0x1a0 fs/splice.c:1018
 splice_direct_to_actor+0x2a1/0x7b0 fs/splice.c:973
 do_splice_direct+0x18d/0x230 fs/splice.c:1061
 do_sendfile+0x4db/0xbd0 fs/read_write.c:1440
 SYSC_sendfile64 fs/read_write.c:1501 [inline]
 SyS_sendfile64+0x102/0x110 fs/read_write.c:1487
 do_syscall_64+0x1eb/0x630 arch/x86/entry/common.c:289
 entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x4480a9
RSP: 002b:00007f36dd142ce8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00000000006ddc68 RCX: 00000000004480a9
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000003
RBP: 00000000006ddc60 R08: 0000000000000000 R09: 0000000000000000
R10: 00008000fffffffe R11: 0000000000000246 R12: 00000000006ddc6c
R13: 00007fff8d266c9f R14: 00007f36dd1439c0 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (27):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-14 2019/04/22 07:40 linux-4.14.y 68d7a45eec10 b0e8efcb .config log report syz C
ci2-linux-4-14 2019/04/20 04:26 linux-4.14.y 58b454ebf81e b0e8efcb .config log report syz C
ci2-linux-4-14 2019/04/13 23:51 linux-4.14.y 1ec8f1f0bffe c402d8f1 .config log report syz C
ci2-linux-4-14 2019/04/20 22:01 linux-4.14.y 68d7a45eec10 b0e8efcb .config log report syz
ci2-linux-4-14 2019/04/18 10:48 linux-4.14.y 58b454ebf81e b0e8efcb .config log report syz
ci2-linux-4-14 2019/04/14 21:20 linux-4.14.y 1ec8f1f0bffe 505ab413 .config log report syz
ci2-linux-4-14 2019/04/26 19:43 linux-4.14.y 68d7a45eec10 b617407b .config log report
ci2-linux-4-14 2019/04/26 19:31 linux-4.14.y 68d7a45eec10 b617407b .config log report
ci2-linux-4-14 2019/04/26 17:42 linux-4.14.y 68d7a45eec10 b617407b .config log report
ci2-linux-4-14 2019/04/25 07:17 linux-4.14.y 68d7a45eec10 8e3c52b1 .config log report
ci2-linux-4-14 2019/04/25 05:46 linux-4.14.y 68d7a45eec10 8e3c52b1 .config log report
ci2-linux-4-14 2019/04/25 05:43 linux-4.14.y 68d7a45eec10 8e3c52b1 .config log report
ci2-linux-4-14 2019/04/25 04:53 linux-4.14.y 68d7a45eec10 8e3c52b1 .config log report
ci2-linux-4-14 2019/04/24 02:52 linux-4.14.y 68d7a45eec10 2398edea .config log report
ci2-linux-4-14 2019/04/23 12:40 linux-4.14.y 68d7a45eec10 53199d6e .config log report
ci2-linux-4-14 2019/04/22 03:11 linux-4.14.y 68d7a45eec10 b0e8efcb .config log report
ci2-linux-4-14 2019/04/20 23:52 linux-4.14.y 68d7a45eec10 b0e8efcb .config log report
ci2-linux-4-14 2019/04/20 08:56 linux-4.14.y 68d7a45eec10 b0e8efcb .config log report
ci2-linux-4-14 2019/04/19 11:10 linux-4.14.y 58b454ebf81e b0e8efcb .config log report
ci2-linux-4-14 2019/04/19 08:04 linux-4.14.y 58b454ebf81e b0e8efcb .config log report
ci2-linux-4-14 2019/04/19 07:05 linux-4.14.y 58b454ebf81e b0e8efcb .config log report
ci2-linux-4-14 2019/04/19 06:51 linux-4.14.y 58b454ebf81e b0e8efcb .config log report
ci2-linux-4-14 2019/04/18 23:20 linux-4.14.y 58b454ebf81e b0e8efcb .config log report
ci2-linux-4-14 2019/04/18 22:10 linux-4.14.y 58b454ebf81e b0e8efcb .config log report
ci2-linux-4-14 2019/04/18 21:43 linux-4.14.y 58b454ebf81e b0e8efcb .config log report
ci2-linux-4-14 2019/04/17 02:19 linux-4.14.y 1ec8f1f0bffe b0e8efcb .config log report
ci2-linux-4-14 2019/04/13 18:34 linux-4.14.y 1ec8f1f0bffe c402d8f1 .config log report