syzbot


KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end

Status: auto-obsoleted due to no activity on 2024/04/08 22:33
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+5f5b0a91ffec58569e2a@syzkaller.appspotmail.com
First crash: 729d, last: 212d

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

write to 0xffff8881627ec0d0 of 8 bytes by task 346 on cpu 0:
 i_size_write include/linux/fs.h:934 [inline]
 shmem_write_end+0x9a/0x470 mm/shmem.c:2741
 generic_perform_write+0x267/0x410 mm/filemap.c:3941
 shmem_file_write_iter+0xc8/0xe0 mm/shmem.c:2893
 call_write_iter include/linux/fs.h:2087 [inline]
 new_sync_write fs/read_write.c:497 [inline]
 vfs_write+0x760/0x8d0 fs/read_write.c:590
 ksys_write+0xeb/0x1a0 fs/read_write.c:643
 __do_sys_write fs/read_write.c:655 [inline]
 __se_sys_write fs/read_write.c:652 [inline]
 __x64_sys_write+0x42/0x50 fs/read_write.c:652
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff8881627ec0d0 of 8 bytes by task 411 on cpu 1:
 i_size_read include/linux/fs.h:912 [inline]
 shmem_get_folio_gfp+0x13f/0xb40 mm/shmem.c:1973
 shmem_get_folio mm/shmem.c:2134 [inline]
 shmem_file_read_iter+0x152/0x550 mm/shmem.c:2788
 do_iter_readv_writev+0x2b0/0x330
 vfs_readv+0x1e5/0x640 fs/read_write.c:932
 do_preadv fs/read_write.c:1049 [inline]
 __do_sys_preadv fs/read_write.c:1099 [inline]
 __se_sys_preadv fs/read_write.c:1094 [inline]
 __x64_sys_preadv+0x100/0x1c0 fs/read_write.c:1094
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x1d0 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

value changed: 0x0000000000fef000 -> 0x0000000000ff0000

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 411 Comm: syz-executor.3 Not tainted 6.8.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
==================================================================

Crashes (460):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/11 22:32 upstream e8f897f4afef 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/03/11 04:46 upstream fa4b851b4ad6 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/03/10 18:27 upstream 005f6f34bd47 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/03/10 02:03 upstream 09e5c48fea17 6ee49f2e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/03/07 10:15 upstream 67be068d31d4 f39a7eed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/03/06 17:46 upstream 5847c9777c30 f39a7eed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/03/06 00:52 upstream 29cd507cbec2 f39a7eed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/03/05 19:07 upstream 90d35da658da f39a7eed .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/03/05 06:45 upstream 90d35da658da 5fc53669 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/03/03 22:28 upstream 58c806d867bf 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/03/03 13:16 upstream 04b8076df253 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/03/02 19:00 upstream 5ad3cb0ed525 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/03/02 11:32 upstream 17ba56605bfd 25905f5d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/03/02 01:46 upstream 17ba56605bfd 83acf9e0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/03/01 15:14 upstream 87adedeba51a 83acf9e0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/29 15:46 upstream 805d849d7c3c 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/29 01:20 upstream e326df53af00 352ab904 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/28 19:49 upstream e326df53af00 55d6f11d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/28 08:44 upstream cf1182944c7c d367cbe5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/27 08:22 upstream 45ec2f5f6ed3 05e69c83 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/26 15:46 upstream d206a76d7d27 da36a36b .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/26 06:28 upstream 70ff1fe626a1 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/24 20:21 upstream f2e367d6ad3b 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/24 16:13 upstream 603c04e27c3e 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/23 11:19 upstream ffd2cb6b718e 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/22 17:18 upstream 39133352cbed 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/21 20:11 upstream 39133352cbed 345111b5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/21 12:52 upstream 9fc1ccccfd8d 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/21 04:41 upstream fca7526b7d89 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/19 14:04 upstream b401b621758e 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/18 18:03 upstream c02197fc9076 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/18 03:07 upstream ced590523156 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/17 09:06 upstream c1ca10ceffbb 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/16 05:28 upstream 4f5e5092fdbf 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/15 21:11 upstream 4f5e5092fdbf fd39cf6f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/15 15:59 upstream 8d3dea210042 fd39cf6f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/15 07:31 upstream 8d3dea210042 d9b1cdd5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/14 05:15 upstream 7e90b5c295ec d902085f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/13 08:28 upstream c664e16bb1ba 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/13 06:50 upstream 716f4aaa7b48 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/12 01:58 upstream 841c35169323 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/10 10:19 upstream 4a7bbe7519b6 77b23aa1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/09 09:22 upstream 1f719a2f3fa6 7f07e9b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/08 17:13 upstream 047371968ffc 7f07e9b0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/07 18:58 upstream 6d280f4d760e 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/06 23:28 upstream 99bd3cb0d12e 6404acf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/05 18:49 upstream 54be6c6c5ae8 e23e8c20 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/04 00:05 upstream b555d191561a a67b2c42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/01 17:39 upstream 6764c317b6bb 81024119 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/02/01 03:15 upstream 6764c317b6bb 373b66cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2024/01/31 16:10 upstream 1bbb19b6eb1b 373b66cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2023/12/06 15:17 upstream bee0e7762ad2 e3299f55 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2023/12/04 23:15 upstream bee0e7762ad2 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
2022/10/11 15:42 upstream 60bb8154d1d7 02b6492e .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_get_folio_gfp / shmem_write_end
* Struck through repros no longer work on HEAD.