syzbot


WARNING: kmalloc bug in ext4_expand_extra_isize_ea

Status: upstream: reported on 2023/01/18 12:51
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+7cb6b5c8d924b9cafdf7@syzkaller.appspotmail.com
First crash: 512d, last: 497d

Sample crash report:
[EXT4 FS bs=1024, gc=1, bpg=8192, ipg=32, mo=a802c01d, mo2=0002]
System zones: 1-12
------------[ cut here ]------------
WARNING: CPU: 0 PID: 10298 at mm/util.c:414 kvmalloc_node+0xc2/0xd0 mm/util.c:414
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 10298 Comm: syz-executor.4 Not tainted 4.14.304-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 panic+0x1f9/0x42d kernel/panic.c:183
 __warn.cold+0x20/0x44 kernel/panic.c:547
 report_bug+0x208/0x250 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:967
RIP: 0010:kvmalloc_node+0xc2/0xd0 mm/util.c:414
RSP: 0018:ffff888093bcf578 EFLAGS: 00010202
RAX: 0000000000040000 RBX: 1ffffffff17dbe62 RCX: ffffc900078f2000
RDX: 0000000000028dc0 RSI: ffffffff81705e52 RDI: 0000000000000006
RBP: 0000000001400040 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000006
R13: ffff888042b002d0 R14: 00000000ffffffff R15: ffff8880997d0300
 kvmalloc include/linux/mm.h:531 [inline]
 ext4_xattr_move_to_block fs/ext4/xattr.c:2572 [inline]
 ext4_xattr_make_inode_space fs/ext4/xattr.c:2687 [inline]
 ext4_expand_extra_isize_ea+0x950/0x16d0 fs/ext4/xattr.c:2779
 __ext4_expand_extra_isize+0x2a4/0x3d0 fs/ext4/inode.c:5917
 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5961 [inline]
 ext4_mark_inode_dirty+0x4c7/0x7a0 fs/ext4/inode.c:6037
 ext4_inline_data_truncate+0x4a5/0x940 fs/ext4/inline.c:1984
 ext4_truncate+0xb75/0x1190 fs/ext4/inode.c:4469
 ext4_orphan_cleanup fs/ext4/super.c:2616 [inline]
 ext4_fill_super+0x733f/0xb3c0 fs/ext4/super.c:4475
 mount_bdev+0x2b3/0x360 fs/super.c:1134
 mount_fs+0x92/0x2a0 fs/super.c:1237
 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046
 vfs_kern_mount fs/namespace.c:1036 [inline]
 do_new_mount fs/namespace.c:2572 [inline]
 do_mount+0xe65/0x2a30 fs/namespace.c:2905
 SYSC_mount fs/namespace.c:3121 [inline]
 SyS_mount+0xa8/0x120 fs/namespace.c:3098
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7f6ef53a85fa
RSP: 002b:00007f6ef3918f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000431 RCX: 00007f6ef53a85fa
RDX: 0000000020000440 RSI: 0000000020000100 RDI: 00007f6ef3918fe0
RBP: 00007f6ef3919020 R08: 00007f6ef3919020 R09: 0000000000000010
R10: 0000000000000010 R11: 0000000000000202 R12: 0000000020000440
R13: 0000000020000100 R14: 00007f6ef3918fe0 R15: 0000000020000480
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (28):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/02/03 01:45 linux-4.14.y 3949d1610004 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/02/02 00:38 linux-4.14.y 3949d1610004 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/02/02 00:38 linux-4.14.y 3949d1610004 9a6f477c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/02/01 02:31 linux-4.14.y 3949d1610004 b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/31 23:54 linux-4.14.y 3949d1610004 b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/31 10:42 linux-4.14.y 3949d1610004 b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/31 10:38 linux-4.14.y 3949d1610004 b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/31 07:51 linux-4.14.y 3949d1610004 b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/31 07:51 linux-4.14.y 3949d1610004 b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/31 07:51 linux-4.14.y 3949d1610004 b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/27 19:09 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/26 06:48 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/24 01:09 linux-4.14.y 97205fccccdc 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/22 04:51 linux-4.14.y 97205fccccdc cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/21 11:11 linux-4.14.y 97205fccccdc cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/21 09:41 linux-4.14.y 97205fccccdc cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/20 04:04 linux-4.14.y 97205fccccdc 71197f3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/20 04:04 linux-4.14.y 97205fccccdc 71197f3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/19 13:20 linux-4.14.y 97205fccccdc 66fca3ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/19 10:37 linux-4.14.y 97205fccccdc 66fca3ae .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/19 02:47 linux-4.14.y 97205fccccdc 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/18 20:30 linux-4.14.y 97205fccccdc 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/18 20:21 linux-4.14.y 97205fccccdc 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/18 19:52 linux-4.14.y 97205fccccdc 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/18 17:34 linux-4.14.y 97205fccccdc 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/18 14:50 linux-4.14.y 97205fccccdc 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/18 13:34 linux-4.14.y 97205fccccdc 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
2023/01/18 12:51 linux-4.14.y 97205fccccdc 4620c2d9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING: kmalloc bug in ext4_expand_extra_isize_ea
* Struck through repros no longer work on HEAD.