syzbot


memory leak in gsm_activate_mux

Status: upstream: reported C repro on 2023/09/15 06:29
Subsystems: serial
[Documentation on labels]
Reported-by: syzbot+b5d1f455d385b2c7da3c@syzkaller.appspotmail.com
First crash: 1005d, last: 32d
✨ AI Jobs (4)
ID Workflow Result Correct Ext Bug ID Bug Created Started Finished Revision Error
098b6833-49f8-4564-9d2f-c91b76b38c89 assessment-security 💥 memory leak in gsm_activate_mux 2026/06/10 01:13 2026/06/10 01:13 2026/06/10 01:30 c36c07f6c1f2230a36374cbd22235f635e8f9284 failed to run ["make" "KERNELVERSION=syzkaller" "KERNELRELEASE=syzkaller" "LOCALVERSION=-syzkaller" "-j" "32" "ARCH=x86_64" "CC=ccache clang" "LD=ld.lld" "O=/app/workdir/cache/build/6e36d087decb3db7f5fc4decb3e5cc5135a78eec" "-s" "bzImage" "compile_commands.json"]: exit status 2 Root cause: drivers/nvme/target/fc.c:150:2: warning: 'counted_by' should not be applied to an array with element of unknown size because 'struct nvmet_fc_fcp_iod' is a struct type with a flexible array member. This will be an error in a future compiler version [-Wbounds-safety-counted-by-elt-type-unknown-size] scripts/clang-tools/gen_compile_commands.py:173: SyntaxWarning: invalid escape sequence '\#' ld.lld: error: undefined symbol: wcslen * * Restart config... * * * General architecture-dependent options * Kprobes (KPROBES) [N/y/?] n Optimize very unlikely/likely branches (JUMP_LABEL) [Y/n/?] y Static key selftest (STATIC_KEYS_SELFTEST) [N/y/?] n Static call selftest (STATIC_CALL_SELFTEST) [N/y/?] n Enable seccomp to safely execute untrusted bytecode (SECCOMP) [Y/n/?] y Show seccomp filter cache status in /proc/pid/seccomp_cache (SECCOMP_CACHE_DEBUG) [N/y/?] n Link Time Optimization (LTO) > 1. None (LTO_NONE) choice[1]: 1 Use Clang's Control Flow Integrity (CFI) (CFI_CLANG) [N/y/?] (NEW) Error in reading or end of file. Number of bits to use for ASLR of mmap base address (ARCH_MMAP_RND_BITS) [28] 28 Number of bits to use for ASLR of mmap base address for compatible applications (ARCH_MMAP_RND_COMPAT_BITS) [8] 8 Provide system calls for 32-bit time_t (COMPAT_32BIT_TIME) [Y/n/?] y Use a virtually-mapped stack (VMAP_STACK) [Y/n/?] y Support for randomizing kernel stack offset on syscall entry (RANDOMIZE_KSTACK_OFFSET) [Y/n/?] y Default state of kernel stack offset randomization (RANDOMIZE_KSTACK_OFFSET_DEFAULT) [N/y/?] n Locking event counts collection (LOCK_EVENT_COUNTS) [N/y/?] n * * Kernel hardening options * Randomize layout of sensitive kernel structures > 1. Disable structure layout randomization (RANDSTRUCT_NONE) 2. Fully randomize structure layout (RANDSTRUCT_FULL) (NEW) choice[1-2?]: Error in reading or end of file. * * Compile-time checks and compiler options * Debug information 1. Disable debug information (DEBUG_INFO_NONE) 2. Rely on the toolchain's implicit default DWARF version (DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT) > 3. Generate DWARF Version 4 debuginfo (DEBUG_INFO_DWARF4) 4. Generate DWARF Version 5 debuginfo (DEBUG_INFO_DWARF5) choice[1-4?]: 3 Reduce debugging information (DEBUG_INFO_REDUCED) [N/y/?] n Compressed Debug information > 1. Don't compress debug information (DEBUG_INFO_COMPRESSED_NONE) 2. Compress debugging information with zlib (DEBUG_INFO_COMPRESSED_ZLIB) 3. Compress debugging information with zstd (DEBUG_INFO_COMPRESSED_ZSTD) (NEW) choice[1-3?]: Error in reading or end of file. Produce split debuginfo in .dwo files (DEBUG_INFO_SPLIT) [N/y/?] n Generate BTF typeinfo (DEBUG_INFO_BTF) [N/y/?] n Provide GDB scripts for kernel debugging (GDB_SCRIPTS) [N/y/?] n Warn for stack frames larger than (FRAME_WARN) [2048] 2048 Strip assembler-generated symbols during link (STRIP_ASM_SYMS) [N/y/?] n Install uapi headers to usr/include (HEADERS_INSTALL) [N/y/?] n Make section mismatch errors non-fatal (SECTION_MISMATCH_WARN_ONLY) [Y/n/?] y Force all function address 64B aligned (DEBUG_FORCE_FUNCTION_ALIGN_64B) [N/y/?] n Generate vmlinux.map file when linking (VMLINUX_MAP) [N/y/?] n Force weak per-cpu definitions (DEBUG_FORCE_WEAK_PER_CPU) [N/y/?] n * * Memory Debugging * Extend memmap on extra space for more information on page (PAGE_EXTENSION) [N/y/?] n Debug page memory allocations (DEBUG_PAGEALLOC) [N/y/?] n Enable SLUB debugging support (SLUB_DEBUG) [Y/n/?] y SLUB debugging on by default (SLUB_DEBUG_ON) [N/y/?] n Track page owner (PAGE_OWNER) [N/y/?] n Check for invalid mappings in user page tables (PAGE_TABLE_CHECK) [N/y/?] n Poison pages after freeing (PAGE_POISONING) [N/y/?] n Enable tracepoint to track down page reference manipulation (DEBUG_PAGE_REF) [N/y/?] n Testcase for the marking rodata read-only
0976464c-24d5-4586-a84c-856ae0b89119 assessment-security 💥 memory leak in gsm_activate_mux 2026/06/04 03:30 2026/06/04 03:30 2026/06/04 03:44 62fe15281f5011cd203d8845b8767b10e7443aa5 failed to run ["make" "KERNELVERSION=syzkaller" "KERNELRELEASE=syzkaller" "LOCALVERSION=-syzkaller" "-j" "32" "ARCH=x86_64" "CC=ccache clang" "LD=ld.lld" "O=/app/workdir/cache/build/6e36d087decb3db7f5fc4decb3e5cc5135a78eec" "-s" "bzImage" "compile_commands.json"]: exit status 2 Root cause: drivers/nvme/target/fc.c:150:2: warning: 'counted_by' should not be applied to an array with element of unknown size because 'struct nvmet_fc_fcp_iod' is a struct type with a flexible array member. This will be an error in a future compiler version [-Wbounds-safety-counted-by-elt-type-unknown-size] scripts/clang-tools/gen_compile_commands.py:173: SyntaxWarning: invalid escape sequence '\#' ld.lld: error: undefined symbol: wcslen * * Restart config... * * * General architecture-dependent options * Kprobes (KPROBES) [N/y/?] n Optimize very unlikely/likely branches (JUMP_LABEL) [Y/n/?] y Static key selftest (STATIC_KEYS_SELFTEST) [N/y/?] n Static call selftest (STATIC_CALL_SELFTEST) [N/y/?] n Enable seccomp to safely execute untrusted bytecode (SECCOMP) [Y/n/?] y Show seccomp filter cache status in /proc/pid/seccomp_cache (SECCOMP_CACHE_DEBUG) [N/y/?] n Link Time Optimization (LTO) > 1. None (LTO_NONE) choice[1]: 1 Use Clang's Control Flow Integrity (CFI) (CFI_CLANG) [N/y/?] (NEW) Error in reading or end of file. Number of bits to use for ASLR of mmap base address (ARCH_MMAP_RND_BITS) [28] 28 Number of bits to use for ASLR of mmap base address for compatible applications (ARCH_MMAP_RND_COMPAT_BITS) [8] 8 Provide system calls for 32-bit time_t (COMPAT_32BIT_TIME) [Y/n/?] y Use a virtually-mapped stack (VMAP_STACK) [Y/n/?] y Support for randomizing kernel stack offset on syscall entry (RANDOMIZE_KSTACK_OFFSET) [Y/n/?] y Default state of kernel stack offset randomization (RANDOMIZE_KSTACK_OFFSET_DEFAULT) [N/y/?] n Locking event counts collection (LOCK_EVENT_COUNTS) [N/y/?] n * * Kernel hardening options * Randomize layout of sensitive kernel structures > 1. Disable structure layout randomization (RANDSTRUCT_NONE) 2. Fully randomize structure layout (RANDSTRUCT_FULL) (NEW) choice[1-2?]: Error in reading or end of file. * * Compile-time checks and compiler options * Debug information 1. Disable debug information (DEBUG_INFO_NONE) 2. Rely on the toolchain's implicit default DWARF version (DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT) > 3. Generate DWARF Version 4 debuginfo (DEBUG_INFO_DWARF4) 4. Generate DWARF Version 5 debuginfo (DEBUG_INFO_DWARF5) choice[1-4?]: 3 Reduce debugging information (DEBUG_INFO_REDUCED) [N/y/?] n Compressed Debug information > 1. Don't compress debug information (DEBUG_INFO_COMPRESSED_NONE) 2. Compress debugging information with zlib (DEBUG_INFO_COMPRESSED_ZLIB) 3. Compress debugging information with zstd (DEBUG_INFO_COMPRESSED_ZSTD) (NEW) choice[1-3?]: Error in reading or end of file. Produce split debuginfo in .dwo files (DEBUG_INFO_SPLIT) [N/y/?] n Generate BTF typeinfo (DEBUG_INFO_BTF) [N/y/?] n Provide GDB scripts for kernel debugging (GDB_SCRIPTS) [N/y/?] n Warn for stack frames larger than (FRAME_WARN) [2048] 2048 Strip assembler-generated symbols during link (STRIP_ASM_SYMS) [N/y/?] n Install uapi headers to usr/include (HEADERS_INSTALL) [N/y/?] n Make section mismatch errors non-fatal (SECTION_MISMATCH_WARN_ONLY) [Y/n/?] y Force all function address 64B aligned (DEBUG_FORCE_FUNCTION_ALIGN_64B) [N/y/?] n Generate vmlinux.map file when linking (VMLINUX_MAP) [N/y/?] n Force weak per-cpu definitions (DEBUG_FORCE_WEAK_PER_CPU) [N/y/?] n * * Memory Debugging * Extend memmap on extra space for more information on page (PAGE_EXTENSION) [N/y/?] n Debug page memory allocations (DEBUG_PAGEALLOC) [N/y/?] n Enable SLUB debugging support (SLUB_DEBUG) [Y/n/?] y SLUB debugging on by default (SLUB_DEBUG_ON) [N/y/?] n Track page owner (PAGE_OWNER) [N/y/?] n Check for invalid mappings in user page tables (PAGE_TABLE_CHECK) [N/y/?] n Poison pages after freeing (PAGE_POISONING) [N/y/?] n Enable tracepoint to track down page reference manipulation (DEBUG_PAGE_REF) [N/y/?] n Testcase for the marking rodata read-only
dc7ef8bb-fa05-48a4-b743-5c594593da5c assessment-security 💥 memory leak in gsm_activate_mux 2026/06/01 18:20 2026/06/01 18:20 2026/06/01 18:44 386cc6dacdf7e3ebce9507beed6755d7e999554d failed to run ["make" "KERNELVERSION=syzkaller" "KERNELRELEASE=syzkaller" "LOCALVERSION=-syzkaller" "-j" "32" "ARCH=x86_64" "CC=ccache clang" "LD=ld.lld" "O=/app/workdir/cache/build/6e36d087decb3db7f5fc4decb3e5cc5135a78eec" "-s" "bzImage" "compile_commands.json"]: exit status 2 Root cause: drivers/nvme/target/fc.c:150:2: warning: 'counted_by' should not be applied to an array with element of unknown size because 'struct nvmet_fc_fcp_iod' is a struct type with a flexible array member. This will be an error in a future compiler version [-Wbounds-safety-counted-by-elt-type-unknown-size] scripts/clang-tools/gen_compile_commands.py:173: SyntaxWarning: invalid escape sequence '\#' ld.lld: error: undefined symbol: wcslen * * Restart config... * * * General architecture-dependent options * Kprobes (KPROBES) [N/y/?] n Optimize very unlikely/likely branches (JUMP_LABEL) [Y/n/?] y Static key selftest (STATIC_KEYS_SELFTEST) [N/y/?] n Static call selftest (STATIC_CALL_SELFTEST) [N/y/?] n Enable seccomp to safely execute untrusted bytecode (SECCOMP) [Y/n/?] y Show seccomp filter cache status in /proc/pid/seccomp_cache (SECCOMP_CACHE_DEBUG) [N/y/?] n Link Time Optimization (LTO) > 1. None (LTO_NONE) choice[1]: 1 Use Clang's Control Flow Integrity (CFI) (CFI_CLANG) [N/y/?] (NEW) Error in reading or end of file. Number of bits to use for ASLR of mmap base address (ARCH_MMAP_RND_BITS) [28] 28 Number of bits to use for ASLR of mmap base address for compatible applications (ARCH_MMAP_RND_COMPAT_BITS) [8] 8 Provide system calls for 32-bit time_t (COMPAT_32BIT_TIME) [Y/n/?] y Use a virtually-mapped stack (VMAP_STACK) [Y/n/?] y Support for randomizing kernel stack offset on syscall entry (RANDOMIZE_KSTACK_OFFSET) [Y/n/?] y Default state of kernel stack offset randomization (RANDOMIZE_KSTACK_OFFSET_DEFAULT) [N/y/?] n Locking event counts collection (LOCK_EVENT_COUNTS) [N/y/?] n * * Kernel hardening options * Randomize layout of sensitive kernel structures > 1. Disable structure layout randomization (RANDSTRUCT_NONE) 2. Fully randomize structure layout (RANDSTRUCT_FULL) (NEW) choice[1-2?]: Error in reading or end of file. * * Compile-time checks and compiler options * Debug information 1. Disable debug information (DEBUG_INFO_NONE) 2. Rely on the toolchain's implicit default DWARF version (DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT) > 3. Generate DWARF Version 4 debuginfo (DEBUG_INFO_DWARF4) 4. Generate DWARF Version 5 debuginfo (DEBUG_INFO_DWARF5) choice[1-4?]: 3 Reduce debugging information (DEBUG_INFO_REDUCED) [N/y/?] n Compressed Debug information > 1. Don't compress debug information (DEBUG_INFO_COMPRESSED_NONE) 2. Compress debugging information with zlib (DEBUG_INFO_COMPRESSED_ZLIB) 3. Compress debugging information with zstd (DEBUG_INFO_COMPRESSED_ZSTD) (NEW) choice[1-3?]: Error in reading or end of file. Produce split debuginfo in .dwo files (DEBUG_INFO_SPLIT) [N/y/?] n Generate BTF typeinfo (DEBUG_INFO_BTF) [N/y/?] n Provide GDB scripts for kernel debugging (GDB_SCRIPTS) [N/y/?] n Warn for stack frames larger than (FRAME_WARN) [2048] 2048 Strip assembler-generated symbols during link (STRIP_ASM_SYMS) [N/y/?] n Install uapi headers to usr/include (HEADERS_INSTALL) [N/y/?] n Make section mismatch errors non-fatal (SECTION_MISMATCH_WARN_ONLY) [Y/n/?] y Force all function address 64B aligned (DEBUG_FORCE_FUNCTION_ALIGN_64B) [N/y/?] n Generate vmlinux.map file when linking (VMLINUX_MAP) [N/y/?] n Force weak per-cpu definitions (DEBUG_FORCE_WEAK_PER_CPU) [N/y/?] n * * Memory Debugging * Extend memmap on extra space for more information on page (PAGE_EXTENSION) [N/y/?] n Debug page memory allocations (DEBUG_PAGEALLOC) [N/y/?] n Enable SLUB debugging support (SLUB_DEBUG) [Y/n/?] y SLUB debugging on by default (SLUB_DEBUG_ON) [N/y/?] n Track page owner (PAGE_OWNER) [N/y/?] n Check for invalid mappings in user page tables (PAGE_TABLE_CHECK) [N/y/?] n Poison pages after freeing (PAGE_POISONING) [N/y/?] n Enable tracepoint to track down page reference manipulation (DEBUG_PAGE_REF) [N/y/?] n Testcase for the marking rodata read-only
ade5e3aa-708d-48cf-8a25-6f301296811b assessment-security 💥 memory leak in gsm_activate_mux 2026/05/17 15:35 2026/05/17 15:35 2026/05/17 15:53 de5aae85e5f28e2fa1c7deefcc24fe286abe5140 failed to run ["make" "KERNELVERSION=syzkaller" "KERNELRELEASE=syzkaller" "LOCALVERSION=-syzkaller" "-j" "32" "ARCH=x86_64" "CC=ccache clang" "LD=ld.lld" "O=/app/workdir/cache/build/6e36d087decb3db7f5fc4decb3e5cc5135a78eec" "-s" "bzImage" "compile_commands.json"]: exit status 2 Root cause: drivers/nvme/target/fc.c:150:2: warning: 'counted_by' should not be applied to an array with element of unknown size because 'struct nvmet_fc_fcp_iod' is a struct type with a flexible array member. This will be an error in a future compiler version [-Wbounds-safety-counted-by-elt-type-unknown-size] scripts/clang-tools/gen_compile_commands.py:173: SyntaxWarning: invalid escape sequence '\#' ld.lld: error: undefined symbol: wcslen * * Restart config... * * * General architecture-dependent options * Kprobes (KPROBES) [N/y/?] n Optimize very unlikely/likely branches (JUMP_LABEL) [Y/n/?] y Static key selftest (STATIC_KEYS_SELFTEST) [N/y/?] n Static call selftest (STATIC_CALL_SELFTEST) [N/y/?] n Enable seccomp to safely execute untrusted bytecode (SECCOMP) [Y/n/?] y Show seccomp filter cache status in /proc/pid/seccomp_cache (SECCOMP_CACHE_DEBUG) [N/y/?] n Link Time Optimization (LTO) > 1. None (LTO_NONE) choice[1]: 1 Use Clang's Control Flow Integrity (CFI) (CFI_CLANG) [N/y/?] (NEW) Error in reading or end of file. Number of bits to use for ASLR of mmap base address (ARCH_MMAP_RND_BITS) [28] 28 Number of bits to use for ASLR of mmap base address for compatible applications (ARCH_MMAP_RND_COMPAT_BITS) [8] 8 Provide system calls for 32-bit time_t (COMPAT_32BIT_TIME) [Y/n/?] y Use a virtually-mapped stack (VMAP_STACK) [Y/n/?] y Support for randomizing kernel stack offset on syscall entry (RANDOMIZE_KSTACK_OFFSET) [Y/n/?] y Default state of kernel stack offset randomization (RANDOMIZE_KSTACK_OFFSET_DEFAULT) [N/y/?] n Locking event counts collection (LOCK_EVENT_COUNTS) [N/y/?] n * * Kernel hardening options * Randomize layout of sensitive kernel structures > 1. Disable structure layout randomization (RANDSTRUCT_NONE) 2. Fully randomize structure layout (RANDSTRUCT_FULL) (NEW) choice[1-2?]: Error in reading or end of file. * * Compile-time checks and compiler options * Debug information 1. Disable debug information (DEBUG_INFO_NONE) 2. Rely on the toolchain's implicit default DWARF version (DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT) > 3. Generate DWARF Version 4 debuginfo (DEBUG_INFO_DWARF4) 4. Generate DWARF Version 5 debuginfo (DEBUG_INFO_DWARF5) choice[1-4?]: 3 Reduce debugging information (DEBUG_INFO_REDUCED) [N/y/?] n Compressed Debug information > 1. Don't compress debug information (DEBUG_INFO_COMPRESSED_NONE) 2. Compress debugging information with zlib (DEBUG_INFO_COMPRESSED_ZLIB) 3. Compress debugging information with zstd (DEBUG_INFO_COMPRESSED_ZSTD) (NEW) choice[1-3?]: Error in reading or end of file. Produce split debuginfo in .dwo files (DEBUG_INFO_SPLIT) [N/y/?] n Generate BTF typeinfo (DEBUG_INFO_BTF) [N/y/?] n Provide GDB scripts for kernel debugging (GDB_SCRIPTS) [N/y/?] n Warn for stack frames larger than (FRAME_WARN) [2048] 2048 Strip assembler-generated symbols during link (STRIP_ASM_SYMS) [N/y/?] n Install uapi headers to usr/include (HEADERS_INSTALL) [N/y/?] n Make section mismatch errors non-fatal (SECTION_MISMATCH_WARN_ONLY) [Y/n/?] y Force all function address 64B aligned (DEBUG_FORCE_FUNCTION_ALIGN_64B) [N/y/?] n Generate vmlinux.map file when linking (VMLINUX_MAP) [N/y/?] n Force weak per-cpu definitions (DEBUG_FORCE_WEAK_PER_CPU) [N/y/?] n * * Memory Debugging * Extend memmap on extra space for more information on page (PAGE_EXTENSION) [N/y/?] n Debug page memory allocations (DEBUG_PAGEALLOC) [N/y/?] n Enable SLUB debugging support (SLUB_DEBUG) [Y/n/?] y SLUB debugging on by default (SLUB_DEBUG_ON) [N/y/?] n Track page owner (PAGE_OWNER) [N/y/?] n Check for invalid mappings in user page tables (PAGE_TABLE_CHECK) [N/y/?] n Poison pages after freeing (PAGE_POISONING) [N/y/?] n Enable tracepoint to track down page reference manipulation (DEBUG_PAGE_REF) [N/y/?] n Testcase for the marking rodata read-only
Discussions (7)
Title Replies (including bot) Last reply
[PATCH] tty: n_gsm: fix memory leak in gsm_activate_mux 2 (2) 2026/05/11 14:44
[PATCH] tty: n_gsm: fix memory leak in gsm_activate_mux 1 (2) 2026/04/22 18:04
Re: [PATCH] tty: fix memory leak in gsm_activate_mux 7 (7) 2023/09/20 06:38
Re: [PATCH] tty: fix memory leak in gsm_activate_mux 1 (1) 2023/09/18 12:02
Re: [PATCH] tty: fix memory leak in gsm_activate_mux 1 (1) 2023/09/18 09:13
Re: [PATCH] tty: fix memory leak in gsm_activate_mux 1 (1) 2023/09/18 08:06
[syzbot] [serial?] memory leak in gsm_activate_mux 0 (1) 2023/09/15 06:29
Last patch testing requests (13)
Created Duration User Patch Repo Result
2026/05/10 23:28 44m retest repro upstream report log
2026/04/22 17:37 26m s9430939@naver.com patch git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tty-next OK log
2026/03/01 18:26 12m retest repro upstream report log
2026/03/01 18:15 14m retest repro upstream report log
2025/12/21 17:45 18m retest repro upstream report log
2025/10/12 17:10 12m retest repro upstream report log
2025/08/03 16:35 31m retest repro upstream report log
2025/05/25 13:46 19m retest repro upstream report log
2025/03/16 11:40 17m retest repro upstream report log
2025/01/05 10:46 14m retest repro upstream report log
2024/10/27 08:23 25m retest repro upstream report log
2023/09/15 10:07 18m eadavis@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git f97e18a3f2fb OK log
2023/09/15 09:27 10m eadavis@sina.com patch https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git f97e18a3f2fb error

Sample crash report:
BUG: memory leak
unreferenced object 0xffff888144ec8000 (size 1024):
  comm "syz-executor112", pid 5029, jiffies 4294941448 (age 7.990s)
  hex dump (first 32 bytes):
    00 9c ec 44 81 88 ff ff 00 00 00 00 00 00 00 00  ...D............
    00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................
  backtrace:
    [<ffffffff8163469d>] kmemleak_alloc_recursive include/linux/kmemleak.h:42 [inline]
    [<ffffffff8163469d>] slab_post_alloc_hook mm/slab.h:766 [inline]
    [<ffffffff8163469d>] slab_alloc_node mm/slub.c:3478 [inline]
    [<ffffffff8163469d>] __kmem_cache_alloc_node+0x2dd/0x3f0 mm/slub.c:3517
    [<ffffffff8157f2c5>] kmalloc_trace+0x25/0x90 mm/slab_common.c:1098
    [<ffffffff82813467>] kmalloc include/linux/slab.h:600 [inline]
    [<ffffffff82813467>] kzalloc include/linux/slab.h:721 [inline]
    [<ffffffff82813467>] gsm_dlci_alloc+0x27/0x1f0 drivers/tty/n_gsm.c:2641
    [<ffffffff8281364c>] gsm_activate_mux+0x1c/0x1c0 drivers/tty/n_gsm.c:3128
    [<ffffffff8281a17f>] gsm_config_ext drivers/tty/n_gsm.c:3433 [inline]
    [<ffffffff8281a17f>] gsmld_ioctl+0x6cf/0x9f0 drivers/tty/n_gsm.c:3797
    [<ffffffff827fec8b>] tty_ioctl+0x3eb/0xc70 drivers/tty/tty_io.c:2789
    [<ffffffff816bf592>] vfs_ioctl fs/ioctl.c:51 [inline]
    [<ffffffff816bf592>] __do_sys_ioctl fs/ioctl.c:871 [inline]
    [<ffffffff816bf592>] __se_sys_ioctl fs/ioctl.c:857 [inline]
    [<ffffffff816bf592>] __x64_sys_ioctl+0xf2/0x140 fs/ioctl.c:857
    [<ffffffff84b71ebf>] do_syscall_x64 arch/x86/entry/common.c:52 [inline]
    [<ffffffff84b71ebf>] do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:83
    [<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0x6b

BUG: memory leak
unreferenced object 0xffff8881079f2000 (size 4096):
  comm "syz-executor112", pid 5029, jiffies 4294941448 (age 7.990s)
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 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:
    [<ffffffff8163469d>] kmemleak_alloc_recursive include/linux/kmemleak.h:42 [inline]
    [<ffffffff8163469d>] slab_post_alloc_hook mm/slab.h:766 [inline]
    [<ffffffff8163469d>] slab_alloc_node mm/slub.c:3478 [inline]
    [<ffffffff8163469d>] __kmem_cache_alloc_node+0x2dd/0x3f0 mm/slub.c:3517
    [<ffffffff8157f96b>] __do_kmalloc_node mm/slab_common.c:1006 [inline]
    [<ffffffff8157f96b>] __kmalloc+0x4b/0x150 mm/slab_common.c:1020
    [<ffffffff82521739>] kmalloc_array include/linux/slab.h:637 [inline]
    [<ffffffff82521739>] __kfifo_alloc+0x89/0xe0 lib/kfifo.c:43
    [<ffffffff828134b1>] gsm_dlci_alloc+0x71/0x1f0 drivers/tty/n_gsm.c:2646
    [<ffffffff8281364c>] gsm_activate_mux+0x1c/0x1c0 drivers/tty/n_gsm.c:3128
    [<ffffffff8281a17f>] gsm_config_ext drivers/tty/n_gsm.c:3433 [inline]
    [<ffffffff8281a17f>] gsmld_ioctl+0x6cf/0x9f0 drivers/tty/n_gsm.c:3797
    [<ffffffff827fec8b>] tty_ioctl+0x3eb/0xc70 drivers/tty/tty_io.c:2789
    [<ffffffff816bf592>] vfs_ioctl fs/ioctl.c:51 [inline]
    [<ffffffff816bf592>] __do_sys_ioctl fs/ioctl.c:871 [inline]
    [<ffffffff816bf592>] __se_sys_ioctl fs/ioctl.c:857 [inline]
    [<ffffffff816bf592>] __x64_sys_ioctl+0xf2/0x140 fs/ioctl.c:857
    [<ffffffff84b71ebf>] do_syscall_x64 arch/x86/entry/common.c:52 [inline]
    [<ffffffff84b71ebf>] do_syscall_64+0x3f/0x110 arch/x86/entry/common.c:83
    [<ffffffff84c0008b>] entry_SYSCALL_64_after_hwframe+0x63/0x6b


Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/01/05 05:18 upstream 5eff55d725a4 28c42cff .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-leak memory leak in gsm_activate_mux
2023/09/11 06:23 upstream 0bb80ecc33a8 6654cf89 .config console log report syz C [disk image] [vmlinux] [kernel image] ci-upstream-gce-leak memory leak in gsm_activate_mux
* Struck through repros no longer work on HEAD.