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 autolearn=unavailable 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 32ACAC2D0E4 for ; Sun, 15 Nov 2020 19:30:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F07DD24170 for ; Sun, 15 Nov 2020 19:30:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727614AbgKOTaW (ORCPT ); Sun, 15 Nov 2020 14:30:22 -0500 Received: from mail-il1-f200.google.com ([209.85.166.200]:44567 "EHLO mail-il1-f200.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727354AbgKOTaV (ORCPT ); Sun, 15 Nov 2020 14:30:21 -0500 Received: by mail-il1-f200.google.com with SMTP id g14so5058611ilc.11 for ; Sun, 15 Nov 2020 11:30:19 -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:in-reply-to:message-id:subject :from:to; bh=ksV7G1LvEOFsXln138z/UT0+mU4z4jF6i3q/RbguKBE=; b=qGB5/B7jV4I9voUjBrgLJ4y4fVCDH9qRoSZ4N4vXtY7q58iX9WpB+qIfp4k7zcakQa ZVYgL0ukbs1g4bBnHVQSgbmO3s2vXW6lzq6EmXlQPqZHX/NNdrqEE7WO0hcD1KHJZsnq 819idEMO3wIieIBe92IL/sIsU3g/yfLLBr+w4o5rxD91ehdVBJNVm0bzfq2i5cpiaNPH rwkqq40RjK/kWZlygwgOMv3M7wwP0HLj60ZD1mEn2fDmegNrCg0YtB2J+dPGp500E9wC PScyK2y2DRIikwhPXi5AsVkIg8fTFHp0B/zSj/XfoMuBptGqOyxLV2X3B9tO0vUSjGsZ 7jag== X-Gm-Message-State: AOAM533C8sZ2ANGJ6nDUHDHQBtrpDF4gmHoOrUEdKEZwNcusAriqx0eX MOSV3O6zK3RZdvjjv9PcX0N5YKnSMTOxGUCmf5uPFB++XdyD X-Google-Smtp-Source: ABdhPJyTFNiW2UMuHFLCQHdHACXWFDf603sbZLflQzA5TfYrxntczCO8luJ0Ua5W+B49yf7sdRIasORLokwCEOVWHt+thHMlsb6r MIME-Version: 1.0 X-Received: by 2002:a5d:898c:: with SMTP id m12mr5743569iol.196.1605468619350; Sun, 15 Nov 2020 11:30:19 -0800 (PST) Date: Sun, 15 Nov 2020 11:30:19 -0800 In-Reply-To: <0000000000003b856d05b2bdb5f7@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000c1286c05b42a4a3e@google.com> Subject: Re: general protection fault in wext_handle_ioctl From: syzbot To: davem@davemloft.net, johannes@sipsolutions.net, kuba@kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org syzbot has found a reproducer for the following issue on: HEAD commit: e28c0d7c Merge branch 'akpm' (patches from Andrew) git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=15cd1cc2500000 kernel config: https://syzkaller.appspot.com/x/.config?x=37bf5609aacce0b6 dashboard link: https://syzkaller.appspot.com/bug?extid=8b2a88a09653d4084179 compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project.git ca2dcbd030eadbf0aa9b660efe864ff08af6e18b) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13706da1500000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10229fdc500000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+8b2a88a09653d4084179@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] CPU: 0 PID: 8462 Comm: syz-executor301 Not tainted 5.10.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:call_commit_handler net/wireless/wext-core.c:900 [inline] RIP: 0010:ioctl_standard_call net/wireless/wext-core.c:1029 [inline] RIP: 0010:wireless_process_ioctl net/wireless/wext-core.c:954 [inline] RIP: 0010:wext_ioctl_dispatch net/wireless/wext-core.c:987 [inline] RIP: 0010:wext_handle_ioctl+0x974/0xb20 net/wireless/wext-core.c:1048 Code: e8 61 1d a3 f8 eb 6c 48 8b 44 24 18 42 80 3c 20 00 48 8b 5c 24 20 74 08 48 89 df e8 26 16 e5 f8 48 8b 1b 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 0d 16 e5 f8 48 8b 1b 48 89 d8 48 RSP: 0018:ffffc9000143fe00 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff88d1ed88 RDX: ffff8880290e8000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffff88801b738000 R08: ffffffff88d1edaf R09: ffffed10036e7009 R10: ffffed10036e7009 R11: 0000000000000000 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000008b04 FS: 0000000001eb8880(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd3b2be000 CR3: 0000000024723000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: sock_ioctl+0xdc/0x690 net/socket.c:1119 vfs_ioctl fs/ioctl.c:48 [inline] __do_sys_ioctl fs/ioctl.c:753 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:739 do_syscall_64+0x2d/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x441529 Code: e8 ec 05 03 00 48 83 c4 18 c3 0f 1f 80 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 0f 83 8b 0d fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffeab8016d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ffeab801700 RCX: 0000000000441529 RDX: 00000000200000c0 RSI: 0000000000008b04 RDI: 0000000000000003 RBP: 0000000000000003 R08: 0000002000000000 R09: 0000002000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000032 R13: 0000000000000000 R14: 000000000000000c R15: 0000000000000004 Modules linked in: ---[ end trace d1b799cc496836f9 ]--- RIP: 0010:call_commit_handler net/wireless/wext-core.c:900 [inline] RIP: 0010:ioctl_standard_call net/wireless/wext-core.c:1029 [inline] RIP: 0010:wireless_process_ioctl net/wireless/wext-core.c:954 [inline] RIP: 0010:wext_ioctl_dispatch net/wireless/wext-core.c:987 [inline] RIP: 0010:wext_handle_ioctl+0x974/0xb20 net/wireless/wext-core.c:1048 Code: e8 61 1d a3 f8 eb 6c 48 8b 44 24 18 42 80 3c 20 00 48 8b 5c 24 20 74 08 48 89 df e8 26 16 e5 f8 48 8b 1b 48 89 d8 48 c1 e8 03 <42> 80 3c 20 00 74 08 48 89 df e8 0d 16 e5 f8 48 8b 1b 48 89 d8 48 RSP: 0018:ffffc9000143fe00 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffffffff88d1ed88 RDX: ffff8880290e8000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffff88801b738000 R08: ffffffff88d1edaf R09: ffffed10036e7009 R10: ffffed10036e7009 R11: 0000000000000000 R12: dffffc0000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000008b04 FS: 0000000001eb8880(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd3b2be000 CR3: 0000000024723000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400