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=-13.3 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_IN_DEF_DKIM_WL autolearn=no 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 610FCC4320E for ; Mon, 16 Aug 2021 09:49:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 498EF61B71 for ; Mon, 16 Aug 2021 09:49:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231673AbhHPJtr (ORCPT ); Mon, 16 Aug 2021 05:49:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235336AbhHPJtq (ORCPT ); Mon, 16 Aug 2021 05:49:46 -0400 Received: from mail-qt1-x82d.google.com (mail-qt1-x82d.google.com [IPv6:2607:f8b0:4864:20::82d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20163C0613C1 for ; Mon, 16 Aug 2021 02:49:15 -0700 (PDT) Received: by mail-qt1-x82d.google.com with SMTP id a12so13737277qtb.2 for ; Mon, 16 Aug 2021 02:49:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JDqS4Vdf9BZPAby1qje+qw69XOBJvZvz+l3fTI86Kvw=; b=vfbnRT82AUhz4UAsorgcKX2HZJyIwxIOP98K9xMcJG1NOpRJWiB+Cm1EVzbs+aU0TQ 9MIA5XNrZ3ZMwOS3z51psWNWxekUmINip+fBx8612RYYvQCfUyxz/+cIV3dkYUSQhY6Q OyMghJSbW9EAen149b595BbdkVRYmvivi8rUQN4Oj7d07eSvm+/Lkf+eaaLL6xq7NE83 q9hy5MBXDFbdDGkwHWdRkb35pwH7PKaq2rA/nsVRCaJt5Ny/6PAs9D0mNbN93apK6hcX BXTi6ZQHFWlxdqOuzTJjW/mkAWptbhXLNiFj6y3w9AKvdLCWd9/yiYwa9aC4UvrkO5vu tWqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JDqS4Vdf9BZPAby1qje+qw69XOBJvZvz+l3fTI86Kvw=; b=DrmC660JBODqB5tbNCYyQPEJNWglNscp370jwsNY1q9nm4uEu/mVn0HdZzft2bIRQ7 IXYH8AY0TziCY4/kzfxK9allt6E0KXHRCWXVll8hyXzdOgJV+9nqm8yAlicnZ6zzQZwC Wkj0eu+fPCfGIQ5bX4AuL0dLR7ftXKvn6GtxLZ5AtyxHy2KJP3a+KMX0+DUmRPzcJeYu +YLk9LLr0+PGwayN0+m22jE9NdNvHp1qiqVtGG0RNbUE1jHEhf49Hu7LVqQMSZLReCCg uJwwTqyWEqGk9EyIFt2pY2q3ej3IvBpU5zyyNWwQ/6dqOP5IiLtzr9CzUxqfRz/V6+ag 0P4A== X-Gm-Message-State: AOAM532d/qaAiGsRVIHhZu/S8d+6CNWXV+G/LGM7EUux+4k6CJ3Z++3j oz7/3IOHlmulq96RHivvHpE8wY4B9PnNI0dfx7LoEA== X-Google-Smtp-Source: ABdhPJwSwFy8Lx6I5hRovyQQ1OPL+2mwSCzgto98htsU/Il2oukhoNBWNgxD8SziOT/g6bJg8G6jwi0dBVnEO/86csc= X-Received: by 2002:a05:622a:289:: with SMTP id z9mr12689049qtw.67.1629107354031; Mon, 16 Aug 2021 02:49:14 -0700 (PDT) MIME-Version: 1.0 References: <000000000000af527b05c9aa0df9@google.com> In-Reply-To: <000000000000af527b05c9aa0df9@google.com> From: Dmitry Vyukov Date: Mon, 16 Aug 2021 11:49:03 +0200 Message-ID: Subject: Re: [syzbot] general protection fault in hwsim_new_edge_nl To: syzbot Cc: alex.aring@gmail.com, davem@davemloft.net, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-wpan@vger.kernel.org, mudongliangabcd@gmail.com, netdev@vger.kernel.org, stefan@datenfreihafen.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 16 Aug 2021 at 11:44, syzbot wrote: > > > On Mon, 9 Aug 2021 at 10:22, Dongliang Mu wrote: > >> > >> On Mon, Aug 9, 2021 at 3:54 PM syzbot > >> wrote: > >> > > >> > Hello, > >> > > >> > syzbot found the following issue on: > >> > > >> > HEAD commit: c2eecaa193ff pktgen: Remove redundant clone_skb override > >> > git tree: net-next > >> > console output: https://syzkaller.appspot.com/x/log.txt?x=1226099a300000 > >> > kernel config: https://syzkaller.appspot.com/x/.config?x=aba0c23f8230e048 > >> > dashboard link: https://syzkaller.appspot.com/bug?extid=fafb46da3f65fdbacd16 > >> > compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.1 > >> > > >> > Unfortunately, I don't have any reproducer for this issue yet. > >> > > >> > IMPORTANT: if you fix the issue, please add the following tag to the commit: > >> > Reported-by: syzbot+fafb46da3f65fdbacd16@syzkaller.appspotmail.com > >> > > >> > general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN > >> > KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] > >> > >> Hi all, > >> > >> I think the crash can be fixed by [PATCH] ieee802154: hwsim: fix GPF > >> in hwsim_new_edge_nl [1]. For now, it is in the wpan tree. > >> > >> [1] https://lkml.org/lkml/2021/7/8/66 > > > > Let's tell syzbot about the fix: > > > > #syz fx: ieee802154: hwsim: fix GPF in hwsim_new_edge_nl > > unknown command "fx:" #syz fix: ieee802154: hwsim: fix GPF in hwsim_new_edge_nl > >> > CPU: 1 PID: 1403 Comm: syz-executor.2 Not tainted 5.14.0-rc3-syzkaller #0 > >> > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 > >> > RIP: 0010:nla_len include/net/netlink.h:1148 [inline] > >> > RIP: 0010:nla_parse_nested_deprecated include/net/netlink.h:1231 [inline] > >> > RIP: 0010:hwsim_new_edge_nl+0xf4/0x8c0 drivers/net/ieee802154/mac802154_hwsim.c:425 > >> > Code: 00 0f 85 76 07 00 00 4d 85 ed 48 8b 5b 10 0f 84 5e 05 00 00 e8 0d f2 40 fc 48 89 da 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 14 02 48 89 d8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 87 > >> > RSP: 0018:ffffc90009a47568 EFLAGS: 00010246 > >> > RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000dd59000 > >> > RDX: 0000000000000000 RSI: ffffffff8534ab43 RDI: ffff88801c2b44d0 > >> > RBP: ffffc90009a47678 R08: 0000000000000001 R09: ffffc90009a476a8 > >> > R10: fffff52001348ed6 R11: 0000000000000000 R12: ffffc90009a47698 > >> > R13: ffff888025945c14 R14: ffff888071f0cdc0 R15: 0000000000000000 > >> > FS: 00007f8448923700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 > >> > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > >> > CR2: 00000000032f4708 CR3: 0000000033eed000 CR4: 00000000001506e0 > >> > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > >> > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > >> > Call Trace: > >> > genl_family_rcv_msg_doit+0x228/0x320 net/netlink/genetlink.c:731 > >> > genl_family_rcv_msg net/netlink/genetlink.c:775 [inline] > >> > genl_rcv_msg+0x328/0x580 net/netlink/genetlink.c:792 > >> > netlink_rcv_skb+0x153/0x420 net/netlink/af_netlink.c:2504 > >> > genl_rcv+0x24/0x40 net/netlink/genetlink.c:803 > >> > 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:2403 > >> > ___sys_sendmsg+0xf3/0x170 net/socket.c:2457 > >> > __sys_sendmsg+0xe5/0x1b0 net/socket.c:2486 > >> > 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:0x4665e9 > >> > Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 bc ff ff ff f7 d8 64 89 01 48 > >> > RSP: 002b:00007f8448923188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e > >> > RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665e9 > >> > RDX: 0000000000000000 RSI: 0000000020001ac0 RDI: 0000000000000004 > >> > RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 > >> > R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 > >> > R13: 00007ffd8ac8e60f R14: 00007f8448923300 R15: 0000000000022000 > >> > Modules linked in: > >> > ---[ end trace d1679fe789931133 ]--- > >> > RIP: 0010:nla_len include/net/netlink.h:1148 [inline] > >> > RIP: 0010:nla_parse_nested_deprecated include/net/netlink.h:1231 [inline] > >> > RIP: 0010:hwsim_new_edge_nl+0xf4/0x8c0 drivers/net/ieee802154/mac802154_hwsim.c:425 > >> > Code: 00 0f 85 76 07 00 00 4d 85 ed 48 8b 5b 10 0f 84 5e 05 00 00 e8 0d f2 40 fc 48 89 da 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 <0f> b6 14 02 48 89 d8 83 e0 07 83 c0 01 38 d0 7c 08 84 d2 0f 85 87 > >> > RSP: 0018:ffffc90009a47568 EFLAGS: 00010246 > >> > RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000dd59000 > >> > RDX: 0000000000000000 RSI: ffffffff8534ab43 RDI: ffff88801c2b44d0 > >> > RBP: ffffc90009a47678 R08: 0000000000000001 R09: ffffc90009a476a8 > >> > R10: fffff52001348ed6 R11: 0000000000000000 R12: ffffc90009a47698 > >> > R13: ffff888025945c14 R14: ffff888071f0cdc0 R15: 0000000000000000 > >> > FS: 00007f8448923700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 > >> > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > >> > CR2: 000055bb2ea2f160 CR3: 0000000033eed000 CR4: 00000000001506f0 > >> > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > >> > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > >> > > >> > > >> > --- > >> > 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. > >> > > >> > -- > >> > You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. > >> > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. > >> > To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/0000000000007faf7505c91bb19d%40google.com. > >> > >> -- > >> You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. > >> To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. > >> To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/CAD-N9QULPO0jNkKr6VxtXb78TSzzFTJ9n%2Ba36h1vruO9q6nhSw%40mail.gmail.com.