Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp573147pxb; Thu, 14 Jan 2021 13:00:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJwOuHr7lX0NVKG3wXfINHrt1vjnngICB1d8OXCpEBBNMc7Qicdyqed0syw9UNfxtcbSrHUE X-Received: by 2002:a05:6402:22d6:: with SMTP id dm22mr6963124edb.255.1610658005310; Thu, 14 Jan 2021 13:00:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610658005; cv=none; d=google.com; s=arc-20160816; b=X6kI+L/z/h76RpazdQoIEh/WCoFUcdAQObSvmMlRTEo5cnQxYuhicMhvRTXCBN86WY EgpuxAIjU5gfy7wH8aK0J9RUYdWQ4nOS+HPOTwMw8aQdxzEmtfZHykLpA8lgBKzHlXF+ 8SGZohGQ/EQ9gbyW0i7t5/rlWdn5gVpZ8m68+NbdeNWYX+kEHdpnzs33n4IlOa5ieS3U qWvO/Y9vsJRHAvbCl0ZST4Me74icVuVGrl3rDBhOqqay6Tn3IKq5HrryHvMA0jtPNoRt hm4fgdReZgnwfng22GXxo90G87LziiNIjt9nOyKz3jMfS5qjB9wDWFVWieH1Q8u6TeSp TT6w== 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=gocC/VzkSkkh7+cWU1l2LyVuZ/yknJ3LcOA3JogfWd0=; b=pWcXPnfce9q8Ff+3zlw+XBqGYshT8qdoxU7BHPKDr+26/ERinns4ywhIFtrDgskMIn KG/1GXwWV9uwhXtxQJm/z0LV+OrQtMWxQyBj/IKWXRT2cJpapW/gSSnuVjjWcBimGBFV MEZTHbf5QDODM8HH+pCViNqn4VqR0bWhT9bK+p1l9frRohCm8WNDeFxuoplh2ylq7aDE TEsK6WcA2YEfeGXAEJKh4Ykr+eOA7huv2cKdP5RwFp5HnX8UCpNxoyt4OMUCaFHHUdFd 25IjjtwOUm7HZblM7xwcpXZXrLFtYp8sqpknZ2DGtxHGa+TQVbVWPLdg8pa8SqVlBKvD 9nkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 c13si3203992ede.559.2021.01.14.12.59.38; Thu, 14 Jan 2021 13:00:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-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-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 S1729561AbhANU5D (ORCPT + 99 others); Thu, 14 Jan 2021 15:57:03 -0500 Received: from mail-io1-f69.google.com ([209.85.166.69]:43799 "EHLO mail-io1-f69.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728564AbhANU5C (ORCPT ); Thu, 14 Jan 2021 15:57:02 -0500 Received: by mail-io1-f69.google.com with SMTP id c7so10625954iob.10 for ; Thu, 14 Jan 2021 12:56:47 -0800 (PST) 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=gocC/VzkSkkh7+cWU1l2LyVuZ/yknJ3LcOA3JogfWd0=; b=fSnDlvjWvrN2k9Zkwjij5v5XBNZwJXmEg9OCQOam1a9uDVPKvC6DHt27bC6wld7qA6 cIXVbqMiv7WOnPb9f/LnWsupjTarLweV6K9gm7DjW1UWAF/tHb4fF77kylE3w9DYFboT 37lvOMf4/y/Oq9FWakjd6PsDC97YIvF60/J0hN9b660aKTUUyyDUxgm8JAy5XqXKRyed Ex10xpxXPLSTHrO/P0keC6U3+MEaadHIZE+RH8VRfSGesgRBTz69Cvlyp14ErqTSZ6iT HtOCufy43C/+hZYKR88wbEO3GPkuYt8ydNY6XWEta04qaOMzIVkjcHAGZCDrNquYc9iG btgQ== X-Gm-Message-State: AOAM5328fH+elK3WU5NYJiXA46a0ifzcGf77K6YJUl83ptaVtZ9/f2dO /9bZkShF33iR1YbcjUTlncKKFw92X1PrccAa5BmwA7lnxebH MIME-Version: 1.0 X-Received: by 2002:a5d:8d94:: with SMTP id b20mr6476396ioj.200.1610657781676; Thu, 14 Jan 2021 12:56:21 -0800 (PST) Date: Thu, 14 Jan 2021 12:56:21 -0800 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000ee881505b8e27cf2@google.com> Subject: general protection fault in xsk_recvmsg From: syzbot To: andrii@kernel.org, ast@kernel.org, bjorn.topel@intel.com, bpf@vger.kernel.org, daniel@iogearbox.net, davem@davemloft.net, hawk@kernel.org, johannes.berg@intel.com, johannes@sipsolutions.net, john.fastabend@gmail.com, jonathan.lemon@gmail.com, kafai@fb.com, kpsingh@chromium.org, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, magnus.karlsson@intel.com, netdev@vger.kernel.org, songliubraving@fb.com, syzkaller-bugs@googlegroups.com, yhs@fb.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: df542285 Merge branch 'xdp-preferred-busy-polling' git tree: bpf-next console output: https://syzkaller.appspot.com/x/log.txt?x=11426809500000 kernel config: https://syzkaller.appspot.com/x/.config?x=6774dc081604c527 dashboard link: https://syzkaller.appspot.com/bug?extid=b974d32294d1dffbea36 compiler: gcc (GCC) 10.1.0-syz 20200507 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1648b0e5500000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=125af4ad500000 The issue was bisected to: commit dcd479e10a0510522a5d88b29b8f79ea3467d501 Author: Johannes Berg Date: Fri Oct 9 12:17:11 2020 +0000 mac80211: always wind down STA state bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=12356d1d500000 final oops: https://syzkaller.appspot.com/x/report.txt?x=11356d1d500000 console output: https://syzkaller.appspot.com/x/log.txt?x=16356d1d500000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+b974d32294d1dffbea36@syzkaller.appspotmail.com Fixes: dcd479e10a05 ("mac80211: always wind down STA state") general protection fault, probably for non-canonical address 0xdffffc0000000045: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000228-0x000000000000022f] CPU: 1 PID: 8481 Comm: syz-executor119 Not tainted 5.10.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:xsk_recvmsg+0x79/0x5e0 net/xdp/xsk.c:563 Code: 03 80 3c 02 00 0f 85 00 05 00 00 48 8b 9d c8 04 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bb 28 02 00 00 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 9c 04 00 00 8b 9b 28 02 00 00 RSP: 0018:ffffc9000165fae0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000040000000 RDX: 0000000000000045 RSI: ffffffff88a6a995 RDI: 0000000000000228 RBP: ffff88801a140000 R08: 0000000040000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000040000000 R13: 0000000040000000 R14: ffffc9000165fe98 R15: 0000000000000000 FS: 00000000007fd880(0000) GS:ffff8880b9f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020004880 CR3: 000000001f1bd000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: sock_recvmsg_nosec net/socket.c:885 [inline] sock_recvmsg net/socket.c:903 [inline] sock_recvmsg net/socket.c:899 [inline] ____sys_recvmsg+0x2c4/0x600 net/socket.c:2576 ___sys_recvmsg+0x127/0x200 net/socket.c:2618 __sys_recvmsg+0xe2/0x1a0 net/socket.c:2654 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x440269 Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 0f 83 7b 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffdbb92b6c8 EFLAGS: 00000246 ORIG_RAX: 000000000000002f RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440269 RDX: 0000000040000000 RSI: 0000000020004880 RDI: 0000000000000003 RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401a70 R13: 0000000000401b00 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 184efc29c05fd9c5 ]--- RIP: 0010:xsk_recvmsg+0x79/0x5e0 net/xdp/xsk.c:563 Code: 03 80 3c 02 00 0f 85 00 05 00 00 48 8b 9d c8 04 00 00 48 b8 00 00 00 00 00 fc ff df 48 8d bb 28 02 00 00 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e 9c 04 00 00 8b 9b 28 02 00 00 RSP: 0018:ffffc9000165fae0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000040000000 RDX: 0000000000000045 RSI: ffffffff88a6a995 RDI: 0000000000000228 RBP: ffff88801a140000 R08: 0000000040000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000040000000 R13: 0000000040000000 R14: ffffc9000165fe98 R15: 0000000000000000 FS: 00000000007fd880(0000) GS:ffff8880b9e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f66a803d058 CR3: 000000001f1bd000 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. For information about bisection process see: https://goo.gl/tpsmEJ#bisection syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches