syzbot


KMSAN: uninit-value in reiserfs_security_init

Status: fixed on 2023/09/28 17:51
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+00a3779539a23cbee38c@syzkaller.appspotmail.com
Fix commit: d031f4e8b493 reiserfs: Initialize sec->length in reiserfs_security_init().
First crash: 384d, last: 323d
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] reiserfs: Initialize sec->length in reiserfs_security_init(). 3 (3) 2023/05/25 21:49
[syzbot] [reiserfs?] KMSAN: uninit-value in reiserfs_security_init 0 (1) 2023/05/10 21:49
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in reiserfs_security_init reiserfs C done 26311 1153d 1345d 20/26 fixed on 2021/11/10 00:50

Sample crash report:
REISERFS (device loop2): journal params: device loop2, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30
REISERFS (device loop2): checking transaction log (loop2)
REISERFS (device loop2): Using r5 hash to sort names
reiserfs: enabling write barrier flush mode
=====================================================
BUG: KMSAN: uninit-value in reiserfs_security_init+0x663/0x750 fs/reiserfs/xattr_security.c:84
 reiserfs_security_init+0x663/0x750 fs/reiserfs/xattr_security.c:84
 reiserfs_mkdir+0x418/0xfc0 fs/reiserfs/namei.c:823
 xattr_mkdir fs/reiserfs/xattr.c:77 [inline]
 create_privroot fs/reiserfs/xattr.c:890 [inline]
 reiserfs_xattr_init+0x47e/0xc00 fs/reiserfs/xattr.c:1006
 reiserfs_remount+0xf9c/0x2390
 legacy_reconfigure+0x182/0x1d0 fs/fs_context.c:633
 reconfigure_super+0x346/0xdf0 fs/super.c:956
 do_remount fs/namespace.c:2701 [inline]
 path_mount+0x19c1/0x1ee0 fs/namespace.c:3361
 do_mount fs/namespace.c:3382 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x725/0x810 fs/namespace.c:3568
 __ia32_sys_mount+0xe3/0x150 fs/namespace.c:3568
 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline]
 __do_fast_syscall_32+0xa2/0x100 arch/x86/entry/common.c:178
 do_fast_syscall_32+0x37/0x80 arch/x86/entry/common.c:203
 do_SYSENTER_32+0x1f/0x30 arch/x86/entry/common.c:246
 entry_SYSENTER_compat_after_hwframe+0x70/0x82

Local variable security created at:
 reiserfs_mkdir+0x5f/0xfc0 fs/reiserfs/namei.c:791
 xattr_mkdir fs/reiserfs/xattr.c:77 [inline]
 create_privroot fs/reiserfs/xattr.c:890 [inline]
 reiserfs_xattr_init+0x47e/0xc00 fs/reiserfs/xattr.c:1006

CPU: 0 PID: 5219 Comm: syz-executor.2 Not tainted 6.4.0-syzkaller-g257152fe29be #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/03/2023
=====================================================

Crashes (4169):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/10 02:09 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/09 21:43 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/09 14:45 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/09 09:59 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/09 09:35 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/09 07:38 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/09 05:03 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/08 23:21 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/08 18:21 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/08 16:29 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/08 11:49 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/08 10:33 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/08 09:07 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/08 01:57 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/07 23:17 https://github.com/google/kmsan.git master 257152fe29be 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/07 22:08 https://github.com/google/kmsan.git master 257152fe29be 22ae5830 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/07 18:36 https://github.com/google/kmsan.git master 257152fe29be 22ae5830 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/07 14:34 https://github.com/google/kmsan.git master 257152fe29be 22ae5830 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/07 12:58 https://github.com/google/kmsan.git master 257152fe29be 22ae5830 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/07 08:59 https://github.com/google/kmsan.git master 257152fe29be 22ae5830 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/07 02:17 https://github.com/google/kmsan.git master 257152fe29be 1a2f6297 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/06 22:21 https://github.com/google/kmsan.git master 257152fe29be 1a2f6297 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/06 09:55 https://github.com/google/kmsan.git master 257152fe29be ba5dba36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/06 07:42 https://github.com/google/kmsan.git master 257152fe29be ba5dba36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/06 04:30 https://github.com/google/kmsan.git master 257152fe29be ba5dba36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/05 22:44 https://github.com/google/kmsan.git master 257152fe29be ba5dba36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/05 21:04 https://github.com/google/kmsan.git master 257152fe29be ba5dba36 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/05 15:37 https://github.com/google/kmsan.git master 257152fe29be 80298b6f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/05 14:34 https://github.com/google/kmsan.git master 257152fe29be 80298b6f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/05 08:44 https://github.com/google/kmsan.git master 257152fe29be 80298b6f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/05 06:22 https://github.com/google/kmsan.git master 257152fe29be 80298b6f .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/04 23:31 https://github.com/google/kmsan.git master 257152fe29be 17a98177 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/04 21:24 https://github.com/google/kmsan.git master 257152fe29be 17a98177 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/04 18:55 https://github.com/google/kmsan.git master 257152fe29be 17a98177 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/04 15:23 https://github.com/google/kmsan.git master 257152fe29be 17a98177 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/04 08:57 https://github.com/google/kmsan.git master 257152fe29be 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/04 07:08 https://github.com/google/kmsan.git master 257152fe29be 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/04 05:08 https://github.com/google/kmsan.git master 257152fe29be 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/04 02:45 https://github.com/google/kmsan.git master 257152fe29be 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/03 21:27 https://github.com/google/kmsan.git master 257152fe29be 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/03 18:36 https://github.com/google/kmsan.git master 257152fe29be 6e553898 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/03 13:03 https://github.com/google/kmsan.git master 257152fe29be bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/03 10:33 https://github.com/google/kmsan.git master 257152fe29be bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/03 10:26 https://github.com/google/kmsan.git master 257152fe29be bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/07/03 05:50 https://github.com/google/kmsan.git master 257152fe29be bfc47836 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/05/10 21:33 https://github.com/google/kmsan.git master 46e8b6e7cfeb 0fbd49f4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/05/10 06:55 https://github.com/google/kmsan.git master 46e8b6e7cfeb 1964022b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
2023/05/10 02:39 https://github.com/google/kmsan.git master 46e8b6e7cfeb 1964022b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kmsan-gce-386 KMSAN: uninit-value in reiserfs_security_init
* Struck through repros no longer work on HEAD.