From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f207.google.com (mail-oi1-f207.google.com [209.85.167.207]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A6C211DE4E0 for ; Mon, 15 Dec 2025 04:03:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.207 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765771422; cv=none; b=bk36Y0y6XmeHCogAV2n4M1/4u3Ni+T6AHOVq07rQIm8079E6V9RwLVXjyKThAthyYq0AnFoH4XYxlJlkZ34rIzLOQzAMKzcMgcJKtc4fDeRGgY6gura/7GYb5Lx81Dvs1pk7zrRKnnXsotuoU9X44KvCS9EsYY3UpcROeaOBR0I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765771422; c=relaxed/simple; bh=nIsb1E28bTu5fBof3dE2nXlvMCxbLzVMhrgTFG2fiRw=; h=MIME-Version:Date:Message-ID:Subject:From:To:Content-Type; b=c9YukFK8DeNvLhBbdaE5IFYqMFLQVXtWSJ+wwivNnJz1MfbLjEhhhQozy/JtixeyX0D9YPhOJwL6iDEnQ8AZ8QJsWWfjbLX+mJz/kf9+zyz3oYC+Qbdangp0jN5jn3kGufK/oqYjSh3zna5E2GXp2crCSJCf+7SfA5rj+QeJRU4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.167.207 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oi1-f207.google.com with SMTP id 5614622812f47-450178eaf86so2558278b6e.0 for ; Sun, 14 Dec 2025 20:03:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1765771419; x=1766376219; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=B5eifg6eUc//C4utgJEqtNukNlcKc70HQZjqGbbSrtI=; b=Ie/eUIRf0wwweyZ5gjo6qH17apk+z3nKPqCVuhyfvayQlI5pSciVsdAmFReIvJKTIX H5bbZCuGVLt1VfgwUbYHnkycKpHR5vYcM2gqsEIZZSWoiuTEZr7x6/t7orH4ch9KAyJ5 KCeJ75dBkatLXgtgWQxYZKH7LQpUker2n2iX0ARJG8hmUnHmZVEpUnt5klkm2nExE94+ wjpuhaogr0wJEOt6w4PXWOwWSA9Gedsez8fYMP6jmdrk/p94XDmdKsN6dFu/K/k3LJs5 +VSA7Jb6kGbbb015uZHwycnSD7Mom8U6DxJlIzyBvz4pdgc1YM/4csFDDuq3JJrAS2Ef Sc0w== X-Forwarded-Encrypted: i=1; AJvYcCUky5juaTNQpfCSNirS4mAIrp+1izJOvFy+BLWXmhjh7VlUOZZ1f4q5XmrNzO/OMOaJjuNl4Z+SAsplOyI=@vger.kernel.org X-Gm-Message-State: AOJu0Ywcw0nCDWFeLqDPgpY2a9UT+eztKPsP3gkGCnEEQC7p4S4T7OF8 NV+6dSHmKXcjsCp/1q1sCtJBcHKrAolpAQlDoy0zb8ZbG05Hvd88/qGMraoA3hEer1yNc8LtypS 6JY+kLpU53/fHcofiKY2h5/vjeQ0vECLAb2X/Kgnue/XKnD3yD6tzsNABuBQ= X-Google-Smtp-Source: AGHT+IGSOFGtPUv/JP0p772k3kdRbpcsbt5fyPTaKijdv4zWbkFAAL74MV5FrGAE7e/FeiEdW/u31uq3PCgo9gll38sM/BkSaMFs Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6820:2112:b0:659:9a49:8e40 with SMTP id 006d021491bc7-65b4517f743mr4043919eaf.16.1765771419600; Sun, 14 Dec 2025 20:03:39 -0800 (PST) Date: Sun, 14 Dec 2025 20:03:39 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <693f889b.a70a0220.104cf0.0334.GAE@google.com> Subject: [syzbot] [comedi?] memory leak in do_cmd_ioctl From: syzbot To: abbotti@mev.co.uk, hsweeten@visionengravers.com, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot found the following issue on: HEAD commit: 8f0b4cce4481 Linux 6.19-rc1 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17df89b4580000 kernel config: https://syzkaller.appspot.com/x/.config?x=d60836e327fd6756 dashboard link: https://syzkaller.appspot.com/bug?extid=f238baf6ded841b5a82e compiler: gcc (Debian 12.2.0-14+deb12u1) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10bad11a580000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17d0411a580000 Downloadable assets: disk image: https://storage.googleapis.com/syzbot-assets/6b3f098aba85/disk-8f0b4cce.raw.xz vmlinux: https://storage.googleapis.com/syzbot-assets/e249c8a4ce76/vmlinux-8f0b4cce.xz kernel image: https://storage.googleapis.com/syzbot-assets/851cb7eb2c27/bzImage-8f0b4cce.xz IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+f238baf6ded841b5a82e@syzkaller.appspotmail.com BUG: memory leak unreferenced object 0xffff88811193c4d8 (size 8): comm "syz.0.17", pid 6094, jiffies 4294942826 hex dump (first 8 bytes): 04 00 00 00 00 00 00 00 ........ backtrace (crc 844a0efa): kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline] slab_post_alloc_hook mm/slub.c:4958 [inline] slab_alloc_node mm/slub.c:5263 [inline] __do_kmalloc_node mm/slub.c:5656 [inline] __kmalloc_node_track_caller_noprof+0x3af/0x670 mm/slub.c:5764 memdup_user+0x2a/0xe0 mm/util.c:221 memdup_array_user include/linux/string.h:39 [inline] __comedi_get_user_chanlist drivers/comedi/comedi_fops.c:1815 [inline] do_cmd_ioctl.part.0+0x112/0x350 drivers/comedi/comedi_fops.c:1890 do_cmd_ioctl drivers/comedi/comedi_fops.c:1858 [inline] comedi_unlocked_ioctl+0xdea/0x1300 drivers/comedi/comedi_fops.c:2319 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0xf4/0x140 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xa4/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f BUG: memory leak unreferenced object 0xffff88811193c990 (size 8): comm "syz.0.18", pid 6096, jiffies 4294942827 hex dump (first 8 bytes): 04 00 00 00 00 00 00 00 ........ backtrace (crc 844a0efa): kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline] slab_post_alloc_hook mm/slub.c:4958 [inline] slab_alloc_node mm/slub.c:5263 [inline] __do_kmalloc_node mm/slub.c:5656 [inline] __kmalloc_node_track_caller_noprof+0x3af/0x670 mm/slub.c:5764 memdup_user+0x2a/0xe0 mm/util.c:221 memdup_array_user include/linux/string.h:39 [inline] __comedi_get_user_chanlist drivers/comedi/comedi_fops.c:1815 [inline] do_cmd_ioctl.part.0+0x112/0x350 drivers/comedi/comedi_fops.c:1890 do_cmd_ioctl drivers/comedi/comedi_fops.c:1858 [inline] comedi_unlocked_ioctl+0xdea/0x1300 drivers/comedi/comedi_fops.c:2319 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0xf4/0x140 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xa4/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f BUG: memory leak unreferenced object 0xffff88811193cea0 (size 8): comm "syz.0.19", pid 6099, jiffies 4294942829 hex dump (first 8 bytes): 04 00 00 00 00 00 00 00 ........ backtrace (crc 844a0efa): kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline] slab_post_alloc_hook mm/slub.c:4958 [inline] slab_alloc_node mm/slub.c:5263 [inline] __do_kmalloc_node mm/slub.c:5656 [inline] __kmalloc_node_track_caller_noprof+0x3af/0x670 mm/slub.c:5764 memdup_user+0x2a/0xe0 mm/util.c:221 memdup_array_user include/linux/string.h:39 [inline] __comedi_get_user_chanlist drivers/comedi/comedi_fops.c:1815 [inline] do_cmd_ioctl.part.0+0x112/0x350 drivers/comedi/comedi_fops.c:1890 do_cmd_ioctl drivers/comedi/comedi_fops.c:1858 [inline] comedi_unlocked_ioctl+0xdea/0x1300 drivers/comedi/comedi_fops.c:2319 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0xf4/0x140 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xa4/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f BUG: memory leak unreferenced object 0xffff888144d28bf8 (size 8): comm "syz.0.20", pid 6124, jiffies 4294943361 hex dump (first 8 bytes): 04 00 00 00 00 00 00 00 ........ backtrace (crc 844a0efa): kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline] slab_post_alloc_hook mm/slub.c:4958 [inline] slab_alloc_node mm/slub.c:5263 [inline] __do_kmalloc_node mm/slub.c:5656 [inline] __kmalloc_node_track_caller_noprof+0x3af/0x670 mm/slub.c:5764 memdup_user+0x2a/0xe0 mm/util.c:221 memdup_array_user include/linux/string.h:39 [inline] __comedi_get_user_chanlist drivers/comedi/comedi_fops.c:1815 [inline] do_cmd_ioctl.part.0+0x112/0x350 drivers/comedi/comedi_fops.c:1890 do_cmd_ioctl drivers/comedi/comedi_fops.c:1858 [inline] comedi_unlocked_ioctl+0xdea/0x1300 drivers/comedi/comedi_fops.c:2319 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0xf4/0x140 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xa4/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f connection error: failed to recv *flatrpc.ExecutorMessageRawT: EOF --- This report is generated by a bot. It may contain errors. See https://goo.gl/tpsmEJ for more information about syzbot. syzbot engineers can be reached at syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. If the report is already addressed, let syzbot know by replying with: #syz fix: exact-commit-title If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing. If you want to overwrite report's subsystems, reply with: #syz set subsystems: new-subsystem (See the list of subsystem names on the web dashboard) If the report is a duplicate of another one, reply with: #syz dup: exact-subject-of-another-report If you want to undo deduplication, reply with: #syz undup