syzbot


KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages

Status: auto-closed as invalid on 2022/04/01 15:15
Reported-by: syzbot+@syzkaller.appspotmail.com
First crash: 391d, last: 285d

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

write to 0xffff888101bb46f0 of 8 bytes by task 1404 on cpu 1:
 __filemap_add_folio+0x256/0x4d0 mm/filemap.c:897
 filemap_add_folio+0x6b/0x150 mm/filemap.c:950
 __filemap_get_folio+0x4c4/0x690 mm/filemap.c:2001
 pagecache_get_page+0x26/0xe0 mm/folio-compat.c:125
 find_or_create_page include/linux/pagemap.h:488 [inline]
 grow_dev_page fs/buffer.c:949 [inline]
 grow_buffers fs/buffer.c:1014 [inline]
 __getblk_slow fs/buffer.c:1041 [inline]
 __getblk_gfp+0x189/0x530 fs/buffer.c:1334
 __getblk include/linux/buffer_head.h:382 [inline]
 jbd2_journal_get_descriptor_buffer+0x71/0x140 fs/jbd2/journal.c:1016
 jbd2_journal_commit_transaction+0x766/0x25f0 fs/jbd2/commit.c:643
 kjournald2+0x1cf/0x390 fs/jbd2/journal.c:213
 kthread+0x1bf/0x1e0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30

read to 0xffff888101bb46f0 of 8 bytes by task 1915 on cpu 0:
 nr_blockdev_pages+0x7f/0xd0 block/bdev.c:517
 si_meminfo+0x3a/0x60 mm/page_alloc.c:5798
 update_defense_level+0x46/0x560 net/netfilter/ipvs/ip_vs_ctl.c:102
 defense_work_handler+0x1b/0x80 net/netfilter/ipvs/ip_vs_ctl.c:236
 process_one_work+0x3f6/0x960 kernel/workqueue.c:2307
 worker_thread+0x616/0xa70 kernel/workqueue.c:2454
 kthread+0x1bf/0x1e0 kernel/kthread.c:377
 ret_from_fork+0x1f/0x30

value changed: 0x0000000000000d35 -> 0x0000000000000d36

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 1915 Comm: kworker/0:6 Not tainted 5.17.0-rc5-syzkaller-00189-g53ab78cd6d5a-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events_long defense_work_handler
==================================================================

Crashes (45):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/02/25 15:09 upstream 53ab78cd6d5a 7c337266 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2022/02/24 00:19 upstream 23d04328444a 6e821dbf .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2022/02/16 19:49 upstream 359303076163 50221962 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2022/02/03 12:12 upstream 88808fbbead4 4ebb2798 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2022/02/02 20:25 upstream 27bb0b18c208 4ebb2798 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2022/01/31 09:11 upstream 26291c54e111 a491ad2d .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2022/01/22 14:02 upstream 0809edbae347 214351e1 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2022/01/18 20:39 upstream 99613159ad74 731a2d23 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2022/01/15 11:48 upstream 112450df61b7 723cfaf0 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2022/01/13 00:30 upstream f079ab01b560 44d1319a .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2022/01/12 14:14 upstream daadb3bd0e8d 44d1319a .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2022/01/09 18:15 upstream 4634129ad9fd 2ca0d385 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2022/01/07 17:26 upstream ddec8ed2d490 2ca0d385 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2022/01/05 22:40 upstream 49ef78e59b07 6acc789a .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2022/01/05 00:25 upstream c9e6606c7fe9 0a2584dd .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2022/01/04 05:31 upstream c9e6606c7fe9 7f723fbe .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2022/01/03 04:39 upstream 1286cc4893cf e1768e9c .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2022/01/01 05:35 upstream 800829388818 e1768e9c .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/31 12:40 upstream 4f3d93c6eaff 36bd2e48 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/30 16:48 upstream eec4df26e24e 2e49f10d .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/30 04:42 upstream eec4df26e24e 6cc879d4 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/28 20:20 upstream a8ad9a2434dc 76c8cf06 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/27 16:36 upstream fc74e0a40e4f 5140bd58 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/24 11:36 upstream 7a29b11da965 6caa12e4 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/23 02:29 upstream bc491fb12513 6caa12e4 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/22 12:47 upstream 2f47a9a4dfa3 6caa12e4 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/21 01:15 upstream 86085fe79e3c 62bd192b .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/17 15:50 upstream 6441998e2e37 44068e19 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/17 02:45 upstream fa36bbe6d43f 44068e19 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/16 09:31 upstream 2b14864acbaa 572bcb40 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/12 05:39 upstream a763d5a5abd6 49ca1f59 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/11 14:19 upstream 9e65da135b39 49ca1f59 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/10 19:49 upstream c741e49150db fc17c959 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/07 12:18 upstream cd8c917a56f2 0230ba3e .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/06 22:45 upstream f80ef9e49fdf 0230ba3e .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/06 10:39 upstream 0fcfb00b28c0 579a8754 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/04 20:01 upstream bbef3c7a63d2 a617004c .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/04 01:50 upstream 12119cfa1052 a617004c .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/03 16:22 upstream 5f58da2befa5 c7c20675 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/12/01 19:46 upstream 58e1100fdc59 61f86278 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/11/30 11:49 upstream d58071a8a76d 80270552 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/11/29 19:50 upstream d58071a8a76d d0830353 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/11/26 22:27 upstream c5c17547b778 63eeac02 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/11/25 00:58 upstream 5f53fa508db0 545ab074 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
ci2-upstream-kcsan-gce 2021/11/11 02:11 upstream 89d714ab6043 75b04091 .config log report info KCSAN: data-race in __filemap_add_folio / nr_blockdev_pages
* Struck through repros no longer work on HEAD.