syzbot


memory leak in nilfs_sysfs_create_device_group

Status: closed as dup on 2022/10/11 10:32
Subsystems: nilfs
[Documentation on labels]
Reported-by: syzbot+2e2f697dbd0f429d5dae@syzkaller.appspotmail.com
First crash: 560d, last: 554d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
memory leak in kobject_set_name_vargs (5) nilfs C 4 562d 665d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] memory leak in nilfs_sysfs_create_device_group 1 (2) 2022/10/05 09:50

Sample crash report:
BUG: memory leak
unreferenced object 0xffff88811a34d500 (size 32):
  comm "syz-executor.6", pid 3826, jiffies 4294944120 (age 16.750s)
  hex dump (first 32 bytes):
    6c 6f 6f 70 36 00 00 00 00 00 00 00 00 00 00 00  loop6...........
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff814ce672>] __do_kmalloc_node mm/slab_common.c:954 [inline]
    [<ffffffff814ce672>] __kmalloc_node_track_caller+0x42/0x120 mm/slab_common.c:975
    [<ffffffff814bea2b>] kstrdup+0x3b/0x70 mm/util.c:61
    [<ffffffff814beab3>] kstrdup_const+0x53/0x80 mm/util.c:84
    [<ffffffff823a78b2>] kvasprintf_const+0xc2/0x110 lib/kasprintf.c:48
    [<ffffffff843dd4db>] kobject_set_name_vargs+0x3b/0xe0 lib/kobject.c:257
    [<ffffffff843dd95d>] kobject_add_varg lib/kobject.c:352 [inline]
    [<ffffffff843dd95d>] kobject_init_and_add+0x6d/0xc0 lib/kobject.c:441
    [<ffffffff81e1390a>] nilfs_sysfs_create_device_group+0x9a/0x3d0 fs/nilfs2/sysfs.c:991
    [<ffffffff81dfc1bc>] init_nilfs+0x51c/0x680 fs/nilfs2/the_nilfs.c:637
    [<ffffffff81de836b>] nilfs_fill_super fs/nilfs2/super.c:1047 [inline]
    [<ffffffff81de836b>] nilfs_mount+0x51b/0x890 fs/nilfs2/super.c:1317
    [<ffffffff8164321b>] legacy_get_tree+0x2b/0x90 fs/fs_context.c:610
    [<ffffffff815dcd78>] vfs_get_tree+0x28/0x100 fs/super.c:1530
    [<ffffffff81620c37>] do_new_mount fs/namespace.c:3040 [inline]
    [<ffffffff81620c37>] path_mount+0xc37/0x10d0 fs/namespace.c:3370
    [<ffffffff8162181e>] do_mount fs/namespace.c:3383 [inline]
    [<ffffffff8162181e>] __do_sys_mount fs/namespace.c:3591 [inline]
    [<ffffffff8162181e>] __se_sys_mount fs/namespace.c:3568 [inline]
    [<ffffffff8162181e>] __x64_sys_mount+0x18e/0x1d0 fs/namespace.c:3568
    [<ffffffff845fee85>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff845fee85>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84800087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd


Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/12 01:52 upstream 60bb8154d1d7 1353c374 .config console log report syz [mounted in repro] ci-upstream-gce-leak memory leak in nilfs_sysfs_create_device_group
2022/10/05 08:31 upstream a5088ee7251e eab8f949 .config console log report syz [mounted in repro] ci-upstream-gce-leak memory leak in nilfs_sysfs_create_device_group
* Struck through repros no longer work on HEAD.