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=-5.4 required=3.0 tests=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 07058C2D0EF for ; Tue, 31 Mar 2020 07:51:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CE01E206F6 for ; Tue, 31 Mar 2020 07:51:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730061AbgCaHvU (ORCPT ); Tue, 31 Mar 2020 03:51:20 -0400 Received: from mail-io1-f69.google.com ([209.85.166.69]:32807 "EHLO mail-io1-f69.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729958AbgCaHvU (ORCPT ); Tue, 31 Mar 2020 03:51:20 -0400 Received: by mail-io1-f69.google.com with SMTP id w25so18544953iom.0 for ; Tue, 31 Mar 2020 00:51: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:message-id:subject:from:to; bh=ImrKMa3+NOdhC7TK5w/1EhNipc5Vv/NoOaS4eKx7PoU=; b=QozsyAMHG7feEwhbEs8twaQsA8u7R46v4BNLZTqqrVulyadaC1zokhhkIBK1K5u21c Xz4Z8UC1+m7wLLTm73fMNuHT5/dHuN8BeufmDakBYKzHew9DPSVweOOW7r9quV9BFWhC oTGkqPuPijLcBLV+FVziCyeAEWfaSfijTGtW+T6PnqER5u6wEmKmf1F8H8VcQLVTluya 8W2ol6q0u4jr/c8X+JVzw35Ay99pSVrMahDk59Robh17S4dBeFLDS6uHVbFnokvA4wwL WlPgz3JYwGLmbyiqJ5rkdul8yHJzHZyku8Vba/yXJLVr7BY40JArUMB68klvMtkFbJgX /y8g== X-Gm-Message-State: ANhLgQ18G30LVz/O/trKFC2KD0x97pH1MPsz+Gub/ttdxc8QW+60lkCy Ay0EkoEWv3i+HRxrclxDc7dM9YCQhYH/FRkuqnmwqUDGZePk X-Google-Smtp-Source: ADFU+vvSDT0ILN24GEzPtyM3+wsLzeItjGvFwelbv5/AdND2JEv8lFrsU+N9RQv0L4v+PyZn7ej/Cgfo89SqFlT06BoHIzbac+0G MIME-Version: 1.0 X-Received: by 2002:a5d:9648:: with SMTP id d8mr5608670ios.115.1585641077799; Tue, 31 Mar 2020 00:51:17 -0700 (PDT) Date: Tue, 31 Mar 2020 00:51:17 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000002efe6505a221d5be@google.com> Subject: INFO: trying to register non-static key in io_cqring_ev_posted (2) From: syzbot To: axboe@kernel.dk, io-uring@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com, viro@zeniv.linux.org.uk Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: 673b41e0 staging/octeon: fix up merge error git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=141bd4b7e00000 kernel config: https://syzkaller.appspot.com/x/.config?x=acf766c0e3d3f8c6 dashboard link: https://syzkaller.appspot.com/bug?extid=0c3370f235b74b3cfd97 compiler: clang version 10.0.0 (https://github.com/llvm/llvm-project/ c2443155a0fb245c8f17f2c1c72b6ea391e86e81) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13ac1b9de00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=10449493e00000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+0c3370f235b74b3cfd97@syzkaller.appspotmail.com RSP: 002b:00007ffe08a3a528 EFLAGS: 00000246 ORIG_RAX: 00000000000001a9 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004412a9 RDX: 0000000000000001 RSI: 0000000020000000 RDI: 0000000000000910 RBP: 000000000000acfd R08: 0000000000000001 R09: 00000000004002c8 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004021f0 R13: 0000000000402280 R14: 0000000000000000 R15: 0000000000000000 INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. CPU: 1 PID: 7017 Comm: syz-executor095 Not tainted 5.6.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+0x1e9/0x30e lib/dump_stack.c:118 register_lock_class+0x76a/0x1000 kernel/locking/lockdep.c:472 __lock_acquire+0x102/0x2b90 kernel/locking/lockdep.c:4223 lock_acquire+0x169/0x480 kernel/locking/lockdep.c:4923 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x9e/0xc0 kernel/locking/spinlock.c:159 __wake_up_common_lock kernel/sched/wait.c:122 [inline] __wake_up+0xb8/0x150 kernel/sched/wait.c:142 io_cqring_ev_posted+0x9f/0x1c0 fs/io_uring.c:1150 io_poll_remove_all fs/io_uring.c:4343 [inline] io_ring_ctx_wait_and_kill+0x537/0xfd0 fs/io_uring.c:7223 io_uring_create fs/io_uring.c:7761 [inline] io_uring_setup fs/io_uring.c:7788 [inline] __do_sys_io_uring_setup fs/io_uring.c:7801 [inline] __se_sys_io_uring_setup+0x1e49/0x2650 fs/io_uring.c:7798 do_syscall_64+0xf3/0x1b0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4412a9 Code: e8 5c ae 02 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 bb 0a fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffe08a3a528 EFLAGS: 00000246 ORIG_RAX: 00000000000001a9 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004412a9 RDX: 0000000000000001 RSI: 0000000020000000 RDI: 0000000000000910 RBP: 000000000000acfd R08: 0000000000000001 R09: 00000000004002c8 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004021f0 R13: 0000000000402280 R14: 0000000000000000 R15: 0000000000000000 general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 PID: 7017 Comm: syz-executor095 Not tainted 5.6.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__wake_up_common+0x297/0x4d0 kernel/sched/wait.c:86 Code: fb 01 00 00 45 31 f6 eb 13 66 2e 0f 1f 84 00 00 00 00 00 4d 39 fc 0f 84 e3 01 00 00 4c 89 fb 49 8d 6f e8 4c 89 f8 48 c1 e8 03 <80> 3c 10 00 74 12 48 89 df e8 6b b5 59 00 48 ba 00 00 00 00 00 fc RSP: 0018:ffffc900043e7c00 EFLAGS: 00010046 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff8880a6860120 RBP: ffffffffffffffe8 R08: 0000000000000000 R09: ffffc900043e7c68 R10: fffff5200087cf80 R11: 0000000000000000 R12: ffff8880a6860160 R13: 1ffff9200087cf8d R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000afd880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000000 CR3: 00000000a6821000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __wake_up_common_lock kernel/sched/wait.c:123 [inline] __wake_up+0xd4/0x150 kernel/sched/wait.c:142 io_cqring_ev_posted+0x9f/0x1c0 fs/io_uring.c:1150 io_poll_remove_all fs/io_uring.c:4343 [inline] io_ring_ctx_wait_and_kill+0x537/0xfd0 fs/io_uring.c:7223 io_uring_create fs/io_uring.c:7761 [inline] io_uring_setup fs/io_uring.c:7788 [inline] __do_sys_io_uring_setup fs/io_uring.c:7801 [inline] __se_sys_io_uring_setup+0x1e49/0x2650 fs/io_uring.c:7798 do_syscall_64+0xf3/0x1b0 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4412a9 Code: e8 5c ae 02 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 bb 0a fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffe08a3a528 EFLAGS: 00000246 ORIG_RAX: 00000000000001a9 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00000000004412a9 RDX: 0000000000000001 RSI: 0000000020000000 RDI: 0000000000000910 RBP: 000000000000acfd R08: 0000000000000001 R09: 00000000004002c8 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004021f0 R13: 0000000000402280 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace c289123c7e157e7b ]--- RIP: 0010:__wake_up_common+0x297/0x4d0 kernel/sched/wait.c:86 Code: fb 01 00 00 45 31 f6 eb 13 66 2e 0f 1f 84 00 00 00 00 00 4d 39 fc 0f 84 e3 01 00 00 4c 89 fb 49 8d 6f e8 4c 89 f8 48 c1 e8 03 <80> 3c 10 00 74 12 48 89 df e8 6b b5 59 00 48 ba 00 00 00 00 00 fc RSP: 0018:ffffc900043e7c00 EFLAGS: 00010046 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff8880a6860120 RBP: ffffffffffffffe8 R08: 0000000000000000 R09: ffffc900043e7c68 R10: fffff5200087cf80 R11: 0000000000000000 R12: ffff8880a6860160 R13: 1ffff9200087cf8d R14: 0000000000000000 R15: 0000000000000000 FS: 0000000000afd880(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020000000 CR3: 00000000a6821000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 --- This bug 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 bug report. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this bug, for details see: https://goo.gl/tpsmEJ#testing-patches