syzbot


KCSAN: data-race in do_try_to_free_pages / shrink_node

Status: auto-closed as invalid on 2020/04/13 04:50
Subsystems: mm
[Documentation on labels]
First crash: 1619d, last: 1567d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in do_try_to_free_pages / shrink_node (5) mm 1 59d 59d 0/26 auto-obsoleted due to no activity on 2024/04/25 15:29
upstream KCSAN: data-race in do_try_to_free_pages / shrink_node (4) mm 7 121d 160d 0/26 auto-obsoleted due to no activity on 2024/02/23 13:13
upstream KCSAN: data-race in do_try_to_free_pages / shrink_node (2) mm 3 320d 336d 0/26 auto-obsoleted due to no activity on 2023/08/07 23:22
upstream KCSAN: data-race in do_try_to_free_pages / shrink_node (3) mm 2 275d 283d 0/26 auto-obsoleted due to no activity on 2023/09/22 16:58

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

read to 0xffff88812bcfb478 of 8 bytes by task 8124 on cpu 0:
 shrink_node+0x9c5/0xfe0 mm/vmscan.c:2733
 shrink_zones mm/vmscan.c:2996 [inline]
 do_try_to_free_pages+0x245/0xb60 mm/vmscan.c:3049
 try_to_free_pages+0x1f5/0x4a0 mm/vmscan.c:3288
 __perform_reclaim mm/page_alloc.c:4124 [inline]
 __alloc_pages_direct_reclaim mm/page_alloc.c:4145 [inline]
 __alloc_pages_slowpath+0x45c/0xee0 mm/page_alloc.c:4562
 __alloc_pages_nodemask+0x2c8/0x310 mm/page_alloc.c:4776
 alloc_pages_current+0xd1/0x170 mm/mempolicy.c:2207
 alloc_pages include/linux/gfp.h:532 [inline]
 __page_cache_alloc mm/filemap.c:981 [inline]
 __page_cache_alloc+0x183/0x1a0 mm/filemap.c:966
 pagecache_get_page+0x24b/0x6f0 mm/filemap.c:1671
 filemap_fault+0xc95/0x10a0 mm/filemap.c:2510
 ext4_filemap_fault+0x59/0x72 fs/ext4/inode.c:5977
 __do_fault+0xae/0x1f0 mm/memory.c:3188
 do_read_fault mm/memory.c:3585 [inline]
 do_fault mm/memory.c:3714 [inline]
 handle_pte_fault mm/memory.c:3945 [inline]
 __handle_mm_fault+0x270d/0x2e00 mm/memory.c:4075
 handle_mm_fault+0x21b/0x530 mm/memory.c:4112
 do_user_addr_fault arch/x86/mm/fault.c:1441 [inline]
 __do_page_fault+0x456/0x8d0 arch/x86/mm/fault.c:1506
 do_page_fault+0x38/0x194 arch/x86/mm/fault.c:1530
 page_fault+0x34/0x40 arch/x86/entry/entry_64.S:1203

write to 0xffff88812bcfb478 of 8 bytes by task 8011 on cpu 1:
 snapshot_refaults mm/vmscan.c:3013 [inline]
 do_try_to_free_pages+0x75f/0xb60 mm/vmscan.c:3072
 try_to_free_pages+0x1f5/0x4a0 mm/vmscan.c:3288
 __perform_reclaim mm/page_alloc.c:4124 [inline]
 __alloc_pages_direct_reclaim mm/page_alloc.c:4145 [inline]
 __alloc_pages_slowpath+0x45c/0xee0 mm/page_alloc.c:4562
 __alloc_pages_nodemask+0x2c8/0x310 mm/page_alloc.c:4776
 alloc_pages_current+0xd1/0x170 mm/mempolicy.c:2207
 alloc_pages include/linux/gfp.h:532 [inline]
 __page_cache_alloc mm/filemap.c:981 [inline]
 __page_cache_alloc+0x183/0x1a0 mm/filemap.c:966
 pagecache_get_page+0x24b/0x6f0 mm/filemap.c:1671
 filemap_fault+0xc95/0x10a0 mm/filemap.c:2510
 ext4_filemap_fault+0x59/0x72 fs/ext4/inode.c:5977
 __do_fault+0xae/0x1f0 mm/memory.c:3188
 do_read_fault mm/memory.c:3585 [inline]
 do_fault mm/memory.c:3714 [inline]
 handle_pte_fault mm/memory.c:3945 [inline]
 __handle_mm_fault+0x270d/0x2e00 mm/memory.c:4075
 handle_mm_fault+0x21b/0x530 mm/memory.c:4112
 do_user_addr_fault arch/x86/mm/fault.c:1441 [inline]
 __do_page_fault+0x456/0x8d0 arch/x86/mm/fault.c:1506
 do_page_fault+0x38/0x194 arch/x86/mm/fault.c:1530
 page_fault+0x34/0x40 arch/x86/entry/entry_64.S:1203

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 8011 Comm: rsyslogd Not tainted 5.5.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (35):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/02/03 04:44 https://github.com/google/ktsan.git kcsan 245a43005292 93e5e335 .config console log report ci2-upstream-kcsan-gce
2020/01/31 02:31 https://github.com/google/ktsan.git kcsan 245a43005292 5ed23f9a .config console log report ci2-upstream-kcsan-gce
2020/01/26 13:53 https://github.com/google/ktsan.git kcsan 245a43005292 f4e7270e .config console log report ci2-upstream-kcsan-gce
2020/01/23 11:13 https://github.com/google/ktsan.git kcsan 245a43005292 3334d684 .config console log report ci2-upstream-kcsan-gce
2020/01/21 20:49 https://github.com/google/ktsan.git kcsan 245a43005292 8eda0b95 .config console log report ci2-upstream-kcsan-gce
2020/01/18 12:43 https://github.com/google/ktsan.git kcsan 245a43005292 3de7aabb .config console log report ci2-upstream-kcsan-gce
2020/01/15 07:54 https://github.com/google/ktsan.git kcsan 245a43005292 fa12bd3c .config console log report ci2-upstream-kcsan-gce
2020/01/14 11:17 https://github.com/google/ktsan.git kcsan 245a43005292 32881205 .config console log report ci2-upstream-kcsan-gce
2020/01/11 15:23 https://github.com/google/ktsan.git kcsan 245a43005292 4c04afaa .config console log report ci2-upstream-kcsan-gce
2020/01/11 15:23 https://github.com/google/ktsan.git kcsan 245a43005292 4c04afaa .config console log report ci2-upstream-kcsan-gce
2020/01/07 14:01 https://github.com/google/ktsan.git kcsan 245a43005292 1bcd407e .config console log report ci2-upstream-kcsan-gce
2020/01/03 23:00 https://github.com/google/ktsan.git kcsan 245a43005292 68256974 .config console log report ci2-upstream-kcsan-gce
2020/01/03 10:54 https://github.com/google/ktsan.git kcsan 245a43005292 9dcc1191 .config console log report ci2-upstream-kcsan-gce
2019/12/31 17:26 https://github.com/google/ktsan.git kcsan 245a43005292 25a0186e .config console log report ci2-upstream-kcsan-gce
2019/12/31 04:43 https://github.com/google/ktsan.git kcsan 245a43005292 7f117e28 .config console log report ci2-upstream-kcsan-gce
2019/12/30 18:10 https://github.com/google/ktsan.git kcsan 245a43005292 6b36d338 .config console log report ci2-upstream-kcsan-gce
2019/12/30 18:07 https://github.com/google/ktsan.git kcsan 245a43005292 6b36d338 .config console log report ci2-upstream-kcsan-gce
2019/12/28 11:41 https://github.com/google/ktsan.git kcsan 245a43005292 af6b8ef8 .config console log report ci2-upstream-kcsan-gce
2019/12/23 12:02 https://github.com/google/ktsan.git kcsan 245a43005292 be5c2c81 .config console log report ci2-upstream-kcsan-gce
2019/12/23 11:24 https://github.com/google/ktsan.git kcsan 245a43005292 be5c2c81 .config console log report ci2-upstream-kcsan-gce
2019/12/22 12:06 https://github.com/google/ktsan.git kcsan 245a43005292 8b967267 .config console log report ci2-upstream-kcsan-gce
2019/12/21 05:58 https://github.com/google/ktsan.git kcsan 245a43005292 bc586918 .config console log report ci2-upstream-kcsan-gce
2019/12/21 05:52 https://github.com/google/ktsan.git kcsan 245a43005292 bc586918 .config console log report ci2-upstream-kcsan-gce
2019/12/20 14:33 https://github.com/google/ktsan.git kcsan 245a43005292 34011c05 .config console log report ci2-upstream-kcsan-gce
2019/12/19 15:37 https://github.com/google/ktsan.git kcsan 245a43005292 36650b4b .config console log report ci2-upstream-kcsan-gce
2019/12/18 18:56 https://github.com/google/ktsan.git kcsan 245a43005292 79b211f7 .config console log report ci2-upstream-kcsan-gce
2019/12/18 05:05 https://github.com/google/ktsan.git kcsan 245a43005292 64ca0a37 .config console log report ci2-upstream-kcsan-gce
2019/12/17 15:42 https://github.com/google/ktsan.git kcsan 245a43005292 1af3875f .config console log report ci2-upstream-kcsan-gce
2019/12/17 04:04 https://github.com/google/ktsan.git kcsan 245a43005292 d13d7958 .config console log report ci2-upstream-kcsan-gce
2019/12/17 03:53 https://github.com/google/ktsan.git kcsan 245a43005292 d13d7958 .config console log report ci2-upstream-kcsan-gce
2019/12/16 09:34 https://github.com/google/ktsan.git kcsan 245a43005292 0ae38e44 .config console log report ci2-upstream-kcsan-gce
2019/12/14 09:07 https://github.com/google/ktsan.git kcsan 245a43005292 eef6e580 .config console log report ci2-upstream-kcsan-gce
2019/12/13 20:19 https://github.com/google/ktsan.git kcsan 245a43005292 a5c1ab05 .config console log report ci2-upstream-kcsan-gce
2019/12/13 06:38 https://github.com/google/ktsan.git kcsan 245a43005292 2a752b7c .config console log report ci2-upstream-kcsan-gce
2019/12/13 01:59 https://github.com/google/ktsan.git kcsan 245a43005292 08003f64 .config console log report ci2-upstream-kcsan-gce
* Struck through repros no longer work on HEAD.