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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 58D76ECAAD4 for ; Mon, 29 Aug 2022 23:33:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229738AbiH2Xdt (ORCPT ); Mon, 29 Aug 2022 19:33:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45864 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229731AbiH2Xde (ORCPT ); Mon, 29 Aug 2022 19:33:34 -0400 Received: from mail-io1-f70.google.com (mail-io1-f70.google.com [209.85.166.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0881382FA5 for ; Mon, 29 Aug 2022 16:33:33 -0700 (PDT) Received: by mail-io1-f70.google.com with SMTP id l15-20020a0566022dcf00b00688e70a26deso5591643iow.12 for ; Mon, 29 Aug 2022 16:33:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:subject:message-id:date:mime-version:x-gm-message-state :from:to:cc; bh=pQsvM0lNlMEBpkZs+6Ir9JLbqpOTi5k2pYARw9hKdac=; b=RebeTl0OU7/8cPVUh3Cden/BjA8Pk3ZpusNyvTdDWpLx2ZlBvSn6+OSSBWw4Xh+ZHB KODKSll8FHUWzRba7UN+xtH9XYHOh14A6GSIypiN4uNnHcIjCb8hY0exrYCUfEa+v21t 1guLzbbgbMP9dke+DUgtbogVPoqDOlJm9BwaHjQ/7c9LR4qguCwuY62esMJ4jGDb97Ar 8sXyc3hEsvZok0G0hDVsuSWYpq8CyezkNT6VzFoysluUh/04O3OdE7li74YrzbhJsbGi 7snCSifGHbgpVhTNXZTLJPTe1kzLDI5yGhSrcsw07jBW4xGmNaY8JU1Xm4p5KMkM0BY/ z3FQ== X-Gm-Message-State: ACgBeo2bHccIDX0GuMsVqbpmDRs/hhB1W4+1TGw9L2Hz/PFe50EJyALA PJmUOtgJhCIt17HPsBX8dg9qMCTY0RxIRaiL694ApxPQQo38 X-Google-Smtp-Source: AA6agR5C6Qga/30TVGHv4ICPLSc92WhV+sBpWb2mo+IP20l01OrArs+sJYQqXxJXN4xomqaZsq9enJTHDKmB7j3DDMS+mDXr00nb MIME-Version: 1.0 X-Received: by 2002:a05:6638:3804:b0:349:881b:a4bc with SMTP id i4-20020a056638380400b00349881ba4bcmr10689708jav.313.1661816012409; Mon, 29 Aug 2022 16:33:32 -0700 (PDT) Date: Mon, 29 Aug 2022 16:33:32 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000001a12f105e769b1eb@google.com> Subject: [syzbot] memory leak in nft_chain_parse_hook From: syzbot To: coreteam@netfilter.org, davem@davemloft.net, edumazet@google.com, fw@strlen.de, kadlec@netfilter.org, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, pabeni@redhat.com, pablo@netfilter.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 4c612826bec1 Merge tag 'net-6.0-rc3' of git://git.kernel.o.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13db4765080000 kernel config: https://syzkaller.appspot.com/x/.config?x=b1831d905b683446 dashboard link: https://syzkaller.appspot.com/bug?extid=5fcdbfab6d6744c57418 compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1263c283080000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=111b6545080000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+5fcdbfab6d6744c57418@syzkaller.appspotmail.com executing program executing program BUG: memory leak unreferenced object 0xffff88810180b100 (size 96): comm "syz-executor133", pid 3619, jiffies 4294945714 (age 12.690s) hex dump (first 32 bytes): 28 64 23 02 81 88 ff ff 28 64 23 02 81 88 ff ff (d#.....(d#..... 90 a8 aa 83 ff ff ff ff 00 00 b5 0f 81 88 ff ff ................ backtrace: [] kmalloc include/linux/slab.h:600 [inline] [] nft_netdev_hook_alloc+0x3b/0xc0 net/netfilter/nf_tables_api.c:1901 [] nft_chain_parse_netdev net/netfilter/nf_tables_api.c:1998 [inline] [] nft_chain_parse_hook+0x33a/0x530 net/netfilter/nf_tables_api.c:2073 [] nf_tables_addchain.constprop.0+0x10b/0x950 net/netfilter/nf_tables_api.c:2218 [] nf_tables_newchain+0xa8b/0xc60 net/netfilter/nf_tables_api.c:2593 [] nfnetlink_rcv_batch+0xa46/0xd20 net/netfilter/nfnetlink.c:517 [] nfnetlink_rcv_skb_batch net/netfilter/nfnetlink.c:638 [inline] [] nfnetlink_rcv+0x1f9/0x220 net/netfilter/nfnetlink.c:656 [] netlink_unicast_kernel net/netlink/af_netlink.c:1319 [inline] [] netlink_unicast+0x397/0x4c0 net/netlink/af_netlink.c:1345 [] netlink_sendmsg+0x396/0x710 net/netlink/af_netlink.c:1921 [] sock_sendmsg_nosec net/socket.c:714 [inline] [] sock_sendmsg+0x56/0x80 net/socket.c:734 [] ____sys_sendmsg+0x36c/0x390 net/socket.c:2482 [] ___sys_sendmsg+0xa8/0x110 net/socket.c:2536 [] __sys_sendmsg+0x88/0x100 net/socket.c:2565 [] do_syscall_x64 arch/x86/entry/common.c:50 [inline] [] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 [] entry_SYSCALL_64_after_hwframe+0x63/0xcd --- 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. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches