syzbot


KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf (6)

Status: auto-obsoleted due to no activity on 2024/08/04 19:00
Subsystems: trace block
[Documentation on labels]
Reported-by: syzbot+ccce44144bfcb4db1023@syzkaller.appspotmail.com
First crash: 447d, last: 104d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf (2) block trace 3 1433d 1405d 0/28 auto-closed as invalid on 2020/12/21 11:49
upstream KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf (4) block trace 11 785d 937d 0/28 auto-closed as invalid on 2022/09/24 02:55
upstream KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf (3) block trace 6 986d 1074d 0/28 auto-closed as invalid on 2022/03/06 18:39
upstream KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf (5) block trace 19 635d 728d 0/28 auto-obsoleted due to no activity on 2023/04/10 19:57
upstream KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf (7) block trace 1 22d 22d 0/28 moderation: reported on 2024/09/20 05:49
upstream KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf trace block 17 1713d 1810d 0/28 auto-closed as invalid on 2020/04/13 07:50

Sample crash report:
==================================================================
BUG: KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf

write to 0xffff88810a2c7638 of 8 bytes by task 24069 on cpu 0:
 relay_switch_subbuf+0x39e/0x3b0 kernel/relay.c:708
 relay_reserve include/linux/relay.h:248 [inline]
 __blk_add_trace+0x66a/0x730 kernel/trace/blktrace.c:276
 blk_add_trace_plug+0x4c/0x70 kernel/trace/blktrace.c:949
 trace_block_plug include/trace/events/block.h:407 [inline]
 blk_add_rq_to_plug+0x32b/0x3e0 block/blk-mq.c:1293
 blk_mq_submit_bio+0xa22/0xd90 block/blk-mq.c:3013
 __submit_bio+0xf2/0x470 block/blk-core.c:627
 __submit_bio_noacct_mq block/blk-core.c:708 [inline]
 submit_bio_noacct_nocheck+0x295/0x6e0 block/blk-core.c:737
 submit_bio_noacct+0x6b9/0x870 block/blk-core.c:848
 submit_bio+0x218/0x230 block/blk-core.c:890
 ext4_io_submit+0x8a/0xb0 fs/ext4/page-io.c:377
 ext4_do_writepages+0xb3a/0x2110 fs/ext4/inode.c:2699
 ext4_writepages+0x159/0x2e0 fs/ext4/inode.c:2768
 do_writepages+0x1d8/0x480 mm/page-writeback.c:2634
 filemap_fdatawrite_wbc+0xdb/0x100 mm/filemap.c:397
 __filemap_fdatawrite_range mm/filemap.c:430 [inline]
 file_write_and_wait_range+0xc8/0x170 mm/filemap.c:788
 ext4_sync_file+0x134/0x6c0 fs/ext4/fsync.c:158
 vfs_fsync_range+0x122/0x140 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2794 [inline]
 ext4_buffered_write_iter+0x338/0x380 fs/ext4/file.c:305
 ext4_file_write_iter+0x29f/0xe30
 __kernel_write_iter+0x24f/0x4d0 fs/read_write.c:523
 dump_emit_page fs/coredump.c:893 [inline]
 dump_user_range+0x3a7/0x550 fs/coredump.c:954
 elf_core_dump+0x1aeb/0x1c30 fs/binfmt_elf.c:2083
 do_coredump+0xff6/0x1860 fs/coredump.c:767
 get_signal+0xdc1/0x1080 kernel/signal.c:2894
 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:310
 exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 irqentry_exit_to_user_mode+0x94/0x130 kernel/entry/common.c:231
 irqentry_exit+0x12/0x50 kernel/entry/common.c:334
 exc_general_protection+0x33d/0x4d0 arch/x86/kernel/traps.c:644
 asm_exc_general_protection+0x26/0x30 arch/x86/include/asm/idtentry.h:617

write to 0xffff88810a2c7638 of 8 bytes by task 24521 on cpu 1:
 relay_switch_subbuf+0x39e/0x3b0 kernel/relay.c:708
 relay_reserve include/linux/relay.h:248 [inline]
 __blk_add_trace+0x66a/0x730 kernel/trace/blktrace.c:276
 blk_add_trace_unplug+0x76/0xb0 kernel/trace/blktrace.c:969
 trace_block_unplug include/trace/events/block.h:452 [inline]
 blk_mq_dispatch_plug_list block/blk-mq.c:2739 [inline]
 blk_mq_flush_plug_list+0xd17/0xde0 block/blk-mq.c:2799
 __blk_flush_plug+0x216/0x290 block/blk-core.c:1194
 blk_finish_plug+0x48/0x70 block/blk-core.c:1221
 ext4_do_writepages+0x1bd0/0x2110 fs/ext4/inode.c:2730
 ext4_writepages+0x159/0x2e0 fs/ext4/inode.c:2768
 do_writepages+0x1d8/0x480 mm/page-writeback.c:2634
 filemap_fdatawrite_wbc+0xdb/0x100 mm/filemap.c:397
 __filemap_fdatawrite_range mm/filemap.c:430 [inline]
 file_write_and_wait_range+0xc8/0x170 mm/filemap.c:788
 ext4_sync_file+0x134/0x6c0 fs/ext4/fsync.c:158
 vfs_fsync_range+0x122/0x140 fs/sync.c:188
 generic_write_sync include/linux/fs.h:2794 [inline]
 ext4_buffered_write_iter+0x338/0x380 fs/ext4/file.c:305
 ext4_file_write_iter+0x29f/0xe30
 __kernel_write_iter+0x24f/0x4d0 fs/read_write.c:523
 dump_emit_page fs/coredump.c:893 [inline]
 dump_user_range+0x3a7/0x550 fs/coredump.c:954
 elf_core_dump+0x1aeb/0x1c30 fs/binfmt_elf.c:2083
 do_coredump+0xff6/0x1860 fs/coredump.c:767
 get_signal+0xdc1/0x1080 kernel/signal.c:2894
 arch_do_signal_or_restart+0x95/0x4b0 arch/x86/kernel/signal.c:310
 exit_to_user_mode_loop kernel/entry/common.c:111 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 irqentry_exit_to_user_mode+0x94/0x130 kernel/entry/common.c:231
 irqentry_exit+0x12/0x50 kernel/entry/common.c:334
 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623

value changed: 0x0000000000000030 -> 0x0000000000000038

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 24521 Comm: syz.3.14527 Tainted: G        W          6.10.0-rc5-syzkaller-00282-g8282d5af7be8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024
==================================================================

Crashes (65):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/30 18:59 upstream 8282d5af7be8 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/06/29 09:26 upstream de0a9f448633 757f06b1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/06/21 09:17 upstream 50736169ecc8 dac2aa43 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/06/20 00:19 upstream e5b3efbe1ab1 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/06/12 22:51 upstream cea2a26553ac f815599d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/06/08 08:43 upstream 96e09b8f8166 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/06/06 00:18 upstream 71d7b52cc33b 5aa1a7c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/06/03 12:16 upstream c3f38fa61af7 0aba2352 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/05/05 18:23 upstream b9158815de52 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/04/20 17:50 upstream 13a2e429f644 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/04/15 06:49 upstream 399f4dae683a c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/04/08 16:43 upstream fec50db7033e 53df08b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/04/05 06:50 upstream c88b9b4cde17 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/04/04 16:58 upstream c85af715cac0 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/04/03 20:05 upstream 3e92c1e6cd87 51c4dcff .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/04/02 12:25 upstream 026e680b0a08 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/03/31 11:25 upstream 712e14250dd2 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/03/30 09:12 upstream 4535e1a4174c 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/03/29 05:33 upstream 317c7bc0ef03 c52bcb23 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/03/28 19:28 upstream 8d025e2092e2 e91187ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/03/25 11:12 upstream 4cece7649650 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/03/22 05:21 upstream ebc9bee8814d 7a239ce7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/03/17 15:40 upstream 741e9d668aa5 d615901c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/03/14 17:12 upstream 480e035fc4c7 8d8ee116 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/03/13 21:25 upstream 61387b8dcf1d f919f202 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/02/19 22:59 upstream b401b621758e 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/02/13 14:21 upstream c664e16bb1ba e66542d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/02/08 11:47 upstream 047371968ffc 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/02/06 00:13 upstream 54be6c6c5ae8 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/02/02 13:59 upstream 021533194476 d61103fc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/02/02 10:13 upstream 5c24e4e9e708 d61103fc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/02/01 13:17 upstream 6764c317b6bb 81024119 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/02/01 01:30 upstream 6764c317b6bb 373b66cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/02/01 01:09 upstream 6764c317b6bb 373b66cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/01/26 22:58 upstream ecb1b8288dc7 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/01/24 02:28 upstream 7ed2632ec7d7 1e153dc8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/01/19 02:27 upstream 86c4d58a99ab 21772ce4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/01/14 01:56 upstream 052d534373b7 551587c1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2024/01/06 06:31 upstream a4ab2706bb12 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/12/15 16:36 upstream 3f7168591ebf 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/12/02 21:28 upstream 815fb87b7530 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/11/16 15:05 upstream 7475e51b8796 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/11/13 18:49 upstream 9bacdd8996c7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/10/25 08:24 upstream 4f82870119a4 17e6d526 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/10/20 14:58 upstream ce55c22ec8b2 361b23dc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/10/20 12:24 upstream ce55c22ec8b2 a42250d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/10/19 11:02 upstream dd72f9c7e512 42e1d524 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/10/07 06:43 upstream 82714078aee4 5e837c76 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/10/05 23:50 upstream 3006adf3be79 db17ad9f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/10/01 02:14 upstream 3b517966c561 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/09/22 22:40 upstream 8018e02a8703 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/09/22 18:30 upstream 27bbf45eae9c 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/09/21 15:37 upstream 42dc814987c1 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/09/18 06:57 upstream ce9ecca0238b 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/09/17 16:24 upstream f0b0d403eabb 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/08/16 12:43 upstream 4853c74bd7ab 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/08/14 21:32 upstream 2ccdd1b13c59 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/08/13 23:02 upstream a785fd28d31f 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/08/12 01:58 upstream 9106536c1aa3 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/07/27 10:06 upstream 0a8db05b571a 41fe1bae .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/07/27 02:15 upstream 5f0bc0b042fc 41fe1bae .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/07/24 02:25 upstream 6eaae1980760 27cbe77f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
2023/07/23 12:24 upstream c2782531397f 27cbe77f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in relay_switch_subbuf / relay_switch_subbuf
* Struck through repros no longer work on HEAD.