syzbot


memory leak in gsmld_ioctl

Status: upstream: reported C repro on 2022/11/01 05:39
Reported-by: syzbot+6e3e8f30f269f5028e5d@syzkaller.appspotmail.com
First crash: 36d, last: 36d
Patch testing requests:
Created Duration User Patch Repo Result
2022/11/11 11:22 8m mudongliangabcd@gmail.com patch git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git -- report log

Sample crash report:
BUG: memory leak
unreferenced object 0xffff88810ec09400 (size 1024):
  comm "syz-executor252", pid 3630, jiffies 4294960211 (age 24.300s)
  hex dump (first 32 bytes):
    00 bc c0 0e 81 88 ff ff 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff814cfe70>] kmalloc_trace+0x20/0x90 mm/slab_common.c:1046
    [<ffffffff826196b7>] kmalloc include/linux/slab.h:576 [inline]
    [<ffffffff826196b7>] kzalloc include/linux/slab.h:712 [inline]
    [<ffffffff826196b7>] gsm_dlci_alloc+0x27/0x180 drivers/tty/n_gsm.c:2060
    [<ffffffff8261ea0b>] gsm_activate_mux drivers/tty/n_gsm.c:2534 [inline]
    [<ffffffff8261ea0b>] gsm_config drivers/tty/n_gsm.c:2776 [inline]
    [<ffffffff8261ea0b>] gsmld_ioctl+0x45b/0x750 drivers/tty/n_gsm.c:3113
    [<ffffffff826063f3>] tty_ioctl+0x733/0xbe0 drivers/tty/tty_io.c:2780
    [<ffffffff81602b2c>] vfs_ioctl fs/ioctl.c:51 [inline]
    [<ffffffff81602b2c>] __do_sys_ioctl fs/ioctl.c:870 [inline]
    [<ffffffff81602b2c>] __se_sys_ioctl fs/ioctl.c:856 [inline]
    [<ffffffff81602b2c>] __x64_sys_ioctl+0xfc/0x140 fs/ioctl.c:856
    [<ffffffff84608025>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff84608025>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84800087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff88810ec09400 (size 1024):
  comm "syz-executor252", pid 3630, jiffies 4294960211 (age 25.470s)
  hex dump (first 32 bytes):
    00 bc c0 0e 81 88 ff ff 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff814cfe70>] kmalloc_trace+0x20/0x90 mm/slab_common.c:1046
    [<ffffffff826196b7>] kmalloc include/linux/slab.h:576 [inline]
    [<ffffffff826196b7>] kzalloc include/linux/slab.h:712 [inline]
    [<ffffffff826196b7>] gsm_dlci_alloc+0x27/0x180 drivers/tty/n_gsm.c:2060
    [<ffffffff8261ea0b>] gsm_activate_mux drivers/tty/n_gsm.c:2534 [inline]
    [<ffffffff8261ea0b>] gsm_config drivers/tty/n_gsm.c:2776 [inline]
    [<ffffffff8261ea0b>] gsmld_ioctl+0x45b/0x750 drivers/tty/n_gsm.c:3113
    [<ffffffff826063f3>] tty_ioctl+0x733/0xbe0 drivers/tty/tty_io.c:2780
    [<ffffffff81602b2c>] vfs_ioctl fs/ioctl.c:51 [inline]
    [<ffffffff81602b2c>] __do_sys_ioctl fs/ioctl.c:870 [inline]
    [<ffffffff81602b2c>] __se_sys_ioctl fs/ioctl.c:856 [inline]
    [<ffffffff81602b2c>] __x64_sys_ioctl+0xfc/0x140 fs/ioctl.c:856
    [<ffffffff84608025>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff84608025>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84800087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff88810ec09400 (size 1024):
  comm "syz-executor252", pid 3630, jiffies 4294960211 (age 28.890s)
  hex dump (first 32 bytes):
    00 bc c0 0e 81 88 ff ff 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff814cfe70>] kmalloc_trace+0x20/0x90 mm/slab_common.c:1046
    [<ffffffff826196b7>] kmalloc include/linux/slab.h:576 [inline]
    [<ffffffff826196b7>] kzalloc include/linux/slab.h:712 [inline]
    [<ffffffff826196b7>] gsm_dlci_alloc+0x27/0x180 drivers/tty/n_gsm.c:2060
    [<ffffffff8261ea0b>] gsm_activate_mux drivers/tty/n_gsm.c:2534 [inline]
    [<ffffffff8261ea0b>] gsm_config drivers/tty/n_gsm.c:2776 [inline]
    [<ffffffff8261ea0b>] gsmld_ioctl+0x45b/0x750 drivers/tty/n_gsm.c:3113
    [<ffffffff826063f3>] tty_ioctl+0x733/0xbe0 drivers/tty/tty_io.c:2780
    [<ffffffff81602b2c>] vfs_ioctl fs/ioctl.c:51 [inline]
    [<ffffffff81602b2c>] __do_sys_ioctl fs/ioctl.c:870 [inline]
    [<ffffffff81602b2c>] __se_sys_ioctl fs/ioctl.c:856 [inline]
    [<ffffffff81602b2c>] __x64_sys_ioctl+0xfc/0x140 fs/ioctl.c:856
    [<ffffffff84608025>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff84608025>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84800087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff88810ec09400 (size 1024):
  comm "syz-executor252", pid 3630, jiffies 4294960211 (age 28.920s)
  hex dump (first 32 bytes):
    00 bc c0 0e 81 88 ff ff 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff814cfe70>] kmalloc_trace+0x20/0x90 mm/slab_common.c:1046
    [<ffffffff826196b7>] kmalloc include/linux/slab.h:576 [inline]
    [<ffffffff826196b7>] kzalloc include/linux/slab.h:712 [inline]
    [<ffffffff826196b7>] gsm_dlci_alloc+0x27/0x180 drivers/tty/n_gsm.c:2060
    [<ffffffff8261ea0b>] gsm_activate_mux drivers/tty/n_gsm.c:2534 [inline]
    [<ffffffff8261ea0b>] gsm_config drivers/tty/n_gsm.c:2776 [inline]
    [<ffffffff8261ea0b>] gsmld_ioctl+0x45b/0x750 drivers/tty/n_gsm.c:3113
    [<ffffffff826063f3>] tty_ioctl+0x733/0xbe0 drivers/tty/tty_io.c:2780
    [<ffffffff81602b2c>] vfs_ioctl fs/ioctl.c:51 [inline]
    [<ffffffff81602b2c>] __do_sys_ioctl fs/ioctl.c:870 [inline]
    [<ffffffff81602b2c>] __se_sys_ioctl fs/ioctl.c:856 [inline]
    [<ffffffff81602b2c>] __x64_sys_ioctl+0xfc/0x140 fs/ioctl.c:856
    [<ffffffff84608025>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff84608025>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84800087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

BUG: memory leak
unreferenced object 0xffff88810ec09400 (size 1024):
  comm "syz-executor252", pid 3630, jiffies 4294960211 (age 28.960s)
  hex dump (first 32 bytes):
    00 bc c0 0e 81 88 ff ff 00 00 00 00 00 00 00 00  ................
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff814cfe70>] kmalloc_trace+0x20/0x90 mm/slab_common.c:1046
    [<ffffffff826196b7>] kmalloc include/linux/slab.h:576 [inline]
    [<ffffffff826196b7>] kzalloc include/linux/slab.h:712 [inline]
    [<ffffffff826196b7>] gsm_dlci_alloc+0x27/0x180 drivers/tty/n_gsm.c:2060
    [<ffffffff8261ea0b>] gsm_activate_mux drivers/tty/n_gsm.c:2534 [inline]
    [<ffffffff8261ea0b>] gsm_config drivers/tty/n_gsm.c:2776 [inline]
    [<ffffffff8261ea0b>] gsmld_ioctl+0x45b/0x750 drivers/tty/n_gsm.c:3113
    [<ffffffff826063f3>] tty_ioctl+0x733/0xbe0 drivers/tty/tty_io.c:2780
    [<ffffffff81602b2c>] vfs_ioctl fs/ioctl.c:51 [inline]
    [<ffffffff81602b2c>] __do_sys_ioctl fs/ioctl.c:870 [inline]
    [<ffffffff81602b2c>] __se_sys_ioctl fs/ioctl.c:856 [inline]
    [<ffffffff81602b2c>] __x64_sys_ioctl+0xfc/0x140 fs/ioctl.c:856
    [<ffffffff84608025>] do_syscall_x64 arch/x86/entry/common.c:50 [inline]
    [<ffffffff84608025>] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
    [<ffffffff84800087>] entry_SYSCALL_64_after_hwframe+0x63/0xcd

executing program
executing program
executing program

Crashes (1):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-gce-leak 2022/10/28 05:37 upstream b229b6ca5abb 86777b7f .config log report syz C memory leak in gsmld_ioctl
* Struck through repros no longer work on HEAD.