syzbot


KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages (3)

Status: auto-obsoleted due to no activity on 2024/04/03 15:08
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+b84d1b89a5b93d83d240@syzkaller.appspotmail.com
First crash: 325d, last: 107d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages (4) mm 5 31d 62d 0/27 moderation: reported on 2024/04/12 21:37
upstream KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages (2) mm 6 421d 542d 0/27 auto-obsoleted due to no activity on 2023/05/25 03:03
upstream KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages block 4 836d 882d 0/27 auto-closed as invalid on 2022/04/05 12:28

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

read-write to 0xffff888100630bb0 of 8 bytes by task 3092 on cpu 0:
 page_cache_delete mm/filemap.c:145 [inline]
 __filemap_remove_folio+0x1d1/0x2d0 mm/filemap.c:223
 __remove_mapping+0x341/0x460 mm/vmscan.c:756
 remove_mapping+0x22/0x90 mm/vmscan.c:789
 mapping_evict_folio mm/truncate.c:293 [inline]
 mapping_try_invalidate+0x27d/0x3d0 mm/truncate.c:511
 invalidate_mapping_pages+0x27/0x30 mm/truncate.c:549
 invalidate_bdev+0x65/0x70 block/bdev.c:90
 ext4_put_super+0x51b/0x7e0 fs/ext4/super.c:1361
 generic_shutdown_super+0xdb/0x210 fs/super.c:641
 kill_block_super+0x2a/0x60 fs/super.c:1675
 ext4_kill_sb+0x44/0x80 fs/ext4/super.c:7319
 deactivate_locked_super+0x7a/0x1c0 fs/super.c:472
 deactivate_super+0x9b/0xb0 fs/super.c:505
 cleanup_mnt+0x272/0x2e0 fs/namespace.c:1267
 __cleanup_mnt+0x19/0x20 fs/namespace.c:1274
 task_work_run+0x135/0x1a0 kernel/task_work.c:180
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:108 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:201 [inline]
 syscall_exit_to_user_mode+0xbd/0x120 kernel/entry/common.c:212
 do_syscall_64+0xda/0x1d0 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x63/0x6b

read to 0xffff888100630bb0 of 8 bytes by task 14628 on cpu 1:
 nr_blockdev_pages+0x7c/0xd0 block/bdev.c:449
 si_meminfo+0x87/0xd0 mm/show_mem.c:80
 update_defense_level+0x46/0x600 net/netfilter/ipvs/ip_vs_ctl.c:101
 defense_work_handler+0x1f/0x80 net/netfilter/ipvs/ip_vs_ctl.c:235
 process_one_work kernel/workqueue.c:2633 [inline]
 process_scheduled_works+0x5b8/0xa40 kernel/workqueue.c:2706
 worker_thread+0x525/0x730 kernel/workqueue.c:2787
 kthread+0x1d7/0x210 kernel/kthread.c:388
 ret_from_fork+0x48/0x60 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:243

value changed: 0x000000000000000e -> 0x000000000000000d

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 14628 Comm: kworker/1:14 Not tainted 6.8.0-rc6-syzkaller-00021-gcf1182944c7c #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Workqueue: events_long defense_work_handler
==================================================================

Crashes (26):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/28 15:07 upstream cf1182944c7c 55d6f11d .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2024/02/22 19:46 upstream 1c892cdd8fe0 8d446f15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2024/02/21 10:58 upstream 9fc1ccccfd8d 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2024/02/18 18:45 upstream c02197fc9076 578f7538 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2024/01/29 07:19 upstream 4854cf9c61d0 cc4a4020 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2024/01/08 05:48 upstream 0dd3ee311255 d0304e9c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2024/01/01 12:47 upstream 610a9b8f49fb fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2023/12/20 22:58 upstream 1a44b0073b92 de21eb89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2023/12/17 21:10 upstream 0e389834672c 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2023/12/07 16:46 upstream bee0e7762ad2 0a02ce36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2023/12/03 19:55 upstream 33cc938e65a9 f819d6f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2023/11/18 05:43 upstream 791c8ab095f7 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2023/11/12 10:28 upstream 1b907d050735 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2023/11/09 16:19 upstream 6bc986ab839c 56230772 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2023/11/08 16:49 upstream 305230142ae0 b93f63e8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2023/11/03 12:35 upstream 8f6f76a6a29f c4ac074c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2023/10/29 00:00 upstream 51a7691038c3 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2023/10/14 13:39 upstream 8cb1f10d8c4b f757a323 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2023/10/10 13:53 upstream 94f6f0550c62 c9be5398 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2023/10/04 14:41 upstream cbf3a2cb156a b7d7ff54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2023/10/02 15:35 upstream 8a749fd1a872 50b20e75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2023/09/25 14:13 upstream 6465e260f487 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2023/09/22 09:40 upstream 27bbf45eae9c 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2023/09/13 17:23 upstream 3669558bdf35 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2023/08/26 08:33 upstream 382d4cd18475 7ba13a15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
2023/07/24 19:12 upstream 6eaae1980760 b03242d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in __filemap_remove_folio / nr_blockdev_pages
* Struck through repros no longer work on HEAD.