Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp903763pxb; Fri, 3 Sep 2021 16:52:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgZlln+ea1Uu//uJJ2WhEiuuB0FHbmfK50JpQxcN4D3OsD5uZQ1X4z0/FmlSNuOqByGa5u X-Received: by 2002:a05:6402:2810:: with SMTP id h16mr1558113ede.133.1630713172840; Fri, 03 Sep 2021 16:52:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630713172; cv=none; d=google.com; s=arc-20160816; b=YM71zrf58CGWJX/KSJls71zT9Owuh+4MLHPQAwSmfju8gEILrLTqGHwHJ4Z5XKTdbS h3Af0WGYhM7P7GbcLbvTYIq5Xge3ft2xjiQ0z/kwgxdK/Alk+0E7MiW7rCz2DkGMK1vL WVUKl+qbiC8StjK4xWZ1SED3fuToWekMJdgFdMr46xxtUuC+wm1uqHm+MEz+rFPZca26 T65Gq21ZWHRp/wfdt7euD/tojGwBiLC5S78lXlpYQPxyCw5vI9ein+GJwksSaYeMQ0iY YbfWnS8DruZzIXTRVuZ/0xlwoosDahfFKom7A5u0QyjO1GXbpsFArrFdeUONwjM9kZoX U8tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=E4DKx2x3qEqa/La398s4sWrvTl4Rrvl7+M4z46YI5nw=; b=iI1hE6Uw7OI8q6+dj5HUuzQigeZr2Ley7kFIRE7Y8vWZYEhnuAWIMC1dhaFdFfYmWj iCFzXg5nRi00CtM4F008uRajb7ErZCGcwOE2R/SVaNUx2N7Re772/SIOuY8NelotnUMo Rdv4b9v2rGUDu5/lqphlSP7+rI0mxeUbYxOjDxtjz0dSWJmy6WbgNsbt37Iyq9SHI7Ou zuXp7jiG+AQAZN/5M7AaUL5jGbNiLl4BERjlYJ8B7T9HNU8P9lYcmne2xawJi2t8sjNd XroS9lTfY77bJSbxdjAz/KEI/lYSEgYO1+0ZTMn958Q9v65CcJWeyZYNtu8+8S5Geqnw 7rlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg33si755583ejc.234.2021.09.03.16.52.29; Fri, 03 Sep 2021 16:52:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350474AbhICXvc (ORCPT + 99 others); Fri, 3 Sep 2021 19:51:32 -0400 Received: from mail-io1-f72.google.com ([209.85.166.72]:49785 "EHLO mail-io1-f72.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233759AbhICXvb (ORCPT ); Fri, 3 Sep 2021 19:51:31 -0400 Received: by mail-io1-f72.google.com with SMTP id k6-20020a6b3c060000b0290568c2302268so453470iob.16 for ; Fri, 03 Sep 2021 16:50:30 -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=E4DKx2x3qEqa/La398s4sWrvTl4Rrvl7+M4z46YI5nw=; b=fJ0emfsmXuMxKlVLOdKx9rhH/dcrmumFTNWzMJZtJnfrW5ubaKckgIa7x2BlcLnkMe c8JvplFMrWoQcwfNqEUp9vk526vr/WmSsTp7LXO7mfpzXui5UHrZXagkpPxwCM9mh/QB IplEr7L4rfregWq8rm4rfGS/gFtnE2JxgTHHn5lQckUBY1GaUH55ZOfzVUFpLtaTuNCx dyLf9mA98BO+b8C2JWBSTnI+jmm53r3Kb4n4t0cggGvol5pyWJ0/FcMl44mDLV2AyUIO mwrnMZd/jE115mbnHhbKu6sdT9u+jALHlXIIS/yil+Jw+L6sIr1BuhbZaIZbAxMja66n xTZQ== X-Gm-Message-State: AOAM531I270eWGnW8WryQQ4ZM9uy6y4rGEgFsGQ2GRV8S+tlV0dZq3/7 hJcH4FQdFu67EdAY7B3z5b98b4N8u7H/ji1nWUOcz5HYnokR MIME-Version: 1.0 X-Received: by 2002:a05:6e02:144:: with SMTP id j4mr1033579ilr.75.1630713030517; Fri, 03 Sep 2021 16:50:30 -0700 (PDT) Date: Fri, 03 Sep 2021 16:50:30 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000ea2f2605cb1ff6f6@google.com> Subject: [syzbot] WARNING: kmalloc bug in hash_ip_create From: syzbot To: coreteam@netfilter.org, davem@davemloft.net, fw@strlen.de, kadlec@netfilter.org, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, netfilter-devel@vger.kernel.org, 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: a9c9a6f741cd Merge tag 'scsi-misc' of git://git.kernel.org.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=13246f25300000 kernel config: https://syzkaller.appspot.com/x/.config?x=7860a0536ececf0c dashboard link: https://syzkaller.appspot.com/bug?extid=3493b1873fb3ea827986 compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.1 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11602f35300000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10e8fbf5300000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+3493b1873fb3ea827986@syzkaller.appspotmail.com ------------[ cut here ]------------ WARNING: CPU: 1 PID: 8430 at mm/util.c:597 kvmalloc_node+0x111/0x120 mm/util.c:597 Modules linked in: CPU: 1 PID: 8430 Comm: syz-executor792 Not tainted 5.14.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:kvmalloc_node+0x111/0x120 mm/util.c:597 Code: 01 00 00 00 4c 89 e7 e8 8d 12 0d 00 49 89 c5 e9 69 ff ff ff e8 f0 21 d1 ff 41 89 ed 41 81 cd 00 20 01 00 eb 95 e8 df 21 d1 ff <0f> 0b e9 4c ff ff ff 0f 1f 84 00 00 00 00 00 55 48 89 fd 53 e8 c6 RSP: 0018:ffffc9000108f280 EFLAGS: 00010293 RAX: 0000000000000000 RBX: ffffc9000108f3a0 RCX: 0000000000000000 RDX: ffff88801bfd5580 RSI: ffffffff81a4f621 RDI: 0000000000000003 RBP: 0000000000400dc0 R08: 000000007fffffff R09: 00000000ffffffff R10: ffffffff81a4f5de R11: 000000000000001f R12: 0000000200000018 R13: 0000000000000000 R14: 00000000ffffffff R15: ffff888028b41a00 FS: 0000000002409300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000006 CR3: 00000000127f1000 CR4: 0000000000350ee0 Call Trace: hash_ip_create+0x4bb/0x13d0 net/netfilter/ipset/ip_set_hash_gen.h:1524 ip_set_create+0x782/0x15a0 net/netfilter/ipset/ip_set_core.c:1100 nfnetlink_rcv_msg+0xbc9/0x13f0 net/netfilter/nfnetlink.c:296 netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2504 nfnetlink_rcv+0x1ac/0x420 net/netfilter/nfnetlink.c:654 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline] netlink_unicast+0x533/0x7d0 net/netlink/af_netlink.c:1340 netlink_sendmsg+0x86d/0xdb0 net/netlink/af_netlink.c:1929 sock_sendmsg_nosec net/socket.c:704 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:724 ____sys_sendmsg+0x6e8/0x810 net/socket.c:2409 ___sys_sendmsg+0xf3/0x170 net/socket.c:2463 __sys_sendmsg+0xe5/0x1b0 net/socket.c:2492 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+0x44/0xae RIP: 0033:0x43f029 Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffd662e8c48 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000400488 RCX: 000000000043f029 RDX: 0000000000000000 RSI: 00000000200000c0 RDI: 0000000000000003 RBP: 0000000000403010 R08: 0000000000000005 R09: 0000000000400488 R10: 0000000000000001 R11: 0000000000000246 R12: 00000000004030a0 R13: 0000000000000000 R14: 00000000004ac018 R15: 0000000000400488 --- 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