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 X-Spam-Level: X-Spam-Status: No, score=-8.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0CCFBC2B9F4 for ; Tue, 22 Jun 2021 19:04:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DD32E600D3 for ; Tue, 22 Jun 2021 19:04:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232692AbhFVTGp (ORCPT ); Tue, 22 Jun 2021 15:06:45 -0400 Received: from mail-il1-f199.google.com ([209.85.166.199]:54938 "EHLO mail-il1-f199.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232648AbhFVTGk (ORCPT ); Tue, 22 Jun 2021 15:06:40 -0400 Received: by mail-il1-f199.google.com with SMTP id j26-20020a056e02219ab02901ee10247e01so136040ila.21 for ; Tue, 22 Jun 2021 12:04:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=6B09qJitkXkrlV9UF7bw3/haDx6V0dIWg9bl/gymHkQ=; b=eGIEmEjklV9TeicS218jP5iwlHcYXat/K04ytWY5GTwaRoul3HygOAAbOpQNb8KMof 35FIIPiIAob4xk2I6HEgIBpsBXY2AAJWwyQKeaoLG2ZtsM9OvC+B+3p2cGs1vBYtTgDs Zb0H2LxsueDm/IOYENaOpRK49zP9rWUwOg2NOI5zzwjHwesZ7jbFMpOAcC68Pe60SSO5 l5yGKyA4W4Dos7rNIDIyctb2Yky/5dAQDCQKkSAMbEcn8zWf8PK/DKYX1LGeOjGyOsVT Hj8GgPxaY1qz22faJeGvVvV1R9zw2XPlHmbhely5vCcvfmlHXwIn+l4Ye4fMljBxaY8w WV/g== X-Gm-Message-State: AOAM533eaU5RxpSG4JkOvIz+VqL8PB6i1lj8DBdAIB/z521YhL4yhevL HZVNwRCLmssYJ3l6gaUBSVsNY2QwViqZyFaYnNCWhLWIbDJw X-Google-Smtp-Source: ABdhPJwagUwNCj6dRRbO01rg3t0ZYcnjYGBczXB5pvJtQxgqGGTZKzlIrntYlr9AEnbaqBUMM7rBko/SaprySMxbgH/AyhoUt8Z5 MIME-Version: 1.0 X-Received: by 2002:a05:6e02:511:: with SMTP id d17mr103157ils.277.1624388663182; Tue, 22 Jun 2021 12:04:23 -0700 (PDT) Date: Tue, 22 Jun 2021 12:04:23 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000003f0bbd05c55f7511@google.com> Subject: [syzbot] memory leak in xfrm_user_rcv_msg From: syzbot To: davem@davemloft.net, herbert@gondor.apana.org.au, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, steffen.klassert@secunet.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: fd0aa1a4 Merge tag 'for-linus' of git://git.kernel.org/pub.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=17464aa4300000 kernel config: https://syzkaller.appspot.com/x/.config?x=6ec2526c74098317 dashboard link: https://syzkaller.appspot.com/bug?extid=fb347cf82c73a90efcca syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14946548300000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10d28548300000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+fb347cf82c73a90efcca@syzkaller.appspotmail.com BUG: memory leak unreferenced object 0xffff88810f402d00 (size 232): comm "syz-executor486", pid 8416, jiffies 4294943639 (age 13.060s) 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: [] __alloc_skb+0x20f/0x280 net/core/skbuff.c:413 [] alloc_skb include/linux/skbuff.h:1107 [inline] [] xfrm_alloc_compat+0x1d6/0x6d0 net/xfrm/xfrm_compat.c:324 [] xfrm_alloc_userspi+0x29c/0x3f0 net/xfrm/xfrm_user.c:1448 [] xfrm_user_rcv_msg+0x208/0x3e0 net/xfrm/xfrm_user.c:2812 [] netlink_rcv_skb+0x87/0x1d0 net/netlink/af_netlink.c:2504 [] xfrm_netlink_rcv+0x32/0x40 net/xfrm/xfrm_user.c:2824 [] netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] [] netlink_unicast+0x392/0x4c0 net/netlink/af_netlink.c:1340 [] netlink_sendmsg+0x368/0x6a0 net/netlink/af_netlink.c:1929 [] sock_sendmsg_nosec net/socket.c:654 [inline] [] sock_sendmsg+0x56/0x80 net/socket.c:674 [] sock_no_sendpage+0x8f/0xc0 net/core/sock.c:2862 [] kernel_sendpage.part.0+0xeb/0x150 net/socket.c:3631 [] kernel_sendpage net/socket.c:3628 [inline] [] sock_sendpage+0x5b/0x90 net/socket.c:947 [] pipe_to_sendpage+0xa2/0x110 fs/splice.c:364 [] splice_from_pipe_feed fs/splice.c:418 [inline] [] __splice_from_pipe+0x1e2/0x330 fs/splice.c:562 [] splice_from_pipe fs/splice.c:597 [inline] [] generic_splice_sendpage+0x6f/0xa0 fs/splice.c:746 [] do_splice_from fs/splice.c:767 [inline] [] direct_splice_actor+0x4b/0x70 fs/splice.c:936 --- 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