syzbot


KCSAN: data-race in do_select / pollwake
Status: moderation: reported on 2020/07/06 15:42
Reported-by: syzbot+5a0758690f26e1909c08@syzkaller.appspotmail.com
First crash: 706d, last: 12h23m

Sample crash report:
==================================================================
BUG: KCSAN: data-race in do_select / pollwake

write to 0xffffc9000146ba70 of 4 bytes by interrupt on cpu 0:
 __pollwake fs/select.c:198 [inline]
 pollwake+0xb9/0x110 fs/select.c:218
 __wake_up_common+0xbc/0x130 kernel/sched/wait.c:107
 __wake_up_common_lock kernel/sched/wait.c:137 [inline]
 __wake_up+0x80/0xc0 kernel/sched/wait.c:156
 ring_buffer_wakeup kernel/events/core.c:5972 [inline]
 perf_event_wakeup kernel/events/core.c:6407 [inline]
 perf_pending_event+0x2b2/0x3c0 kernel/events/core.c:6493
 irq_work_single kernel/irq_work.c:211 [inline]
 irq_work_run_list kernel/irq_work.c:242 [inline]
 irq_work_run+0xf1/0x2f0 kernel/irq_work.c:251
 __sysvec_irq_work+0x1e/0xb0 arch/x86/kernel/irq_work.c:22
 sysvec_irq_work+0x87/0xb0 arch/x86/kernel/irq_work.c:17
 asm_sysvec_irq_work+0x1b/0x20
 is_atomic kernel/kcsan/core.c:247 [inline]
 should_watch kernel/kcsan/core.c:275 [inline]
 check_access kernel/kcsan/core.c:741 [inline]
 __tsan_read8+0x11f/0x180 kernel/kcsan/core.c:1014
 folio_memcg_kmem include/linux/memcontrol.h:554 [inline]
 uncharge_folio+0x1d/0x350 mm/memcontrol.c:6770
 __mem_cgroup_uncharge_list+0x4c/0x90 mm/memcontrol.c:6843
 mem_cgroup_uncharge_list include/linux/memcontrol.h:710 [inline]
 release_pages+0xd27/0xd60 mm/swap.c:979
 __pagevec_release+0x5d/0x70 mm/swap.c:1000
 pagevec_release include/linux/pagevec.h:82 [inline]
 folio_batch_release include/linux/pagevec.h:146 [inline]
 truncate_inode_pages_range+0x442/0xae0 mm/truncate.c:373
 truncate_inode_pages+0x20/0x30 mm/truncate.c:452
 swap_inode_boot_loader fs/ext4/ioctl.c:405 [inline]
 __ext4_ioctl fs/ext4/ioctl.c:1335 [inline]
 ext4_ioctl+0x1edb/0x2740 fs/ext4/ioctl.c:1519
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0xcb/0x140 fs/ioctl.c:856
 __x64_sys_ioctl+0x3f/0x50 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

read to 0xffffc9000146ba70 of 4 bytes by task 2371 on cpu 1:
 poll_schedule_timeout fs/select.c:243 [inline]
 do_select+0xf2e/0x1020 fs/select.c:607
 core_sys_select+0x368/0x520 fs/select.c:681
 do_pselect fs/select.c:763 [inline]
 __do_sys_pselect6+0x1f4/0x250 fs/select.c:804
 __se_sys_pselect6 fs/select.c:795 [inline]
 __x64_sys_pselect6+0x74/0x80 fs/select.c:795
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x46/0xb0

value changed: 0x00000000 -> 0x00000001

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 2371 Comm: syz-executor.1 Not tainted 5.18.0-syzkaller-02752-gfdaf9a5840ac-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (1948):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/05/25 13:37 upstream fdaf9a5840ac 3037caa9 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/25 11:55 upstream fdaf9a5840ac 647c0e27 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/24 22:23 upstream 0350785b0a09 647c0e27 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/24 10:18 upstream 143a6252e1b8 fcfad4ff .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/23 23:18 upstream 140e40e39a29 e7f9308d .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/23 09:19 upstream 4b0986a3613c 7268fa62 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/22 19:58 upstream 978df3e15846 7268fa62 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/22 06:41 upstream eaea45fc0e7b 7268fa62 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/21 17:32 upstream 6c3f5bec9b40 7268fa62 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/21 04:34 upstream 3b5e1590a267 7268fa62 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/20 15:53 upstream 3d7285a335ed bd37ad7e .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/20 14:19 upstream 3d7285a335ed cb1ac2e7 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/20 00:55 upstream b015dcd62b86 cb1ac2e7 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/19 11:33 upstream f993aed406ea cb1ac2e7 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/19 05:59 upstream f993aed406ea 50c53f39 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/18 16:52 upstream ef1302160bfb 50c53f39 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/18 13:45 upstream 210e04ff7681 50c53f39 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/18 00:22 upstream 210e04ff7681 744a39e2 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/16 03:40 upstream 42226c989789 744a39e2 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/15 14:17 upstream bc403203d65a 744a39e2 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/15 00:31 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/14 10:44 upstream ec7f49619d8e 744a39e2 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/13 22:02 upstream f2dd007445b1 107f6434 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/13 09:33 upstream f3f19f939c11 7ce5a022 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/13 08:23 upstream f3f19f939c11 9ad6612a .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/12 18:55 upstream 0ac824f379fb 9ad6612a .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/12 13:14 upstream feb9c5e19e91 9ad6612a .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/11 16:50 upstream feb9c5e19e91 beb0b407 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/10 23:19 upstream feb9c5e19e91 8d7b3b67 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/09 16:21 upstream 9be9ed2612b5 8b277b8e .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/09 08:40 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/09 07:36 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/09 06:25 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/09 05:12 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/09 04:12 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/09 03:33 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/09 02:25 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/09 01:16 upstream c5eb0a61238d e60b1103 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/09 00:00 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/08 22:46 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/08 22:34 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/08 21:11 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/08 19:49 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/08 18:32 upstream 379c72654524 e60b1103 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/08 17:20 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2022/05/08 16:29 upstream 30c8e80f7932 e60b1103 .config log report info KCSAN: data-race in do_select / pollwake
ci2-upstream-kcsan-gce 2021/01/17 10:06 upstream 0da0a8a0a0e1 813be542 .config log report info
ci2-upstream-kcsan-gce 2020/07/06 08:33 upstream dcb7fd82c75e ac5a135b .config log report
ci2-upstream-kcsan-gce 2020/07/05 14:06 upstream 35e884f89df4 22f87567 .config log report
ci2-upstream-kcsan-gce 2020/06/18 14:19 upstream 1b5044021070 3ea11d3f .config log report