syzbot


KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add

Status: moderation: reported on 2021/12/15 21:37
Reported-by: syzbot+a5ff8b97fcf389a296c4@syzkaller.appspotmail.com
First crash: 416d, last: 14d

Sample crash report:
loop5: detected capacity change from 0 to 1024
EXT4-fs (loop5): VFS: Can't find ext4 filesystem
==================================================================
BUG: KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add

write to 0xffff888237c27968 of 1 bytes by task 26776 on cpu 0:
 pagevec_reinit include/linux/pagevec.h:57 [inline]
 __pagevec_lru_add+0x2f5/0x320 mm/swap.c:1065
 folio_add_lru+0x112/0x160 mm/swap.c:467
 lru_cache_add+0x3b/0xe0 mm/folio-compat.c:109
 lru_cache_add_inactive_or_unevictable+0x44/0x60 mm/swap.c:488
 wp_page_copy+0x7d8/0x1460 mm/memory.c:3171
 do_wp_page+0x76f/0xe10
 handle_pte_fault mm/memory.c:4921 [inline]
 __handle_mm_fault mm/memory.c:5042 [inline]
 handle_mm_fault+0x5fb/0xa90 mm/memory.c:5140
 do_user_addr_fault+0x4cd/0x940 arch/x86/mm/fault.c:1397
 handle_page_fault arch/x86/mm/fault.c:1484 [inline]
 exc_page_fault+0x60/0x160 arch/x86/mm/fault.c:1540
 asm_exc_page_fault+0x27/0x30
 __put_user_nocheck_4+0x3/0x11
 ____sys_recvmsg+0x211/0x2f0 net/socket.c:2724
 ___sys_recvmsg net/socket.c:2753 [inline]
 do_recvmmsg+0x53a/0xa30 net/socket.c:2847
 __sys_recvmmsg net/socket.c:2926 [inline]
 __do_sys_recvmmsg net/socket.c:2949 [inline]
 __se_sys_recvmmsg net/socket.c:2942 [inline]
 __x64_sys_recvmmsg+0xde/0x160 net/socket.c:2942
 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 0xffff888237c27968 of 1 bytes by task 26781 on cpu 1:
 pagevec_count include/linux/pagevec.h:62 [inline]
 __lru_add_drain_all+0x118/0x3e0 mm/swap.c:826
 lru_add_drain_all+0xc/0x10 mm/swap.c:849
 invalidate_bdev+0x56/0x80 block/bdev.c:87
 invalidate_disk+0x25/0xb0 block/genhd.c:678
 __loop_clr_fd+0x176/0x3c0 drivers/block/loop.c:1159
 loop_clr_fd drivers/block/loop.c:1252 [inline]
 lo_ioctl+0xd8c/0x1290 drivers/block/loop.c:1558
 blkdev_ioctl+0x20e/0x440 block/ioctl.c:614
 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

value changed: 0x0f -> 0x00

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 26781 Comm: syz-executor.5 Tainted: G        W         5.19.0-rc2-syzkaller-00050-g018ab4fabddd-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
==================================================================

Crashes (79):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/06/15 13:26 upstream 018ab4fabddd 1719ee24 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/06/12 00:59 upstream 0885eacdc81f 0d5abf15 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/06/03 17:17 upstream 50fd82b3a9a9 eee80d3c .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/05/30 11:31 upstream b00ed48bb0a7 a46af346 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/05/15 06:47 upstream 2fe1020d73ca 744a39e2 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/05/02 15:51 upstream 672c0c517342 2df221f6 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/04/24 01:57 upstream 13bc32bad705 131df97d .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/04/23 04:42 upstream d569e86915b7 131df97d .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/04/20 01:19 upstream b7f73403a3e9 33fc6ed6 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/04/13 09:49 upstream a19944809fe9 faabdb86 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/04/10 06:57 upstream e1f700ebd6be e22c3da3 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/04/02 05:28 upstream d0d642a5d365 79a2a8fc .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/03/16 23:45 upstream 56e337f2cf13 46cc3b21 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/03/15 22:54 upstream 56e337f2cf13 9e8eaa75 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/03/05 08:21 upstream 07ebd38a0da2 45a13a73 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/03/03 09:00 upstream 92ebf5f91b4d 45a13a73 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/03/02 15:25 upstream fb184c4af9b9 45a13a73 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/03/01 14:30 upstream 719fce7539cd 45a13a73 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/02/25 14:27 upstream 53ab78cd6d5a 7c337266 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/01/31 16:53 upstream 26291c54e111 a491ad2d .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/01/28 20:51 upstream df0001545b27 495e00c5 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/01/25 10:57 upstream dd81e1c7d5fb 2cbffd88 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/01/19 22:25 upstream 1d1df41c5a33 5da9499f .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2022/01/14 17:57 upstream 871bfa02d08d 53e00b45 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/12/29 10:32 upstream e7c124bd0463 76c8cf06 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/12/26 00:01 upstream e2ae0d4a6b0b 6caa12e4 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/12/25 04:16 upstream b927dfc67d05 6caa12e4 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/12/20 12:13 upstream a7904a538933 021b36cb .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/12/16 23:31 upstream fa36bbe6d43f 8dd6a5e3 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/12/12 21:49 upstream 90d9fbc16b69 49ca1f59 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/12/11 18:13 upstream 6f513529296f 49ca1f59 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/12/07 01:54 upstream f80ef9e49fdf 0230ba3e .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/11/29 23:49 upstream d58071a8a76d d0830353 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/11/28 13:25 upstream 3498e7f2bb41 63eeac02 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/11/26 08:51 upstream a4849f6000e2 63eeac02 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/11/21 19:21 upstream 923dcc5eb0c1 4eb20a4e .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/11/08 22:06 upstream e851dfae4371 d29682f1 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/11/07 12:13 upstream b5013d084e03 4c1be0be .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/11/03 09:12 upstream 56d33754481f 17f3edd2 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/11/01 23:24 upstream e66435936756 098b5d53 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/10/14 02:03 upstream 348949d9a444 5462d470 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/10/08 09:02 upstream 1da38549dd64 efe0f24d .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/10/06 23:37 upstream 60a9483534ed 62ee0987 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/10/01 16:18 upstream 4de593fb965f cc80db95 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/10/01 00:52 upstream 4de593fb965f 0f01403d .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/09/29 14:36 upstream a4e6f95a891a e08fe937 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/09/29 09:18 upstream a4e6f95a891a d82cb927 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/09/25 01:38 upstream 7d42e9818258 8cac236e .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/09/21 17:45 upstream d9fb678414c0 169724fe .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/09/20 21:37 upstream e8f71f89236e af796c18 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/09/20 04:07 upstream 20621d2f27a0 70b76c1d .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/09/17 04:17 upstream bdb575f87217 5b989942 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/09/15 22:21 upstream 80be5998ad63 07e953c1 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/09/12 17:24 upstream 78e709522d2c 3ce60af8 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/09/12 01:36 upstream c605c39677b9 3ce60af8 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/09/06 15:04 upstream 27151f177827 6ca60148 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/09/03 03:43 upstream 7ba88a2a09f4 f62a5829 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/08/31 18:47 upstream b91db6a0b52e 7eb7e152 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/08/28 07:28 upstream 64b4fc45bea6 d5a29e53 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/08/19 15:59 upstream d6d09a694205 e2da378b .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/08/18 21:15 upstream d6d09a694205 a2fe1cb5 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/08/12 09:11 upstream 1746f4db5135 6972b106 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/08/06 01:48 upstream e04480920d1e d2d6e680 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/08/04 22:57 upstream 251a1524293d b97d64c9 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/07/31 00:29 upstream 4669e13cd67f 6c236867 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/07/27 18:50 upstream ff1176468d36 17d6ab15 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/07/15 21:56 upstream dd9c7df94c1b f115ae98 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/07/02 15:25 upstream 3dbdb38e2869 658ebc66 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/07/02 02:44 upstream e058a84bfddc 658ebc66 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/06/29 15:43 upstream c54b245d0118 9d2ab5df .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/06/29 15:31 upstream c54b245d0118 9d2ab5df .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/06/20 21:53 upstream cba5e97280f5 aba2b2fb .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/06/19 02:07 upstream b1edae0d5f2e aba2b2fb .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/06/11 10:05 upstream 06af8679449d 1ba81399 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/06/09 04:22 upstream 4c8684fe555e 5c2fe346 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/05/21 04:14 upstream ba816d3c265c 3c7fef33 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/05/17 11:55 upstream d07f6ca923ea a2eb125d .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/05/12 17:57 upstream 88b06399c9c7 86294427 .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add
ci2-upstream-kcsan-gce 2021/05/10 00:52 upstream 9819f682e48c bc5434be .config log report info KCSAN: data-race in __lru_add_drain_all / __pagevec_lru_add