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 34C6FEFCD99 for ; Mon, 9 Mar 2026 11:11:36 +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=zWCD8/vxlmCwPIpkmAtVfUFnZIInLzmUxYfqbnOiqRE=; b=iWHKrPnH+YUoEbtR6oh1ghia9g Q+0ePQ0Hkc7OzCp4Sg9fikreEpTqW/CN2WQ7NYBujb5YjgNP2e2Bcth07g1a/rIpszU8d6418t/WZ hda1dA3qLKLWHP19fv65qB4n8lgUZ4n8BWy1cVaV6Jpq+eVD2kFMrQNV305OF9HrKThg=; 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 1vzYWL-0007jc-OU; Mon, 09 Mar 2026 11:11:35 +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 <3x6quaQkbACwaghSITTMZIXXQL.OWWOTMcaMZKWVbMVb.KWU@M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com>) id 1vzYVw-0007hq-RX for linux-f2fs-devel@lists.sourceforge.net; Mon, 09 Mar 2026 11:11:09 +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=Z05biv7HDDyvWTAZybrg4/Tgqu8avyuVtSPLUJRGL/Q=; b=hBI8kWD3b6GhEkmaQY5zcZdLkG oLhFMgNxcF6Tf6R8mw8GylpN87FqHibsIyEEqxDlvudFGA+l3YczpY8qFFXICmF2Ce/EaPaC0e3Vc C+2rwlNq+6jyRYSpBduSzlhsJMkpFNJfLY3DuZlhYOWndJWmwsrKOsExcvZQq5bR5wM8=; 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=Z05biv7HDDyvWTAZybrg4/Tgqu8avyuVtSPLUJRGL/Q=; b=I hrRLsZSEIFBaWr6CWBdWLC3Ra18aYsV3LHz3IBzDQZxsgevs23gepxLUlWNEtj+smcVw+57cZE54q KajFUSIQCJGtmPwVgQQFfmzlcmmlTsK8jp7xD9xaR7ieotvfVWeHmsS6Xel+Y/pCWTAXW7q8xwJ4h 8DErPyryN0E6dPy8=; Received: from mail-oa1-f72.google.com ([209.85.160.72]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.95) id 1vzYVw-0001rC-Ts for linux-f2fs-devel@lists.sourceforge.net; Mon, 09 Mar 2026 11:11:09 +0000 Received: by mail-oa1-f72.google.com with SMTP id 586e51a60fabf-40996e43ddaso30202737fac.3 for ; Mon, 09 Mar 2026 04:11:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773054663; x=1773659463; 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=Z05biv7HDDyvWTAZybrg4/Tgqu8avyuVtSPLUJRGL/Q=; b=gQQffY5ogmDYrdK2PaV1iO3u7CY/4OLf9NrTYRgl+U5ciI29JMxBWIXErBQRewhoqF 5+3HL3wr/nCCgX8doPLDOb6+01PykYZbXiN3TzKPF3yrd+gXlct7J4qv5D7vJ3mq/fwS rUiszFJbxIsA84b0qpBruk4+vWSPhHUzinv3RVNsM/937YaqaBexiyjLSFYjs5Yl4ep1 xvgWK2Hov7UIPzUgllgvcMImdGgpdM7NVwmcwXnENg4aV3KDB+tL0kx/1eYk+ncqNRiK JQi+LL3PkDxPf6S8XLfkhE0jdJNmOQmOoegiGkSd8BSszE4gMQ7LVIPMkx+BGUJOriAj N9vQ== X-Forwarded-Encrypted: i=1; AJvYcCXfH44GzZWxYXwOUQLtAf11Rzj8jBp7h0/KwlYu7EvAlxoDQVebXnRk8wEDSvVTsGpHBrqLmZ+pUO0F3l2GNMYI@lists.sourceforge.net X-Gm-Message-State: AOJu0Yw5zl5GhE4WAgrY6TSU7KxsVWQ8Lk62spIVU2fdviiPTfx2VVii YvNHYNK+FIKXdR4ToCrKCIjn1LW+kxwqNsDXjq5VtOT/CDZ1eaVBla7UzsXBUJsX+0jY3XacW/E S8LaE8HvDe2nr9fGE3GG8u18rGYPD+2/NJidv9EstNl5PLlYphuINsrAEG6s= MIME-Version: 1.0 X-Received: by 2002:a05:6820:3105:b0:679:92c7:2bfa with SMTP id 006d021491bc7-67b9bd0fc42mr6325438eaf.45.1773054663271; Mon, 09 Mar 2026 04:11:03 -0700 (PDT) Date: Mon, 09 Mar 2026 04:11:03 -0700 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <69aeaac7.a70a0220.52840.0014.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: 1vzYVw-0001rC-Ts 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 0xffff8881008bb900 (size 256): comm "swapper/0", pid 0, jiffies 4294937326 hex dump (first 32 bytes): 00 e8 54 0b 81 88 ff ff 00 55 bf 0f 81 88 ff ff ..T......U...... 00 e1 04 00 81 88 ff ff 00 00 00 00 00 00 00 00 ................ backtrace (crc e804819c): 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_noprof+0x4c5/0x560 mm/slub.c:5280 kmalloc_noprof include/linux/slab.h:954 [inline] kzalloc_noprof include/linux/slab.h:1188 [inline] __register_sysctl_table+0x4e/0xa60 fs/proc/proc_sysctl.c:1379 register_sysctl_sz fs/proc/proc_sysctl.c:1436 [inline] __register_sysctl_init+0x30/0x70 fs/proc/proc_sysctl.c:1465 pagecache_init+0x4e/0x70 mm/filemap.c:1095 start_kernel+0xb33/0xb80 init/main.c:1193 x86_64_start_reservations+0x24/0x30 arch/x86/kernel/head64.c:310 x86_64_start_kernel+0xce/0xd0 arch/x86/kernel/head64.c:291 common_startup_64+0x13e/0x148 BUG: memory leak unreferenced object 0xffff888104417400 (size 512): comm "kworker/0:1", pid 10, jiffies 4294937905 hex dump (first 32 bytes): 00 42 a4 1c 81 88 ff ff 00 06 05 00 81 88 ff ff .B.............. 00 16 04 00 81 88 ff ff 00 00 00 00 00 00 00 00 ................ backtrace (crc db9a578f): 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 0xffff88810ad9d600 (size 512): comm "syz-executor", pid 5829, jiffies 4294941807 hex dump (first 32 bytes): 00 72 0a 00 81 88 ff ff 00 d2 04 00 81 88 ff ff .r.............. 00 af 04 00 81 88 ff ff 00 00 00 00 00 00 00 00 ................ backtrace (crc 57ea7b83): 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] __kvmalloc_node_noprof+0x5a7/0x770 mm/slub.c:6767 allocate_hook_entries_size net/netfilter/core.c:58 [inline] nf_hook_entries_grow+0x178/0x3e0 net/netfilter/core.c:137 __nf_register_net_hook+0xc4/0x2e0 net/netfilter/core.c:432 nf_register_net_hook+0x8a/0x110 net/netfilter/core.c:575 nf_register_net_hooks+0x5d/0xd0 net/netfilter/core.c:591 ipt_register_table+0x15e/0x220 net/ipv4/netfilter/ip_tables.c:1781 iptable_security_table_init+0x40/0x60 net/ipv4/netfilter/iptable_security.c:46 xt_find_table_lock+0x1a3/0x270 net/netfilter/x_tables.c:1260 xt_request_find_table_lock+0x28/0xb0 net/netfilter/x_tables.c:1285 get_info+0x101/0x460 net/ipv4/netfilter/ip_tables.c:963 do_ipt_get_ctl+0x9b/0x5e0 net/ipv4/netfilter/ip_tables.c:1659 nf_getsockopt+0x61/0xa0 net/netfilter/nf_sockopt.c:116 ip_getsockopt+0x10a/0x150 net/ipv4/ip_sockglue.c:1777 BUG: memory leak unreferenced object 0xffff88810fbf5500 (size 256): comm "kworker/u8:0", pid 12, jiffies 4294942140 hex dump (first 32 bytes): 00 b9 8b 00 81 88 ff ff 00 72 02 01 81 88 ff ff .........r...... 00 e1 04 00 81 88 ff ff 00 00 00 00 00 00 00 00 ................ backtrace (crc 88397b4): 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 netif_free_tx_queues net/core/dev.c:11206 [inline] free_netdev+0x71/0x380 net/core/dev.c:12183 netdev_run_todo+0x5ec/0x770 net/core/dev.c:11726 ops_exit_rtnl_list net/core/net_namespace.c:189 [inline] ops_undo_list+0x2bd/0x300 net/core/net_namespace.c:248 cleanup_net+0x287/0x570 net/core/net_namespace.c:704 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 0xffff88810b540200 (size 512): comm "kworker/u8:2", pid 34, jiffies 4294942151 hex dump (first 32 bytes): 00 8a 51 27 81 88 ff ff 00 2e 7a 2e 81 88 ff ff ..Q'......z..... 00 18 04 00 81 88 ff ff 00 00 00 00 00 00 00 00 ................ backtrace (crc 8700e7f7): 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 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 0xffff888127522c00 (size 512): comm "kworker/u8:7", pid 1176, jiffies 4294942410 hex dump (first 32 bytes): 00 7a 54 0b 81 88 ff ff 00 e6 b9 0f 81 88 ff ff .zT............. 00 18 04 00 81 88 ff ff 00 00 00 00 00 00 00 00 ................ backtrace (crc c4b7e6cc): 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 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 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=117b875a580000 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=17b8375a580000 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel