syzbot


KMSAN: uninit-value in recvmmsg

Status: auto-obsoleted due to no activity on 2022/11/01 09:39
Subsystems: net
[Documentation on labels]
First crash: 603d, last: 603d

Sample crash report:
Aug  3 09:31:33 syzkaller user.warn kernel: [ 3121.800072][ T2214]  recvmsg_copy_msghdr net/socket.c:2671 [inline]
Aug  3 09:31:33 syzkaller user.warn kernel: [ 3121.800072][ T2214]  ___sys_recvmsg+0x19d/0x890 net/socket.c:2745
Aug  3 09:31:33 syzkaller user.warn kernel: [ 3121.800174][ T2214]  do_recvmmsg+0x63a/0x10a0 net/socket.c:2835
Aug  3 09:31:33 syzkaller user.warn kernel: [ 3121.800[ 3144.838306][ T2830] =====================================================
265][ T2214]  __[ 3144.846279][ T2830] BUG: KMSAN: uninit-value in ext4_inode_journal_mode+0x24f/0x480 fs/ext4/ext4_jbd2.c:16
sys_recvmmsg+0x1[ 3144.850189][ T2330] loop2: detected capacity change from 0 to 8
13/0x450
Aug  3[ 3144.855120][ T2830]  ext4_inode_journal_mode+0x24f/0x480 fs/ext4/ext4_jbd2.c:16
 09:31:33 syzkal[ 3144.869614][ T2830]  ext4_should_journal_data fs/ext4/ext4_jbd2.h:465 [inline]
 09:31:33 syzkal[ 3144.869614][ T2830]  ext4_evict_inode+0x166/0x2660 fs/ext4/inode.c:200
ler user.crit ke[ 3144.876365][ T2830]  evict+0x365/0x9a0 fs/inode.c:664
rnel: [ 3121.808[ 3144.881265][ T2830]  iput_final fs/inode.c:1744 [inline]
rnel: [ 3121.808[ 3144.881265][ T2830]  iput+0x985/0xdd0 fs/inode.c:1770
789][ T2848] EXT[ 3144.886562][ T2830]  iget_failed+0x1f0/0x250 fs/bad_inode.c:250
4-fs error (devi[ 3144.892459][ T2830]  __ext4_iget+0x4907/0x5e90 fs/ext4/inode.c:5031
ce sda1): ext4_l[ 3144.898423][ T2830]  ext4_lookup+0x6f3/0xcb0 fs/ext4/namei.c:1808
ookup:1808: inod[ 3144.904681][ T2830]  __lookup_slow+0x50d/0x740 fs/namei.c:1701
e #528: comm ude[ 3144.910321][ T2830]  lookup_slow+0x6a/0xc0 fs/namei.c:1718
vd: iget: checks[ 3144.916102][ T2830]  walk_component+0x42d/0x760 fs/namei.c:2014
um invalid
Aug  3 09:31:34 syzk[ 3144.924378][ T2830]  link_path_walk+0x8a4/0x13f0
aller user.warn [ 3144.930013][ T2830]  path_openat+0x333/0x5780 fs/namei.c:3649
kernel: [ 3121.8[ 3144.935714][ T2830]  do_filp_open+0x249/0x660 fs/namei.c:3680
10460][ T2214]  [ 3144.941583][ T2830]  do_sys_openat2+0x1f0/0x910 fs/open.c:1278
__ia32_compat_sy[ 3144.947646][ T2830]  do_sys_open fs/open.c:1294 [inline]
__ia32_compat_sy[ 3144.947646][ T2830]  __do_sys_openat fs/open.c:1310 [inline]
__ia32_compat_sy[ 3144.947646][ T2830]  __se_sys_openat fs/open.c:1305 [inline]
__ia32_compat_sy[ 3144.947646][ T2830]  __x64_sys_openat+0x2b0/0x330 fs/open.c:1305
s_recvmmsg_time3[ 3144.953921][ T2830]  do_syscall_x64 arch/x86/entry/common.c:50 [inline]
s_recvmmsg_time3[ 3144.953921][ T2830]  do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
2+0xf1/0x180
Au[ 3144.959734][ T2830]  entry_SYSCALL_64_after_hwframe+0x63/0xcd
g  3 09:31:34 sy[ 3144.967161][ T2830] 
zkaller user.cri[ 3144.970842][ T2830] Uninit was created at:
t kernel: [ 3121[ 3144.976629][ T2830]  __alloc_pages+0x9f1/0xe80 mm/page_alloc.c:5467
.833594][ T2848][ 3144.982537][ T2830]  alloc_pages+0x927/0xc00 mm/mempolicy.c:2272
 EXT4-fs error ([ 3144.988307][ T2830]  alloc_slab_page mm/slub.c:1839 [inline]
 EXT4-fs error ([ 3144.988307][ T2830]  allocate_slab+0x19b/0xef0 mm/slub.c:1984
device sda1): ex[ 3144.994321][ T2830]  new_slab mm/slub.c:2044 [inline]
device sda1): ex[ 3144.994321][ T2830]  ___slab_alloc+0xa85/0x1c60 mm/slub.c:3046
t4_lookup:1808: [ 3145.000353][ T2830]  __slab_alloc mm/slub.c:3133 [inline]
t4_lookup:1808: [ 3145.000353][ T2830]  slab_alloc_node mm/slub.c:3224 [inline]
t4_lookup:1808: [ 3145.000353][ T2830]  slab_alloc mm/slub.c:3266 [inline]
t4_lookup:1808: [ 3145.000353][ T2830]  __kmem_cache_alloc_lru mm/slub.c:3273 [inline]
t4_lookup:1808: [ 3145.000353][ T2830]  kmem_cache_alloc_lru+0x723/0xbe0 mm/slub.c:3290
inode #528: comm[ 3145.006973][ T2830]  alloc_inode_sb include/linux/fs.h:2965 [inline]
inode #528: comm[ 3145.006973][ T2830]  ext4_alloc_inode+0x5f/0x880 fs/ext4/super.c:1327
 udevd: iget: ch[ 3145.013155][ T2830]  alloc_inode+0x83/0x440 fs/inode.c:260
ecksum invalid
Aug  3 09:31:34 [ 3145.024671][ T2830]  __ext4_iget+0x344/0x5e90 fs/ext4/inode.c:4752
syzkaller user.w[ 3145.030530][ T2830]  ext4_lookup+0x6f3/0xcb0 fs/ext4/namei.c:1808
arn kernel: [ 31[ 3145.036368][ T2830]  __lookup_slow+0x50d/0x740 fs/namei.c:1701
21.835784][ T221[ 3145.042414][ T2830]  lookup_slow+0x6a/0xc0 fs/namei.c:1718
4]  __do_fast_sy[ 3145.048018][ T2830]  walk_component+0x42d/0x760 fs/namei.c:2014
scall_32+0x87/0x[ 3145.054128][ T2830]  link_path_walk+0x8a4/0x13f0
e0
Aug  3 09:31[ 3145.060268][ T2830]  path_openat+0x333/0x5780 fs/namei.c:3649
:34 syzkaller us[ 3145.066194][ T2830]  do_filp_open+0x249/0x660 fs/namei.c:3680
er.crit kernel: [ 3145.072172][ T2830]  do_sys_openat2+0x1f0/0x910 fs/open.c:1278
[ 3121.918415][ [ 3145.078104][ T2830]  do_sys_open fs/open.c:1294 [inline]
[ 3121.918415][ [ 3145.078104][ T2830]  __do_sys_openat fs/open.c:1310 [inline]
[ 3121.918415][ [ 3145.078104][ T2830]  __se_sys_openat fs/open.c:1305 [inline]
[ 3121.918415][ [ 3145.078104][ T2830]  __x64_sys_openat+0x2b0/0x330 fs/open.c:1305
T2848] EXT4-fs e[ 3145.084383][ T2830]  do_syscall_x64 arch/x86/entry/common.c:50 [inline]
T2848] EXT4-fs e[ 3145.084383][ T2830]  do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
rror (device sda[ 3145.090153][ T2830]  entry_SYSCALL_64_after_hwframe+0x63/0xcd
1): ext4_lookup:[ 3145.097520][ T2830] 
1808: inode #528[ 3145.101208][ T2830] CPU: 1 PID: 2830 Comm: syslogd Tainted: G        W         5.19.0-rc8-syzkaller-32524-g82224c6104a8 #0
: comm udevd: ig[ 3145.113837][ T2830] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
et: checksum inv[ 3145.125316][ T2830] =====================================================
alid

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/03 09:31 https://github.com/google/kmsan.git master 82224c6104a8 1c9013ac .config console log report info ci-upstream-kmsan-gce-386 KMSAN: uninit-value in recvmmsg
* Struck through repros no longer work on HEAD.