syzbot


KCSAN: data-race in data_alloc / prb_reserve

Status: moderation: reported on 2021/03/25 21:28
Reported-by: syzbot+3ef70d22840405b8403f@syzkaller.appspotmail.com
First crash: 782d, last: now

Sample crash report:
EXT4-fs (loop1): orphan cleanup on readonly fs
==================================================================
BUG: KCSAN: data-race in data_alloc / prb_reserve

write to 0xffffffff85a6fd88 of 8 bytes by task 5321 on cpu 1:
 data_alloc+0x291/0x2c0
 prb_reserve+0x893/0xbc0
 vprintk_store+0x53d/0x800
 vprintk_emit+0xd0/0x430
 vprintk_default+0x26/0x30
 vprintk+0x83/0x90
 _printk+0x7a/0xa0
 __ext4_msg+0x18a/0x1a0
 ext4_fill_super+0x394f/0x44e0
 get_tree_bdev+0x2b1/0x3a0
 ext4_get_tree+0x1c/0x20
 vfs_get_tree+0x51/0x190
 do_new_mount+0x200/0x650
 path_mount+0x493/0xb00
 __se_sys_mount+0x27f/0x2d0
 __x64_sys_mount+0x67/0x80
 do_syscall_64+0x41/0xc0
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffffffff85a6fd88 of 8 bytes by task 5325 on cpu 0:
 prb_reserve+0x229/0xbc0
 vprintk_store+0x53d/0x800
 vprintk_emit+0xd0/0x430
 vprintk_default+0x26/0x30
 vprintk+0x83/0x90
 _printk+0x7a/0xa0
 __quota_error+0xf3/0x100
 qtree_write_dquot+0x1c4/0x2b0
 v2_write_dquot+0x9e/0xd0
 dquot_acquire+0x1c8/0x2d0
 ext4_acquire_dquot+0x161/0x1a0
 dqget+0x667/0x830
 __dquot_initialize+0x263/0x750
 dquot_initialize+0x1a/0x20
 ext4_process_orphan+0x32/0x1c0
 ext4_orphan_cleanup+0x66c/0x9c0
 ext4_fill_super+0x421c/0x44e0
 get_tree_bdev+0x2b1/0x3a0
 ext4_get_tree+0x1c/0x20
 vfs_get_tree+0x51/0x190
 do_new_mount+0x200/0x650
 path_mount+0x493/0xb00
 __se_sys_mount+0x27f/0x2d0
 __x64_sys_mount+0x67/0x80
 do_syscall_64+0x41/0xc0
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000000278fc8 -> 0x0000000000320628

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 5325 Comm: syz-executor.1 Not tainted 6.2.0-rc7-syzkaller-00013-g513c1a3d3f19-dirty #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
==================================================================
Quota error (device loop1): dq_insert_tree: Quota tree root isn't allocated!
Quota error (device loop1): qtree_write_dquot: Error -5 occurred while creating quota
EXT4-fs error (device loop1): ext4_mb_generate_buddy:1098: group 0, block bitmap and bg descriptor inconsistent: 252 vs 41 free clusters
EXT4-fs (loop1): 1 truncate cleaned up

Crashes (540):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets Title
ci2-upstream-kcsan-gce 2023/02/08 08:36 upstream 513c1a3d3f19 15c3d445 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2023/01/28 05:49 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2023/01/26 12:42 upstream 7c46948a6e9c 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2023/01/22 19:07 upstream 2241ab53cbb5 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2023/01/15 23:47 upstream 7c6984405241 a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2023/01/12 21:17 upstream e8f60cd7db24 96166539 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2023/01/08 23:06 upstream 9b43a525db12 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2023/01/07 07:26 upstream 1f5abbd77e2c 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2023/01/05 19:29 upstream 512dee0c00ad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2023/01/04 22:39 upstream 69b41ac87e4a 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2023/01/01 21:34 upstream e4cf7c25bae5 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2023/01/01 02:31 upstream c8451c141e07 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/12/26 06:20 upstream 1b929c02afd3 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/12/19 21:56 upstream aeba12b26c79 c52b2efb .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/12/12 13:14 upstream 4cee37b3a4e6 67be1ae7 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/11/07 20:50 upstream f0c4d9fc9cc9 a779b11a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/11/06 19:23 upstream 2f5065a0bc9d 6d752409 .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/11/01 10:17 upstream 5aaef24b5c6d a1d8560a .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/10/31 05:18 upstream b72018ab8236 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/10/25 17:55 upstream 337a0a0b63f1 45645420 .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/10/24 22:05 upstream 247f34f7b803 faae2fda .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/10/22 03:19 upstream 6d36c728bc2e 63e790dd .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/10/20 00:07 upstream aae703b02f92 b31320fc .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/10/16 20:32 upstream 1501278bb7ba 67cb024c .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/10/12 17:59 upstream 49da07006239 16a9c9e0 .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/10/04 04:13 upstream 4fe89d07dcc2 feb56351 .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/10/03 14:12 upstream a962b54e162c feb56351 .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/10/02 15:30 upstream b357fd1c2afc feb56351 .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/09/28 12:40 upstream 46452d3786a8 75c78242 .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/09/25 08:33 upstream 1a61b828566f 0042f2b4 .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/09/23 13:39 upstream dc164f4fb00a 0042f2b4 .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/09/22 08:00 upstream 06f7db949993 60af5050 .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/09/21 14:02 upstream 60891ec99e14 380f82fb .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/09/21 07:10 upstream 60891ec99e14 c4b8ccfd .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/09/19 16:40 upstream 521a547ced64 dd9a85ff .config console log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/09/17 13:51 upstream a335366bad13 dd9a85ff .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/09/17 00:27 upstream 6879c2d3b960 dd9a85ff .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/09/16 13:55 upstream 3245cb65fd91 dd9a85ff .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/09/13 23:19 upstream d1221cea11fc b884348d .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/09/11 06:14 upstream b96fbd602d35 356d8217 .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/09/08 19:07 upstream 26b1224903b3 f3027468 .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/09/07 18:01 upstream 0066f1b0e275 c5b7bc57 .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/09/07 10:44 upstream d2ec799d1c1b 5fc30c37 .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/09/06 15:49 upstream 53e99dcff61e 65aea2b9 .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/09/03 12:14 upstream d895ec7938c4 49e94a20 .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/08/30 16:58 upstream dcf8e5633e2e 4a380809 .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/08/29 02:55 upstream 8379c0b31fbc 07177916 .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/08/28 04:47 upstream 89b749d8552d 07177916 .config console log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/08/27 10:21 upstream e022620b5d05 07177916 .config console log report info [disk image] [vmlinux] KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/08/24 15:30 upstream c40e8341e3b3 514514f6 .config console log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2022/08/23 06:32 upstream 072e51356cd5 26a13b38 .config console log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2021/03/23 05:33 upstream 0d02ec6b3136 8092f30d .config console log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2021/03/21 21:14 upstream 812da4d39463 4c9a64da .config console log report info KCSAN: data-race in data_alloc / prb_reserve
ci2-upstream-kcsan-gce 2021/01/11 05:54 upstream 0653161f0fac 2c1f2513 .config console log report info
ci2-upstream-kcsan-gce 2020/12/17 20:32 upstream accefff5b547 04201c06 .config console log report info
* Struck through repros no longer work on HEAD.