syzbot


KCSAN: data-race in data_alloc / data_push_tail

Status: auto-obsoleted due to no activity on 2023/05/31 17:30
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+cef5be5a11dab5cbd7ac@syzkaller.appspotmail.com
First crash: 1126d, last: 354d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KCSAN: data-race in data_alloc / data_push_tail (2) lvs block ext4 28 11d 43d 0/26 moderation: reported on 2024/03/02 15:49

Sample crash report:
EXT4-fs (sda1): re-mounted 5941fea2-f5fa-4b4e-b5ef-9af118b27b95. Quota mode: none.
==================================================================
BUG: KCSAN: data-race in data_alloc / data_push_tail

write to 0xffffffff86f0bdd8 of 8 bytes by task 25065 on cpu 1:
 data_alloc+0x216/0x2c0 kernel/printk/printk_ringbuffer.c:1074
 prb_reserve+0x893/0xbc0 kernel/printk/printk_ringbuffer.c:1555
 vprintk_store+0x53e/0x800 kernel/printk/printk.c:2230
 vprintk_emit+0xd0/0x430 kernel/printk/printk.c:2286
 vprintk_default+0x26/0x30 kernel/printk/printk.c:2316
 vprintk+0x83/0x90 kernel/printk/printk_safe.c:50
 _printk+0x7a/0xa0 kernel/printk/printk.c:2326
 selinux_add_opt+0x22b/0x280 security/selinux/hooks.c:993
 selinux_sb_eat_lsm_opts+0x6c1/0x770 security/selinux/hooks.c:2555
 security_sb_eat_lsm_opts+0x3e/0x70 security/security.c:1261
 shmem_parse_options+0x28/0x160 mm/shmem.c:3580
 parse_monolithic_mount_data+0x42/0x50 fs/fs_context.c:667
 do_new_mount+0x1d3/0x650 fs/namespace.c:3035
 path_mount+0x498/0xb40 fs/namespace.c:3369
 do_mount fs/namespace.c:3382 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x27f/0x2d0 fs/namespace.c:3568
 __x64_sys_mount+0x67/0x80 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

read to 0xffffffff86f0bdd8 of 8 bytes by task 25064 on cpu 0:
 data_make_reusable kernel/printk/printk_ringbuffer.c:590 [inline]
 data_push_tail+0x102/0x430 kernel/printk/printk_ringbuffer.c:675
 data_alloc+0xbe/0x2c0 kernel/printk/printk_ringbuffer.c:1046
 prb_reserve+0x893/0xbc0 kernel/printk/printk_ringbuffer.c:1555
 vprintk_store+0x53e/0x800 kernel/printk/printk.c:2230
 vprintk_emit+0xd0/0x430 kernel/printk/printk.c:2286
 vprintk_default+0x26/0x30 kernel/printk/printk.c:2316
 vprintk+0x83/0x90 kernel/printk/printk_safe.c:50
 _printk+0x7a/0xa0 kernel/printk/printk.c:2326
 __ext4_msg+0x18a/0x1a0 fs/ext4/super.c:937
 ext4_reconfigure+0x946/0x1720 fs/ext4/super.c:6646
 reconfigure_super+0x2a1/0x540 fs/super.c:956
 do_remount fs/namespace.c:2701 [inline]
 path_mount+0xa2a/0xb40 fs/namespace.c:3361
 do_mount fs/namespace.c:3382 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x27f/0x2d0 fs/namespace.c:3568
 __x64_sys_mount+0x67/0x80 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd

value changed: 0x0000000100000284 -> 0x00000001000011c0

Reported by Kernel Concurrency Sanitizer on:
CPU: 0 PID: 25064 Comm: syz-executor.0 Tainted: G        W          6.3.0-syzkaller-04626-g0cfd8703e7da #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023
==================================================================

Crashes (94):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/04/26 17:30 upstream 0cfd8703e7da 8d843721 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2023/04/20 13:11 upstream cb0856346a60 a219f34e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2023/04/09 17:58 upstream cdc9718d5e59 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2023/04/08 04:16 upstream aa318c48808c 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2023/03/21 03:33 upstream 7d31677bb7b1 7939252e .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2023/02/18 07:27 upstream 38f8ccde04a3 d02e9a70 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2023/02/07 14:57 upstream 05ecb680708a 5bc3be51 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2023/01/09 03:32 upstream 1fe4fd6f5cad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/12/27 23:55 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/12/24 16:20 upstream 51094a24b85e 9da18ae8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/12/04 13:12 upstream c2bf05db6c78 e080de16 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/11/20 12:57 upstream fe24a97cf254 5bb70014 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/11/03 16:52 upstream 8e5423e991e8 7a2ebf95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/10/15 11:20 upstream 9c9155a3509a 67cb024c .config console log report info [disk image] [vmlinux] ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/09/19 02:00 upstream 38eddeedbbea dd9a85ff .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/09/10 10:03 upstream ce888220d5c7 356d8217 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/09/02 00:27 upstream 2880e1a175b9 86c46e46 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/08/11 14:40 upstream ffcf9c5700e4 787ed7e0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/08/09 14:37 upstream eb555cb5b794 da700653 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/08/09 02:39 upstream 3466f49dd0dd da700653 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/08/05 18:50 upstream c040862bfbd9 a65a7ce9 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/08/01 14:41 upstream 3d7cb6b04c3f fef302b1 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/07/26 04:21 upstream e0dccc3b76fb 34795c51 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/07/19 00:21 upstream 80e19f34c288 ff988920 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/07/15 20:26 upstream e5d523f1ae8f 5d921b08 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/07/02 00:48 upstream b336ad598a3b 1434eec0 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/06/25 01:01 upstream 38bc4ac43168 a371c43c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/06/23 00:52 upstream 3abc3ae553c7 912f5df7 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/06/16 06:27 upstream 30306f6194ca 1719ee24 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/06/08 07:26 upstream 9886142c7a22 b2706118 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/06/03 05:25 upstream 58f9d52ff689 02dddea8 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/05/31 12:01 upstream 8ab2afa23bd1 af70c3a9 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/05/14 06:27 upstream f2dd007445b1 107f6434 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/04/30 19:24 upstream 8013d1d3d2e3 2df221f6 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/04/24 16:43 upstream 22da5264abf4 131df97d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/04/08 03:57 upstream 42e7a03d3bad c6ff3e05 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/03/28 11:05 upstream f82da161ea75 89bc8608 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/03/19 12:11 upstream 34e047aa16c0 e2d91b1d .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/03/11 00:23 upstream 1db333d9a51f 9e8eaa75 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/03/09 06:37 upstream 92f90cc9fe0e 9e8eaa75 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/03/08 18:08 upstream ea4424be1688 7bdd8b2c .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/02/26 06:19 upstream c47658311d60 45a13a73 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/02/13 11:28 upstream b81b1829e7e3 8b9ca619 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/01/25 13:43 upstream dd81e1c7d5fb 2cbffd88 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/01/18 14:17 upstream e3a8b6a1e70c 731a2d23 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2022/01/17 13:51 upstream 0c947b893d69 731a2d23 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2021/04/29 14:21 upstream d72cd4ad4174 77e2b668 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2021/04/27 11:56 upstream 4a0225c3d208 805b5003 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2021/04/23 16:12 upstream 18a3c5f7abfd 17f0b706 .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2021/04/15 11:34 upstream 7f75285ca572 fcdb12ba .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2021/04/06 09:07 upstream 0a50438c8436 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2021/04/04 09:08 upstream 2023a53bdf41 6a81331a .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2021/03/18 17:57 upstream 6417f03132a6 7216542e .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
2021/03/15 04:27 upstream 75013c6c52d8 cc1cff8f .config console log report info ci2-upstream-kcsan-gce KCSAN: data-race in data_alloc / data_push_tail
* Struck through repros no longer work on HEAD.