From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 72C12FCC9B4 for ; Tue, 10 Mar 2026 03:54:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Subject:To:From:Message-ID:In-Reply-To:Date:MIME-Version:Sender:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:References:List-Owner; bh=Ry6Q5DQ6cWSGcj9T5CYzi6Li0ErJ3b3E9NqhiylYPDc=; b=h0+S3aonIowpB3AjolRKKRYnRu vkt2x10HHgB8wGyv6sF2Zhcc21TPOWSgo9ywbQlv9fnAstUiQG4x9cCbIK5IN8KrJb+3QUK6cHSKe clx+9g2wfCDOCtm5Bg8BGJWhCIMTj81A/3Hkh3KjGIoiRFzjGIVk+V2sm37S5FH1TXJI=; Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1vzoAc-000666-0K; Tue, 10 Mar 2026 03:54:10 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from <325WvaQkbABoIOPA0BB4H0FF83.6EE6B4KI4H2EDJ4DJ.2EC@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com>) id 1vzoAb-00065w-Bv for linux-f2fs-devel@lists.sourceforge.net; Tue, 10 Mar 2026 03:54:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Type:To:From:Subject:Message-ID:In-Reply-To :Date:MIME-Version:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=oIx85w9W7IsG0j4v1Wx1+1hfwFsNA9DgmZnpX/ajWn4=; b=BCzOsCavFwdtGp7K4/KNzSSa42 3QjeMOQGSm59LcYn/gr8hBCpCAoXko0S5Wc6K442yECEj17wYXG+ephAidf6JtCiywzyBZTKrzTL1 0GRWwkmt/xtwkM3UGFJOmMiK5spT6t7TrJgXBvaxFvL2QmlmaYpytH/meI5qSKB1PEcE=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Type:To:From:Subject:Message-ID:In-Reply-To:Date:MIME-Version: Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=oIx85w9W7IsG0j4v1Wx1+1hfwFsNA9DgmZnpX/ajWn4=; b=T eMg6nJK96cgtItwpEW3952VorOBp1+UQYBFz/BXPBuj5j7ZnmKIQOkdhVF433lQeVDqMnypXSjwoR ufnIE5YCer7iDS54Bg3Mp0oVWcm0V40hfwg9vH4GKjlTI/X9WWdg+K+hP3ZG06PmjOfWXEn8xVkAA w/+0j6FpZAYb678A=; Received: from mail-oo1-f72.google.com ([209.85.161.72]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.95) id 1vzoAb-0004kG-GP for linux-f2fs-devel@lists.sourceforge.net; Tue, 10 Mar 2026 03:54:10 +0000 Received: by mail-oo1-f72.google.com with SMTP id 006d021491bc7-67bb47e6846so22967043eaf.0 for ; Mon, 09 Mar 2026 20:54:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773114844; x=1773719644; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oIx85w9W7IsG0j4v1Wx1+1hfwFsNA9DgmZnpX/ajWn4=; b=SvzFa4+g/NslTwagO0/HoJZBGcESqQBmcj5iME7V0TIAZr+hmqaI4YnfKY3GVmakwy J+R6rlTF+LW8i4mrvkQ++pSt+DzOYplGdbPyWgBYYOGoilOvTfAzOBPXu/nlJqs9IvdY x/Df50GGQZ5EQPumtwljp8GBUzf+MJYfFvWZ3udLrDZWnxFOEU6jb2IougaRHfr3xBZp 4SGZ69wnb30q0/7oFqVKKa/98rkaqXyp0RumGWsq1GNgfOw1ufei/blyqShhtQ5lUwyS 84ZecwDqKWKrbxQ8lDrqgwqH7AcfC4iNeMTFp435D7KqY4I9c0SRH6zx+GSAmnF1b4y6 38Hg== X-Forwarded-Encrypted: i=1; AJvYcCUEgEmFl4Pacw7bMnC7d6ah9K9h12DUozl02N1a1gys8dKgRQyVqUxvFjTyaYAnKQ+3lwYk5oVrPaDIx9V14RFB@lists.sourceforge.net X-Gm-Message-State: AOJu0Yx3Rkq3F9sr5RzWB8SY/ZQqEv2JjW1cFi2kkbU+bvyps1cmTHOT idGMK6WGJDR22XY6+Kc+aK5baosgoiU1e+avgdjx+dKm9fG/QMq3o1gVeIQHxBLrrWWuDuk3d1z m022jXxPdmNOA0vZWpZoru7Js+PWKQltkfojALg1LfVMIwl4499RjwAHi3jk= MIME-Version: 1.0 X-Received: by 2002:a4a:edc8:0:b0:662:f763:c539 with SMTP id 006d021491bc7-67b9bc6ad80mr8703060eaf.14.1773114843722; Mon, 09 Mar 2026 20:54:03 -0700 (PDT) Date: Mon, 09 Mar 2026 20:54:03 -0700 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <69af95db.a00a0220.d013.0001.GAE@google.com> From: syzbot To: akpm@linux-foundation.org, catalin.marinas@arm.com, chao@kernel.org, hao.li@linux.dev, harry.yoo@oracle.com, jaegeuk@kernel.org, jannh@google.com, liam.howlett@oracle.com, linkinjeon@kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, lorenzo.stoakes@oracle.com, pfalcato@suse.de, sj1557.seo@samsung.com, syzkaller-bugs@googlegroups.com, vbabka@kernel.org, vbabka@suse.cz, wangqing7171@gmail.com X-Headers-End: 1vzoAb-0004kG-GP Subject: Re: [f2fs-dev] [syzbot] [mm?] [f2fs?] [exfat?] memory leak in __kfree_rcu_sheaf X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: memory leak in __pcs_replace_empty_main BUG: memory leak unreferenced object 0xffff888100b60200 (size 512): comm "kthreadd", pid 2, jiffies 4294937343 hex dump (first 32 bytes): 00 6c c3 09 81 88 ff ff 00 9a 9d 0a 81 88 ff ff .l.............. 00 16 04 00 81 88 ff ff 00 00 00 00 00 00 00 00 ................ backtrace (crc 8a95531e): kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline] slab_post_alloc_hook mm/slub.c:4552 [inline] slab_alloc_node mm/slub.c:4874 [inline] __do_kmalloc_node mm/slub.c:5267 [inline] __kmalloc_noprof+0x3bd/0x560 mm/slub.c:5280 kmalloc_noprof include/linux/slab.h:954 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] __alloc_empty_sheaf+0x35/0x50 mm/slub.c:2771 alloc_empty_sheaf mm/slub.c:2786 [inline] alloc_full_sheaf mm/slub.c:2834 [inline] __pcs_replace_empty_main+0x1d2/0x260 mm/slub.c:4634 alloc_from_pcs mm/slub.c:4725 [inline] slab_alloc_node mm/slub.c:4859 [inline] __do_kmalloc_node mm/slub.c:5267 [inline] __kmalloc_node_noprof+0x57e/0x5d0 mm/slub.c:5274 kmalloc_node_noprof include/linux/slab.h:1081 [inline] __vmalloc_area_node mm/vmalloc.c:3855 [inline] __vmalloc_node_range_noprof+0x284/0xe50 mm/vmalloc.c:4064 __vmalloc_node_noprof+0x71/0x90 mm/vmalloc.c:4124 alloc_thread_stack_node kernel/fork.c:355 [inline] dup_task_struct kernel/fork.c:924 [inline] copy_process+0x3e5/0x28c0 kernel/fork.c:2050 kernel_clone+0xac/0x6e0 kernel/fork.c:2654 kernel_thread+0x80/0xb0 kernel/fork.c:2715 create_kthread kernel/kthread.c:459 [inline] kthreadd+0x186/0x250 kernel/kthread.c:817 ret_from_fork+0x23c/0x4b0 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 BUG: memory leak unreferenced object 0xffff88810438c200 (size 512): comm "swapper/0", pid 1, jiffies 4294937794 hex dump (first 32 bytes): 00 02 10 0e 81 88 ff ff 00 56 c3 09 81 88 ff ff .........V...... 00 17 04 00 81 88 ff ff 3c 00 00 00 00 00 00 00 ........<....... backtrace (crc 3e1bb722): kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline] slab_post_alloc_hook mm/slub.c:4552 [inline] slab_alloc_node mm/slub.c:4874 [inline] __do_kmalloc_node mm/slub.c:5267 [inline] __kmalloc_noprof+0x3bd/0x560 mm/slub.c:5280 kmalloc_noprof include/linux/slab.h:954 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] __alloc_empty_sheaf+0x35/0x50 mm/slub.c:2771 alloc_empty_sheaf mm/slub.c:2786 [inline] __pcs_replace_full_main+0xe8/0x300 mm/slub.c:5730 free_to_pcs mm/slub.c:5783 [inline] slab_free mm/slub.c:6185 [inline] kfree+0x352/0x390 mm/slub.c:6498 v4l2_ctrl_handler_free drivers/media/v4l2-core/v4l2-ctrls-core.c:1756 [inline] v4l2_ctrl_handler_free+0x92/0x290 drivers/media/v4l2-core/v4l2-ctrls-core.c:1736 vivid_dev_release+0x26/0x90 drivers/media/test-drivers/vivid/vivid-core.c:857 v4l2_device_release drivers/media/v4l2-core/v4l2-device.c:51 [inline] kref_put include/linux/kref.h:65 [inline] v4l2_device_put+0x6b/0xa0 drivers/media/v4l2-core/v4l2-device.c:56 vivid_create_instance drivers/media/test-drivers/vivid/vivid-core.c:2070 [inline] vivid_probe.cold+0x55a/0x386d drivers/media/test-drivers/vivid/vivid-core.c:2095 platform_probe+0x86/0xf0 drivers/base/platform.c:1446 call_driver_probe drivers/base/dd.c:583 [inline] really_probe+0x12f/0x3a0 drivers/base/dd.c:661 __driver_probe_device+0xc7/0x160 drivers/base/dd.c:803 driver_probe_device+0x2a/0x120 drivers/base/dd.c:833 __driver_attach drivers/base/dd.c:1227 [inline] __driver_attach+0x10a/0x200 drivers/base/dd.c:1167 bus_for_each_dev+0xb8/0x120 drivers/base/bus.c:383 bus_add_driver+0x122/0x280 drivers/base/bus.c:715 driver_register+0xb1/0x140 drivers/base/driver.c:249 BUG: memory leak unreferenced object 0xffff888109c35c00 (size 512): comm "kworker/0:1", pid 10, jiffies 4294937868 hex dump (first 32 bytes): 00 68 d4 09 81 88 ff ff 00 9c de 09 81 88 ff ff .h.............. 00 16 04 00 81 88 ff ff 00 00 00 00 00 00 00 00 ................ backtrace (crc 9ab54a7c): kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline] slab_post_alloc_hook mm/slub.c:4552 [inline] slab_alloc_node mm/slub.c:4874 [inline] __do_kmalloc_node mm/slub.c:5267 [inline] __kmalloc_noprof+0x3bd/0x560 mm/slub.c:5280 kmalloc_noprof include/linux/slab.h:954 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] __alloc_empty_sheaf+0x35/0x50 mm/slub.c:2771 alloc_empty_sheaf mm/slub.c:2786 [inline] __pcs_replace_full_main+0xe8/0x300 mm/slub.c:5730 free_to_pcs mm/slub.c:5783 [inline] slab_free mm/slub.c:6185 [inline] kfree+0x352/0x390 mm/slub.c:6498 vfree.part.0+0x1cd/0x4d0 mm/vmalloc.c:3484 vfree mm/vmalloc.c:3456 [inline] delayed_vfree_work+0x5b/0x90 mm/vmalloc.c:3398 process_one_work+0x26c/0x5d0 kernel/workqueue.c:3275 process_scheduled_works kernel/workqueue.c:3358 [inline] worker_thread+0x243/0x490 kernel/workqueue.c:3439 kthread+0x14e/0x1a0 kernel/kthread.c:436 ret_from_fork+0x23c/0x4b0 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 BUG: memory leak unreferenced object 0xffff88810a9d9a00 (size 512): comm "swapper/0", pid 1, jiffies 4294937887 hex dump (first 32 bytes): 00 02 b6 00 81 88 ff ff 00 98 9d 0a 81 88 ff ff ................ 00 16 04 00 81 88 ff ff 00 00 00 00 00 00 00 00 ................ backtrace (crc 368f6316): kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline] slab_post_alloc_hook mm/slub.c:4552 [inline] slab_alloc_node mm/slub.c:4874 [inline] __do_kmalloc_node mm/slub.c:5267 [inline] __kmalloc_noprof+0x3bd/0x560 mm/slub.c:5280 kmalloc_noprof include/linux/slab.h:954 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] __alloc_empty_sheaf+0x35/0x50 mm/slub.c:2771 alloc_empty_sheaf mm/slub.c:2786 [inline] __pcs_replace_full_main+0xe8/0x300 mm/slub.c:5730 free_to_pcs mm/slub.c:5783 [inline] slab_free mm/slub.c:6185 [inline] kfree+0x352/0x390 mm/slub.c:6498 slab_sysfs_init+0xce/0xf0 mm/slub.c:9613 do_one_initcall+0x79/0x4c0 init/main.c:1382 do_initcall_level init/main.c:1444 [inline] do_initcalls init/main.c:1460 [inline] do_basic_setup init/main.c:1479 [inline] kernel_init_freeable+0x2a4/0x340 init/main.c:1692 kernel_init+0x1b/0x1d0 init/main.c:1582 ret_from_fork+0x23c/0x4b0 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 BUG: memory leak unreferenced object 0xffff88810a9d9600 (size 512): comm "swapper/0", pid 1, jiffies 4294937887 hex dump (first 32 bytes): 00 b6 34 0a 81 88 ff ff 00 6c c3 09 81 88 ff ff ..4......l...... 00 16 04 00 81 88 ff ff 00 00 00 00 00 00 00 00 ................ backtrace (crc d6fcd7dc): kmemleak_alloc_recursive include/linux/kmemleak.h:44 [inline] slab_post_alloc_hook mm/slub.c:4552 [inline] slab_alloc_node mm/slub.c:4874 [inline] __do_kmalloc_node mm/slub.c:5267 [inline] __kmalloc_noprof+0x3bd/0x560 mm/slub.c:5280 kmalloc_noprof include/linux/slab.h:954 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] __alloc_empty_sheaf+0x35/0x50 mm/slub.c:2771 alloc_empty_sheaf mm/slub.c:2786 [inline] __pcs_replace_full_main+0xe8/0x300 mm/slub.c:5730 free_to_pcs mm/slub.c:5783 [inline] slab_free mm/slub.c:6185 [inline] kfree+0x352/0x390 mm/slub.c:6498 slab_sysfs_init+0xce/0xf0 mm/slub.c:9613 do_one_initcall+0x79/0x4c0 init/main.c:1382 do_initcall_level init/main.c:1444 [inline] do_initcalls init/main.c:1460 [inline] do_basic_setup init/main.c:1479 [inline] kernel_init_freeable+0x2a4/0x340 init/main.c:1692 kernel_init+0x1b/0x1d0 init/main.c:1582 ret_from_fork+0x23c/0x4b0 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 connection error: failed to recv *flatrpc.ExecutorMessageRawT: EOF Tested on: commit: 1f318b96 Linux 7.0-rc3 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17bde806580000 kernel config: https://syzkaller.appspot.com/x/.config?x=2c6ad6fefffa76b1 dashboard link: https://syzkaller.appspot.com/bug?extid=cae7809e9dc1459e4e63 compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44 patch: https://syzkaller.appspot.com/x/patch.diff?x=1065375a580000 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel