syzbot


memory leak in kernfs_fop_open

Status: auto-obsoleted due to no activity on 2023/09/07 12:19
Subsystems: input usb
[Documentation on labels]
Reported-by: syzbot+141cc7ede4844354c9c5@syzkaller.appspotmail.com
First crash: 507d, last: 447d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] memory leak in kernfs_fop_open 1 (2) 2022/10/12 20:36
Last patch testing requests (6)
Created Duration User Patch Repo Result
2023/09/07 11:35 24m retest repro upstream OK log
2023/09/07 11:35 18m retest repro upstream OK log
2023/06/27 12:33 15m retest repro upstream report log
2023/06/27 09:38 12m retest repro upstream report log
2023/04/18 09:40 10m retest repro upstream report log
2023/04/18 08:40 21m retest repro upstream report log

Sample crash report:
BUG: memory leak
unreferenced object 0xffff88810bf2f680 (size 96):
  comm "udevd", pid 3648, jiffies 4294950074 (age 12.980s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff814eddc0>] kmalloc_trace+0x20/0x90 mm/slab_common.c:1045
    [<ffffffff8170b251>] kmalloc include/linux/slab.h:553 [inline]
    [<ffffffff8170b251>] kzalloc include/linux/slab.h:689 [inline]
    [<ffffffff8170b251>] kernfs_get_open_node fs/kernfs/file.c:568 [inline]
    [<ffffffff8170b251>] kernfs_fop_open+0x4f1/0x5b0 fs/kernfs/file.c:736
    [<ffffffff815f0a4f>] do_dentry_open+0x2ff/0x7c0 fs/open.c:882
    [<ffffffff81616fdf>] do_open fs/namei.c:3557 [inline]
    [<ffffffff81616fdf>] path_openat+0x161f/0x1b70 fs/namei.c:3714
    [<ffffffff81619dd1>] do_filp_open+0xc1/0x1b0 fs/namei.c:3741
    [<ffffffff815f43bd>] do_sys_openat2+0xed/0x260 fs/open.c:1310
    [<ffffffff815f4e0f>] do_sys_open fs/open.c:1326 [inline]
    [<ffffffff815f4e0f>] __do_sys_openat fs/open.c:1342 [inline]
    [<ffffffff815f4e0f>] __se_sys_openat fs/open.c:1337 [inline]
    [<ffffffff815f4e0f>] __x64_sys_openat+0x7f/0xe0 fs/open.c:1337
    [<ffffffff8485c5d5>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff8485c5d5>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84a00087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff88810bf2f700 (size 96):
  comm "udevd", pid 3648, jiffies 4294950074 (age 12.980s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff814eddc0>] kmalloc_trace+0x20/0x90 mm/slab_common.c:1045
    [<ffffffff8170b251>] kmalloc include/linux/slab.h:553 [inline]
    [<ffffffff8170b251>] kzalloc include/linux/slab.h:689 [inline]
    [<ffffffff8170b251>] kernfs_get_open_node fs/kernfs/file.c:568 [inline]
    [<ffffffff8170b251>] kernfs_fop_open+0x4f1/0x5b0 fs/kernfs/file.c:736
    [<ffffffff815f0a4f>] do_dentry_open+0x2ff/0x7c0 fs/open.c:882
    [<ffffffff81616fdf>] do_open fs/namei.c:3557 [inline]
    [<ffffffff81616fdf>] path_openat+0x161f/0x1b70 fs/namei.c:3714
    [<ffffffff81619dd1>] do_filp_open+0xc1/0x1b0 fs/namei.c:3741
    [<ffffffff815f43bd>] do_sys_openat2+0xed/0x260 fs/open.c:1310
    [<ffffffff815f4e0f>] do_sys_open fs/open.c:1326 [inline]
    [<ffffffff815f4e0f>] __do_sys_openat fs/open.c:1342 [inline]
    [<ffffffff815f4e0f>] __se_sys_openat fs/open.c:1337 [inline]
    [<ffffffff815f4e0f>] __x64_sys_openat+0x7f/0xe0 fs/open.c:1337
    [<ffffffff8485c5d5>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff8485c5d5>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84a00087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff88810bf2f780 (size 96):
  comm "udevd", pid 3648, jiffies 4294950074 (age 12.980s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff814eddc0>] kmalloc_trace+0x20/0x90 mm/slab_common.c:1045
    [<ffffffff8170b251>] kmalloc include/linux/slab.h:553 [inline]
    [<ffffffff8170b251>] kzalloc include/linux/slab.h:689 [inline]
    [<ffffffff8170b251>] kernfs_get_open_node fs/kernfs/file.c:568 [inline]
    [<ffffffff8170b251>] kernfs_fop_open+0x4f1/0x5b0 fs/kernfs/file.c:736
    [<ffffffff815f0a4f>] do_dentry_open+0x2ff/0x7c0 fs/open.c:882
    [<ffffffff81616fdf>] do_open fs/namei.c:3557 [inline]
    [<ffffffff81616fdf>] path_openat+0x161f/0x1b70 fs/namei.c:3714
    [<ffffffff81619dd1>] do_filp_open+0xc1/0x1b0 fs/namei.c:3741
    [<ffffffff815f43bd>] do_sys_openat2+0xed/0x260 fs/open.c:1310
    [<ffffffff815f4e0f>] do_sys_open fs/open.c:1326 [inline]
    [<ffffffff815f4e0f>] __do_sys_openat fs/open.c:1342 [inline]
    [<ffffffff815f4e0f>] __se_sys_openat fs/open.c:1337 [inline]
    [<ffffffff815f4e0f>] __x64_sys_openat+0x7f/0xe0 fs/open.c:1337
    [<ffffffff8485c5d5>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff8485c5d5>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84a00087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff88810bf2f800 (size 96):
  comm "udevd", pid 3648, jiffies 4294950074 (age 12.980s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff814eddc0>] kmalloc_trace+0x20/0x90 mm/slab_common.c:1045
    [<ffffffff8170b251>] kmalloc include/linux/slab.h:553 [inline]
    [<ffffffff8170b251>] kzalloc include/linux/slab.h:689 [inline]
    [<ffffffff8170b251>] kernfs_get_open_node fs/kernfs/file.c:568 [inline]
    [<ffffffff8170b251>] kernfs_fop_open+0x4f1/0x5b0 fs/kernfs/file.c:736
    [<ffffffff815f0a4f>] do_dentry_open+0x2ff/0x7c0 fs/open.c:882
    [<ffffffff81616fdf>] do_open fs/namei.c:3557 [inline]
    [<ffffffff81616fdf>] path_openat+0x161f/0x1b70 fs/namei.c:3714
    [<ffffffff81619dd1>] do_filp_open+0xc1/0x1b0 fs/namei.c:3741
    [<ffffffff815f43bd>] do_sys_openat2+0xed/0x260 fs/open.c:1310
    [<ffffffff815f4e0f>] do_sys_open fs/open.c:1326 [inline]
    [<ffffffff815f4e0f>] __do_sys_openat fs/open.c:1342 [inline]
    [<ffffffff815f4e0f>] __se_sys_openat fs/open.c:1337 [inline]
    [<ffffffff815f4e0f>] __x64_sys_openat+0x7f/0xe0 fs/open.c:1337
    [<ffffffff8485c5d5>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff8485c5d5>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84a00087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff88810bf2f880 (size 96):
  comm "udevd", pid 3648, jiffies 4294950074 (age 12.980s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
    01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff814eddc0>] kmalloc_trace+0x20/0x90 mm/slab_common.c:1045
    [<ffffffff8170b251>] kmalloc include/linux/slab.h:553 [inline]
    [<ffffffff8170b251>] kzalloc include/linux/slab.h:689 [inline]
    [<ffffffff8170b251>] kernfs_get_open_node fs/kernfs/file.c:568 [inline]
    [<ffffffff8170b251>] kernfs_fop_open+0x4f1/0x5b0 fs/kernfs/file.c:736
    [<ffffffff815f0a4f>] do_dentry_open+0x2ff/0x7c0 fs/open.c:882
    [<ffffffff81616fdf>] do_open fs/namei.c:3557 [inline]
    [<ffffffff81616fdf>] path_openat+0x161f/0x1b70 fs/namei.c:3714
    [<ffffffff81619dd1>] do_filp_open+0xc1/0x1b0 fs/namei.c:3741
    [<ffffffff815f43bd>] do_sys_openat2+0xed/0x260 fs/open.c:1310
    [<ffffffff815f4e0f>] do_sys_open fs/open.c:1326 [inline]
    [<ffffffff815f4e0f>] __do_sys_openat fs/open.c:1342 [inline]
    [<ffffffff815f4e0f>] __se_sys_openat fs/open.c:1337 [inline]
    [<ffffffff815f4e0f>] __x64_sys_openat+0x7f/0xe0 fs/open.c:1337
    [<ffffffff8485c5d5>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff8485c5d5>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84a00087>] 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/12/07 17:28 upstream 8ed710da2873 d88f3abb .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-leak memory leak in kernfs_fop_open
2022/10/08 16:48 upstream e8bc52cb8df8 aea5da89 .config console log report syz C [disk image] [vmlinux] ci-upstream-gce-leak memory leak in kernfs_fop_open
* Struck through repros no longer work on HEAD.