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 08398C433E7 for ; Fri, 16 Oct 2020 17:16:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B224B2084C for ; Fri, 16 Oct 2020 17:16:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390381AbgJPRQW (ORCPT ); Fri, 16 Oct 2020 13:16:22 -0400 Received: from mail-il1-f200.google.com ([209.85.166.200]:34976 "EHLO mail-il1-f200.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390339AbgJPRQU (ORCPT ); Fri, 16 Oct 2020 13:16:20 -0400 Received: by mail-il1-f200.google.com with SMTP id k15so2092672ilh.2 for ; Fri, 16 Oct 2020 10:16:18 -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:in-reply-to:message-id:subject :from:to; bh=q0jNKtibOWMJBRSMoi9tRAAYTD3Bsh7XibLHQWKKvMs=; b=s32Wv9n4v4phTgG3jX2z1jZuFKbd1GFTdeBmI8UyhAeZVNmh0z9HTo5tAN7hxdLoa3 npwjH/uuCDdeQXAM/R0JEHwhk0B1S1snnCSEe3IENH1H6t+4bZ/Z2XlZMkKa7eiDqM9p fMVjOMD3bDCvvPekeeO0m6xuOkKLyBDyVa6hzzw0q5QEbdqSH80f3xIhaQ7GmiFhUFiS DAh9UWOq+C3N212L2L0UmCOQHNNqbT8jjCRii6zdzTEJvtvMIoJwrOQHeP+FUWfH/ojU KmzDz7HINgulKOxnIbCSjL5cdYtQI4NyFUh8efaq43Vi2IT4Ayvx++wZyWkoAIII4fPK Cmcg== X-Gm-Message-State: AOAM530Zl4N5yz2jHZ8sfw83EHqVlCvHD9kCL/ms/De75cShlsI/VfFn V5eGeFm4kKvjlNbYNwUqctcIuuQuEF0VKRayivScTbMlcBjx X-Google-Smtp-Source: ABdhPJwqAUmyYK33bi7fsTlYAEosMlLlYVI/JmFTbMGOfskbj7unza2qeiRqPfBErINwiMLlxq0rBxgEvPh/RyCvU9DhOFa4hD3Z MIME-Version: 1.0 X-Received: by 2002:a92:da0e:: with SMTP id z14mr3473482ilm.151.1602868577972; Fri, 16 Oct 2020 10:16:17 -0700 (PDT) Date: Fri, 16 Oct 2020 10:16:17 -0700 In-Reply-To: <000000000000e921b305b18ba0a7@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <00000000000036383505b1ccec93@google.com> Subject: Re: BUG: using __this_cpu_read() in preemptible code in trace_hardirqs_on From: syzbot To: linux-kernel@vger.kernel.org, mingo@redhat.com, netdev@vger.kernel.org, peterz@infradead.org, rostedt@goodmis.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: 9ff9b0d3 Merge tag 'net-next-5.10' of git://git.kernel.org.. git tree: net-next console output: https://syzkaller.appspot.com/x/log.txt?x=16638607900000 kernel config: https://syzkaller.appspot.com/x/.config?x=d13c3fa80bc4bcc1 dashboard link: https://syzkaller.appspot.com/bug?extid=53f8ce8bbc07924b6417 compiler: gcc (GCC) 10.1.0-syz 20200507 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15b63310500000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1565657f900000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+53f8ce8bbc07924b6417@syzkaller.appspotmail.com BUG: using __this_cpu_read() in preemptible [00000000] code: syz-executor089/6901 caller is lockdep_hardirqs_on_prepare+0x5e/0x450 kernel/locking/lockdep.c:4060 CPU: 0 PID: 6901 Comm: syz-executor089 Not tainted 5.9.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x198/0x1fb lib/dump_stack.c:118 check_preemption_disabled+0x128/0x130 lib/smp_processor_id.c:48 lockdep_hardirqs_on_prepare+0x5e/0x450 kernel/locking/lockdep.c:4060 trace_hardirqs_on+0x5b/0x1c0 kernel/trace/trace_preemptirq.c:49 __bad_area_nosemaphore+0xc6/0x4f0 arch/x86/mm/fault.c:797 do_user_addr_fault+0x852/0xbf0 arch/x86/mm/fault.c:1335 handle_page_fault arch/x86/mm/fault.c:1429 [inline] exc_page_fault+0xa8/0x190 arch/x86/mm/fault.c:1482 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:583 RIP: 0033:0x4241f0 Code: 66 0f ef c0 66 0f ef c9 66 0f ef d2 66 0f ef db 48 89 f8 48 89 f9 48 81 e1 ff 0f 00 00 48 81 f9 cf 0f 00 00 77 74 48 83 e0 f0 <66> 0f 74 00 66 0f 74 48 10 66 0f 74 50 20 66 0f 74 58 30 66 0f d7 RSP: 002b:00007ffcacd310b8 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00007ffcacd310e0 RCX: 0000000000000000 RDX: 0000000000000010 RSI: 000000000000000f RDI: 0000000000000000 RBP: 0000000000000003 R08: 00000000ffffffff R09: 0000000000000000 R10: 0000000000000000 R11: 000000000000000f R12: 0000000000401d70 R13: 0000000000401e00 R14: 0000000000000000 R15: 0000000000000000 BUG: using __this_cpu_read() in preemptible [00000000] code: syz-executor089/6901 caller is lockdep_hardirqs_on+0x34/0x110 kernel/locking/lockdep.c:4129 CPU: 0 PID: 6901 Comm: syz-executor089 Not tainted 5.9.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x198/0x1fb lib/dump_stack.c:118 check_preemption_disabled+0x128/0x130 lib/smp_processor_id.c:48 lockdep_hardirqs_on+0x34/0x110 kernel/locking/lockdep.c:4129 __bad_area_nosemaphore+0xc6/0x4f0 arch/x86/mm/fault.c:797 do_user_addr_fault+0x852/0xbf0 arch/x86/mm/fault.c:1335 handle_page_fault arch/x86/mm/fault.c:1429 [inline] exc_page_fault+0xa8/0x190 arch/x86/mm/fault.c:1482 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:583 RIP: 0033:0x4241f0 Code: 66 0f ef c0 66 0f ef c9 66 0f ef d2 66 0f ef db 48 89 f8 48 89 f9 48 81 e1 ff 0f 00 00 48 81 f9 cf 0f 00 00 77 74 48 83 e0 f0 <66> 0f 74 00 66 0f 74 48 10 66 0f 74 50 20 66 0f 74 58 30 66 0f d7 RSP: 002b:00007ffcacd310b8 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00007ffcacd310e0 RCX: 0000000000000000 RDX: 0000000000000010 RSI: 000000000000000f RDI: 0000000000000000 RBP: 0000000000000003 R08: 00000000ffffffff R09: 0000000000000000 R10: 0000000000000000 R11: 00000000000