syzbot


KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp

Status: auto-obsoleted due to no activity on 2023/09/25 10:01
Subsystems: mm
[Documentation on labels]
First crash: 839d, last: 519d

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

read-write to 0xffff888107b52030 of 8 bytes by task 1101 on cpu 0:
 shmem_add_to_page_cache+0x40a/0x510 mm/shmem.c:742
 shmem_get_folio_gfp+0x923/0x1200 mm/shmem.c:1980
 shmem_fault+0xe6/0x3f0 mm/shmem.c:2165
 __do_fault mm/memory.c:4198 [inline]
 do_shared_fault mm/memory.c:4602 [inline]
 do_fault mm/memory.c:4674 [inline]
 do_pte_missing mm/memory.c:3664 [inline]
 handle_pte_fault mm/memory.c:4939 [inline]
 __handle_mm_fault mm/memory.c:5079 [inline]
 handle_mm_fault+0x131b/0x2c10 mm/memory.c:5233
 faultin_page mm/gup.c:963 [inline]
 __get_user_pages+0x42e/0xd20 mm/gup.c:1262
 faultin_vma_page_range+0x7e/0xa0 mm/gup.c:1711
 madvise_populate mm/madvise.c:936 [inline]
 madvise_vma_behavior mm/madvise.c:1045 [inline]
 madvise_walk_vmas mm/madvise.c:1267 [inline]
 do_madvise+0x97c/0x29b0 mm/madvise.c:1447
 __do_sys_madvise mm/madvise.c:1460 [inline]
 __se_sys_madvise mm/madvise.c:1458 [inline]
 __x64_sys_madvise+0x60/0x70 mm/madvise.c:1458
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffff888107b52030 of 8 bytes by task 1088 on cpu 1:
 shmem_recalc_inode mm/shmem.c:360 [inline]
 shmem_get_folio_gfp+0xe1e/0x1200 mm/shmem.c:1990
 shmem_fault+0xe6/0x3f0 mm/shmem.c:2165
 __do_fault mm/memory.c:4198 [inline]
 do_shared_fault mm/memory.c:4602 [inline]
 do_fault mm/memory.c:4674 [inline]
 do_pte_missing mm/memory.c:3664 [inline]
 handle_pte_fault mm/memory.c:4939 [inline]
 __handle_mm_fault mm/memory.c:5079 [inline]
 handle_mm_fault+0x131b/0x2c10 mm/memory.c:5233
 faultin_page mm/gup.c:963 [inline]
 __get_user_pages+0x42e/0xd20 mm/gup.c:1262
 faultin_vma_page_range+0x7e/0xa0 mm/gup.c:1711
 madvise_populate mm/madvise.c:936 [inline]
 madvise_vma_behavior mm/madvise.c:1045 [inline]
 madvise_walk_vmas mm/madvise.c:1267 [inline]
 do_madvise+0x97c/0x29b0 mm/madvise.c:1447
 __do_sys_madvise mm/madvise.c:1460 [inline]
 __se_sys_madvise mm/madvise.c:1458 [inline]
 __x64_sys_madvise+0x60/0x70 mm/madvise.c:1458
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000000279 -> 0x000000000000027a

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 1088 Comm: syz-executor.1 Not tainted 6.5.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
==================================================================

Crashes (166):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/08/28 09:57 upstream 2dde18cd1d8f 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/28 00:37 upstream 2dde18cd1d8f 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/25 23:47 upstream 382d4cd18475 03d9c195 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/25 17:15 upstream 4f9e7fabf864 03d9c195 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/25 05:59 upstream 4f9e7fabf864 49be837e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/23 21:26 upstream 89bf6209cad6 b81ca3f6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/21 17:29 upstream f7757129e3de 6b415825 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/21 06:41 upstream f7757129e3de d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/20 03:09 upstream 9e6c269de404 d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/19 13:00 upstream aa9ea98cca3a d216d8a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/16 17:11 upstream 4853c74bd7ab 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/14 13:24 upstream 2ccdd1b13c59 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/13 21:02 upstream a785fd28d31f 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/12 21:47 upstream ae545c3283dc 39990d51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/11 15:02 upstream 25aa0bebba72 39990d51 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/11 04:16 upstream 25aa0bebba72 da3c3ef8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/09 01:41 upstream 13b937206866 9552ae77 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/08 08:22 upstream 14f9643dc90a b1b6ae3d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/07 19:21 upstream a027b2eca0b7 b1b6ae3d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/07 10:46 upstream 52a93d39b17d 0ef3dfda .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/07 06:07 upstream 52a93d39b17d 4ffcc9ef .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/05 11:11 upstream 024ff300db33 cdae481e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/08/03 03:37 upstream 4b954598a47b b178af49 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/07/31 16:06 upstream 5d0c230f1de8 2a0d0f29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/07/30 20:10 upstream d31e3792919e 2a0d0f29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/07/30 00:15 upstream 12214540ad87 92476829 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/07/26 19:57 upstream 5f0bc0b042fc 41fe1bae .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/07/21 02:42 upstream 57f1f9dd3abe 28847498 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/07/20 01:31 upstream bfa3037d8280 4547cdf9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/07/19 12:58 upstream ccff6d117d8d 022df2bb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/07/19 06:25 upstream 74f1456c4a5f 022df2bb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/07/18 14:21 upstream fdf0eaf11452 022df2bb .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/07/15 19:04 upstream b6e6cc1f78c7 35d9ecc5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/07/12 19:37 upstream 3f01e9fed845 979d5fe2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/07/12 03:14 upstream 3f01e9fed845 2f19aa4f .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/07/06 13:24 upstream c17414a273b8 1a2f6297 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/07/06 08:28 upstream c17414a273b8 ba5dba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/07/06 00:53 upstream d528014517f2 ba5dba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/07/04 11:39 upstream 24be4d0b46bb 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/07/03 19:49 upstream 99bdeae21d25 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/07/03 15:38 upstream a901a3568fd2 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/07/02 02:34 upstream dfab92f27c60 bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/07/01 06:39 upstream d85a143b69ab af3053d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/06/30 00:57 upstream c6b0271053e7 01298212 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/06/29 02:12 upstream 6aeadf7896bf ca69c785 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/06/27 22:28 upstream 04fc8904d5d1 4cd5bb25 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/06/26 08:51 upstream 6995e2de6891 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2023/06/24 00:12 upstream 61dabacdad4e 79782afc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
2022/10/12 13:05 upstream 49da07006239 16a9c9e0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in shmem_add_to_page_cache / shmem_get_folio_gfp
* Struck through repros no longer work on HEAD.