syzbot


kernel BUG in f2fs_init_xattr_caches

Status: fixed on 2023/02/24 13:50
Subsystems: f2fs
[Documentation on labels]
Reported-by: syzbot+81684812ea68216e08c5@syzkaller.appspotmail.com
Fix commit: 7e9c323c52b3 mm/slub: fix to return errno if kmalloc() fails
First crash: 833d, last: 806d
Discussions (10)
Title Replies (including bot) Last reply
[PATCH 5.19 000/207] 5.19.12-rc1 review 228 (228) 2022/09/29 22:16
[PATCH 5.4 000/120] 5.4.215-rc1 review 132 (132) 2022/09/28 16:22
[PATCH 4.9 00/30] 4.9.330-rc1 review 42 (42) 2022/09/27 01:02
[PATCH 4.19 00/58] 4.19.260-rc1 review 63 (63) 2022/09/27 00:59
[PATCH 5.15 000/148] 5.15.71-rc1 review 156 (156) 2022/09/26 22:48
[PATCH 5.10 000/141] 5.10.146-rc1 review 145 (145) 2022/09/26 15:59
[PATCH 4.14 00/40] 4.14.295-rc1 review 46 (46) 2022/09/26 15:56
[PATCH] mm/slub: fix to return errno if kmalloc() fails 12 (12) 2022/09/16 22:58
[PATCH v2] mm/slub: fix to return errno if kmalloc() fails 3 (3) 2022/09/08 21:34
[syzbot] kernel BUG in f2fs_init_xattr_caches 0 (1) 2022/08/29 23:33
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG at mm/slub.c:LINE! fs 6 2292d 2340d 0/28 closed as invalid on 2018/09/05 12:51
upstream kernel BUG in put_ucounts kernel 3 1149d 1235d 20/28 fixed on 2021/11/10 00:50

Sample crash report:
loop0: detected capacity change from 0 to 20
 loop0: unable to read partition table
loop0: partition table beyond EOD, truncated
F2FS-fs (loop0): Magic Mismatch, valid(0xf2f52010) - read(0x0)
F2FS-fs (loop0): Can't find valid F2FS filesystem in 1th superblock
------------[ cut here ]------------
kernel BUG at mm/slub.c:5893!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 3038 Comm: syz-executor368 Not tainted 6.0.0-rc2-syzkaller-16455-ga41a877bc12d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : create_unique_id mm/slub.c:5973 [inline]
pc : sysfs_slab_add+0x258/0x260 mm/slub.c:5950
lr : kmalloc include/linux/slab.h:600 [inline]
lr : create_unique_id mm/slub.c:5890 [inline]
lr : sysfs_slab_add+0xa0/0x260 mm/slub.c:5950
sp : ffff80001288b990
x29: ffff80001288b990 x28: ffff0000c9717380 x27: ffff0000c376cd00
x26: 0000000000020000 x25: ffff80000eee7000 x24: ffff80000eef6000
x23: 0000000000000000 x22: ffff0000c1be5b00 x21: 0000000000000008
x20: ffff0000c376cd00 x19: ffff0000c376cd00 x18: 0000000000000000
x17: 0000000000000000 x16: ffff80000dbb8658 x15: ffff0000c6ae4f80
x14: 0000000000000010 x13: 0000000000000000 x12: ffff0000c6ae4f80
x11: ff808000095ee038 x10: 0000000000000000 x9 : 0cbee7d022858900
x8 : 0cbee7d022858900 x7 : ffff8000084b7280 x6 : 0000000000000000
x5 : 0000000000000cc0 x4 : 0000000000000080 x3 : 0000000000000040
x2 : ffff0000c0001200 x1 : ffff80000cb90cf9 x0 : 0000000000000000
Call trace:
 sysfs_slab_add+0x258/0x260 mm/slub.c:5973
 __kmem_cache_create+0x60/0x118 mm/slub.c:4899
 create_cache mm/slab_common.c:229 [inline]
 kmem_cache_create_usercopy+0x19c/0x31c mm/slab_common.c:335
 kmem_cache_create+0x1c/0x28 mm/slab_common.c:390
 f2fs_kmem_cache_create fs/f2fs/f2fs.h:2766 [inline]
 f2fs_init_xattr_caches+0x78/0xb4 fs/f2fs/xattr.c:808
 f2fs_fill_super+0x1050/0x1e0c fs/f2fs/super.c:4149
 mount_bdev+0x1b8/0x210 fs/super.c:1400
 f2fs_mount+0x44/0x58 fs/f2fs/super.c:4512
 legacy_get_tree+0x30/0x74 fs/fs_context.c:610
 vfs_get_tree+0x40/0x140 fs/super.c:1530
 do_new_mount+0x1dc/0x4e4 fs/namespace.c:3040
 path_mount+0x358/0x914 fs/namespace.c:3370
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount fs/namespace.c:3568 [inline]
 __arm64_sys_mount+0x2f8/0x408 fs/namespace.c:3568
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall arch/arm64/kernel/syscall.c:52 [inline]
 el0_svc_common+0x138/0x220 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x48/0x154 arch/arm64/kernel/syscall.c:206
 el0_svc+0x58/0x150 arch/arm64/kernel/entry-common.c:624
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:642
 el0t_64_sync+0x18c/0x190
Code: a9415ff8 a8c47bfd d50323bf d65f03c0 (d4210000) 
---[ end trace 0000000000000000 ]---

Crashes (24):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/28 08:48 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a41a877bc12d 07177916 .config console log report syz C ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/09/22 04:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci aa49f95768a9 60af5050 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/09/16 20:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 dd9a85ff .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/09/15 11:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 dd9a85ff .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/09/15 05:53 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 b884348d .config console log report info ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/09/14 17:17 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 b884348d .config console log report info ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/09/14 12:24 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 b884348d .config console log report info ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/09/14 05:36 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 b884348d .config console log report info ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/09/12 03:31 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 356d8217 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/09/11 21:21 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a6b443748715 356d8217 .config console log report info [disk image] [vmlinux] ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/09/08 20:49 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 25050c56fa3c f3027468 .config console log report info ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/09/08 19:23 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 25050c56fa3c f3027468 .config console log report info ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/09/07 21:25 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 25050c56fa3c c5b7bc57 .config console log report info ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/09/07 15:15 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 25050c56fa3c c5b7bc57 .config console log report info ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/09/06 05:59 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 85413d1e802e 9dcd38fc .config console log report info ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/09/06 05:47 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 85413d1e802e 9dcd38fc .config console log report info ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/09/05 03:00 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 85413d1e802e 28811d0a .config console log report info ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/09/02 04:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 85413d1e802e a805568e .config console log report info ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/08/29 18:19 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a41a877bc12d 5b44472d .config console log report info ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/08/29 06:04 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a41a877bc12d 07177916 .config console log report info ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/08/29 02:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a41a877bc12d 07177916 .config console log report info ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/08/29 01:41 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a41a877bc12d 07177916 .config console log report info ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/08/28 08:34 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a41a877bc12d 07177916 .config console log report info ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
2022/08/26 03:01 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a41a877bc12d 9b5bf4cd .config console log report info ci-upstream-gce-arm64 kernel BUG in f2fs_init_xattr_caches
* Struck through repros no longer work on HEAD.