syzbot


KCSAN: data-race in data_alloc / data_push_tail

Status: moderation: reported on 2022/01/18 19:07
Reported-by: syzbot+cef5be5a11dab5cbd7ac@syzkaller.appspotmail.com
First crash: 567d, last: 14d

Sample crash report:
FAT-fs (loop3): bogus number of reserved sectors
==================================================================
BUG: KCSAN: data-race in data_alloc / data_push_tail

write to 0xffffffff8708fd40 of 8 bytes by task 12843 on cpu 0:
 data_alloc+0x205/0x2b0 kernel/printk/printk_ringbuffer.c:1074
 prb_reserve+0x897/0xbd0 kernel/printk/printk_ringbuffer.c:1555
 vprintk_store+0x51c/0xb50 kernel/printk/printk.c:2196
 vprintk_emit+0xcc/0x430 kernel/printk/printk.c:2252
 vprintk_default+0x22/0x30 kernel/printk/printk.c:2282
 vprintk+0x7f/0x90 kernel/printk/printk_safe.c:50
 _printk+0x76/0x96 kernel/printk/printk.c:2292
 _fat_msg+0xad/0xd1 fs/fat/misc.c:62
 fat_read_bpb fs/fat/inode.c:1488 [inline]
 fat_fill_super+0x140f/0x26c0 fs/fat/inode.c:1657
 vfat_fill_super+0x2c/0x40 fs/fat/namei_vfat.c:1200
 mount_bdev+0x1e2/0x280 fs/super.c:1400
 vfat_mount+0x2d/0x40 fs/fat/namei_vfat.c:1207
 legacy_get_tree+0x70/0xc0 fs/fs_context.c:610
 vfs_get_tree+0x49/0x190 fs/super.c:1530
 do_new_mount+0x200/0x650 fs/namespace.c:3040
 path_mount+0x4ad/0xbb0 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x281/0x2d0 fs/namespace.c:3568
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3568
 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+0x63/0xcd

read to 0xffffffff8708fd40 of 8 bytes by task 12844 on cpu 1:
 data_make_reusable kernel/printk/printk_ringbuffer.c:590 [inline]
 data_push_tail+0x10f/0x440 kernel/printk/printk_ringbuffer.c:675
 data_alloc+0xbc/0x2b0 kernel/printk/printk_ringbuffer.c:1046
 prb_reserve+0x897/0xbd0 kernel/printk/printk_ringbuffer.c:1555
 vprintk_store+0x51c/0xb50 kernel/printk/printk.c:2196
 vprintk_emit+0xcc/0x430 kernel/printk/printk.c:2252
 vprintk_default+0x22/0x30 kernel/printk/printk.c:2282
 vprintk+0x7f/0x90 kernel/printk/printk_safe.c:50
 _printk+0x76/0x96 kernel/printk/printk.c:2292
 _fat_msg+0xad/0xd1 fs/fat/misc.c:62
 fat_read_bpb fs/fat/inode.c:1488 [inline]
 fat_fill_super+0x140f/0x26c0 fs/fat/inode.c:1657
 vfat_fill_super+0x2c/0x40 fs/fat/namei_vfat.c:1200
 mount_bdev+0x1e2/0x280 fs/super.c:1400
 vfat_mount+0x2d/0x40 fs/fat/namei_vfat.c:1207
 legacy_get_tree+0x70/0xc0 fs/fs_context.c:610
 vfs_get_tree+0x49/0x190 fs/super.c:1530
 do_new_mount+0x200/0x650 fs/namespace.c:3040
 path_mount+0x4ad/0xbb0 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x281/0x2d0 fs/namespace.c:3568
 __x64_sys_mount+0x63/0x70 fs/namespace.c:3568
 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+0x63/0xcd

value changed: 0x00000000fffff2e9 -> 0x0000000100000374

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 12844 Comm: syz-executor.3 Not tainted 6.0.0-rc5-syzkaller-00097-g38eddeedbbea-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/26/2022
==================================================================
FAT-fs (loop3): Can't find a valid FAT filesystem
syz-executor.3 (12844) used greatest stack depth: 10992 bytes left

Crashes (80):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-upstream-kcsan-gce 2022/09/19 02:00 upstream 38eddeedbbea dd9a85ff .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/09/10 10:03 upstream ce888220d5c7 356d8217 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/09/02 00:27 upstream 2880e1a175b9 86c46e46 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/08/11 14:40 upstream ffcf9c5700e4 787ed7e0 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/08/09 14:37 upstream eb555cb5b794 da700653 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/08/09 02:39 upstream 3466f49dd0dd da700653 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/08/05 18:50 upstream c040862bfbd9 a65a7ce9 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/08/01 14:41 upstream 3d7cb6b04c3f fef302b1 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/07/26 04:21 upstream e0dccc3b76fb 34795c51 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/07/19 00:21 upstream 80e19f34c288 ff988920 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/07/15 20:26 upstream e5d523f1ae8f 5d921b08 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/07/02 00:48 upstream b336ad598a3b 1434eec0 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/06/25 01:01 upstream 38bc4ac43168 a371c43c .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/06/23 00:52 upstream 3abc3ae553c7 912f5df7 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/06/16 06:27 upstream 30306f6194ca 1719ee24 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/06/08 07:26 upstream 9886142c7a22 b2706118 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/06/03 05:25 upstream 58f9d52ff689 02dddea8 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/05/31 12:01 upstream 8ab2afa23bd1 af70c3a9 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/05/14 06:27 upstream f2dd007445b1 107f6434 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/04/30 19:24 upstream 8013d1d3d2e3 2df221f6 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/04/24 16:43 upstream 22da5264abf4 131df97d .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/04/08 03:57 upstream 42e7a03d3bad c6ff3e05 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/03/28 11:05 upstream f82da161ea75 89bc8608 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/03/19 12:11 upstream 34e047aa16c0 e2d91b1d .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/03/11 00:23 upstream 1db333d9a51f 9e8eaa75 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/03/09 06:37 upstream 92f90cc9fe0e 9e8eaa75 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/03/08 18:08 upstream ea4424be1688 7bdd8b2c .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/02/26 06:19 upstream c47658311d60 45a13a73 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/02/13 11:28 upstream b81b1829e7e3 8b9ca619 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/01/25 13:43 upstream dd81e1c7d5fb 2cbffd88 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/01/18 14:17 upstream e3a8b6a1e70c 731a2d23 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/01/17 13:51 upstream 0c947b893d69 731a2d23 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/01/15 22:54 upstream a33f5c380c4b 723cfaf0 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/01/05 08:22 upstream c9e6606c7fe9 0a2584dd .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2022/01/04 14:11 upstream c9e6606c7fe9 7f723fbe .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/12/28 21:51 upstream ecf71de775a0 76c8cf06 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/12/18 05:59 upstream 9eaa88c7036e 44068e19 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/11/28 15:08 upstream 3498e7f2bb41 63eeac02 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/11/20 22:46 upstream 61564e7b3abc 4eb20a4e .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/11/09 16:31 upstream d2f38a3c6507 59bcaf9a .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/11/07 18:51 upstream b5013d084e03 4c1be0be .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/11/03 11:59 upstream 56d33754481f 17f3edd2 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/11/02 01:56 upstream e66435936756 098b5d53 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/10/27 19:23 upstream d25f27432f80 be531bb4 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/10/21 08:22 upstream 2f111a6fd5b5 f111d03b .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/10/07 10:09 upstream 5af4055fa813 62ee0987 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/10/06 02:18 upstream 60a9483534ed 0a63fd36 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/09/26 12:13 upstream a3b397b4fffb 8cac236e .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/09/24 16:38 upstream f9e36107ec70 8cac236e .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/09/09 08:43 upstream 2d338201d531 e2776ee4 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/08/30 13:22 upstream 7d2a07b76933 8f58a0ef .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/08/26 05:32 upstream fe67f4dd8daa b599f2fc .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/08/15 17:17 upstream 0aa78d17099b 2489ab88 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/08/12 23:14 upstream f8fbb47c6e86 c551a195 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/07/30 03:32 upstream 7e96bf476270 8a799410 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/07/29 15:58 upstream 4010a528219e b44001ce .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/07/28 21:58 upstream 4010a528219e 9a4781d4 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/07/24 22:42 upstream f0fddcec6b62 4d1b57d4 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/07/23 15:05 upstream 8baef6386baa bc5f1d88 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/07/13 16:21 upstream 7fef2edf7cc7 70168d5c .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/07/12 00:30 upstream 98f7fdced2e0 8f5a7b8c .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/07/08 12:22 upstream 3dbdb38e2869 1aade754 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/06/22 04:08 upstream a96bfed64c89 aba2b2fb .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/06/20 04:47 upstream 913ec3c22ef4 aba2b2fb .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/06/16 14:08 upstream 94f0b2d4a1d0 c06f97ad .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/06/12 15:30 upstream ad347abe4a98 1ba81399 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/06/09 15:47 upstream 368094df48e6 84fe5d96 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/06/07 17:28 upstream 614124bea77e e59537be .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/05/31 13:01 upstream 8124c8a6b353 032639db .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/05/15 17:49 upstream 25a1298726e9 93f844de .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/05/13 17:17 upstream c06a2ba62fc4 ecb594cb .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/05/08 02:19 upstream 1ad77a05cfae bc5434be .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/04/29 14:21 upstream d72cd4ad4174 77e2b668 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/04/27 11:56 upstream 4a0225c3d208 805b5003 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/04/23 16:12 upstream 18a3c5f7abfd 17f0b706 .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/04/15 11:34 upstream 7f75285ca572 fcdb12ba .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/04/06 09:07 upstream 0a50438c8436 6a81331a .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/04/04 09:08 upstream 2023a53bdf41 6a81331a .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/03/18 17:57 upstream 6417f03132a6 7216542e .config log report info KCSAN: data-race in data_alloc / data_push_tail
ci2-upstream-kcsan-gce 2021/03/15 04:27 upstream 75013c6c52d8 cc1cff8f .config log report info KCSAN: data-race in data_alloc / data_push_tail
* Struck through repros no longer work on HEAD.