syzbot


KCSAN: data-race in __filemap_add_folio / sync_bdevs (2)

Status: upstream: reported on 2024/09/21 08:17
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+cf1fa2a387833ee7edec@syzkaller.appspotmail.com
First crash: 7d07h, last: 7d07h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [ext4?] KCSAN: data-race in __filemap_add_folio / sync_bdevs (2) 0 (1) 2024/09/21 08:17
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __filemap_add_folio / sync_bdevs fs mm 1 611d 611d 0/28 auto-obsoleted due to no activity on 2023/04/05 16:41

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

read-write to 0xffff8881004c24b0 of 8 bytes by task 2929 on cpu 0:
 __filemap_add_folio+0x439/0x710 mm/filemap.c:920
 filemap_add_folio+0x9c/0x1b0 mm/filemap.c:972
 __filemap_get_folio+0x2f1/0x5b0 mm/filemap.c:1960
 grow_dev_folio fs/buffer.c:1043 [inline]
 grow_buffers fs/buffer.c:1109 [inline]
 __getblk_slow fs/buffer.c:1135 [inline]
 bdev_getblk+0x173/0x3b0 fs/buffer.c:1437
 __getblk include/linux/buffer_head.h:380 [inline]
 jbd2_journal_get_descriptor_buffer+0xcf/0x210 fs/jbd2/journal.c:974
 jbd2_journal_commit_transaction+0xc03/0x33e0 fs/jbd2/commit.c:610
 kjournald2+0x20b/0x3c0 fs/jbd2/journal.c:201
 kthread+0x1d1/0x210 kernel/kthread.c:389
 ret_from_fork+0x4b/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244

read to 0xffff8881004c24b0 of 8 bytes by task 1695 on cpu 1:
 sync_bdevs+0xd6/0x260 block/bdev.c:1228
 ksys_sync+0x8c/0xe0 fs/sync.c:106
 __do_sys_sync+0xe/0x20 fs/sync.c:113
 x64_sys_call+0x2693/0x2d60 arch/x86/include/generated/asm/syscalls_64.h:163
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xc9/0x1c0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f

value changed: 0x0000000000000a25 -> 0x0000000000000a26

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 UID: 0 PID: 1695 Comm: syz.0.18383 Tainted: G        W          6.11.0-syzkaller-07462-g1868f9d0260e #0
Tainted: [W]=WARN
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/21 07:57 upstream 1868f9d0260e 6f888b75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_add_folio / sync_bdevs
* Struck through repros no longer work on HEAD.