Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp3770134imc; Sun, 24 Feb 2019 12:41:13 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia4hVAc+1b71fggpunY9WEeMDggKBBTrwX1n9DVWOW7/WVSARD72Eo9m7gM2J5pdDO/Q9p0 X-Received: by 2002:a62:f5c8:: with SMTP id b69mr16006617pfm.128.1551040872941; Sun, 24 Feb 2019 12:41:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551040872; cv=none; d=google.com; s=arc-20160816; b=H2E0SqYimGtQIBqsBk2RSyA4MW4zTfVlXEsWnyAbZbyIsO9pGG20nSlgndA+2K1+ht ARfrTnR8zPng6VmHWv9Z4rABbFJ+x4ZF3ElGpUT6GOEjTE06ig6AwLoXHVBwmOuk9tW+ Ed0OeI4u5uJG5DynYclkStiLkbMg20Cl2dI9qa+6Wa2lAaUm+/U8F1+d+BmMRjr1MsRy 1hxCAmgDDIUFzAdirOFa7JARr5Y3lvaq0lQbGkoMGY3ee7ORQ5loNPqLCHISrJoU/a3i VhjZwZxFyjP/BRMPLEkqp2xtxgdA80nsN/grrA/tH2lYX0QbhgjX9K7rxuJPENZIaQeg EgQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=5PTWcjW/fg8l6LpSnx5M+b8BKI7drP9Kcq707eCxORA=; b=h+k9WvUnbXz1nnRHIq6KAgFm3Q1LOzg2pDy/MrlAPNqhLuhcggs1ZdKvE7EfkZ1tQ6 AubGlkQyBIjRxCJ5ovzX3GK1VMfSIaiyLjUtcAi1KkFVpyfGvQSty+qgX2aqqBRVJM3R gPHntmgHT4X19azoBuTugFCJsZEp5jrGrWl9hiUK0oS9QX7u1URHN9csEsYej3AjCrKO wL5XvvbZkK0W3NI9FkyAFfmlZRUTOvgVfLKTAatyOz0ORu4LSrgI9CcVuH5gsIglqQHV 8p0awfFryQaDBNtYqBbAQDx6zjCyr8O7HKRrCyfJ/tuWGFEw+1PqTeQIJdrUbyQFeEUx MUSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=RZBLXh9B; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w23si3687793pll.151.2019.02.24.12.40.57; Sun, 24 Feb 2019 12:41:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=RZBLXh9B; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728337AbfBXUkW (ORCPT + 99 others); Sun, 24 Feb 2019 15:40:22 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:46047 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbfBXUkV (ORCPT ); Sun, 24 Feb 2019 15:40:21 -0500 Received: by mail-pg1-f195.google.com with SMTP id y4so3449805pgc.12 for ; Sun, 24 Feb 2019 12:40:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=5PTWcjW/fg8l6LpSnx5M+b8BKI7drP9Kcq707eCxORA=; b=RZBLXh9BamNSPcmxphPCXsaH79xN3POXPTwVZ30j+cVCmFVH2LlJvKnNx3b7hrzexk +fUMtUNy1smn+u4SK0tqyBn47fzpjUROATRIWX/AfC51pAXdZim6QcGNEoeLiqx5Lqj5 tWayeUKKDG4FJSjzIlmM05y60YS51XZy5ehxF+Zb6ea7A9DDN+sx7PT5QXDzLrWfxHSb O6CxNGEB3loMNrSJ7dD720LGbB969Nxq2oc4mqPg9uqFxmo0MkvwYIxUwhW7YxdU0mnN kKBVL0a6NZ1K8KVzkVwznrk4+8JW4RBjUZhV6cCkGXahq7Uhx4s8UjHKV3SRZb6d7n69 SuHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=5PTWcjW/fg8l6LpSnx5M+b8BKI7drP9Kcq707eCxORA=; b=ZFwp+aI6LLKyPdTFGODcHzfVYNbaO55cVL4bMSDyxNIqJ1zT+eA/SMuqTEtar0aRiC jNe+VwZcCHLhMk7kfH94kTQPhaAFmQnNRBLK9vOp8bFfZni4KcIoPF2Fwi5HOM8fvvWS oJWowmHxPTkhBckzA9LWcyHuhx7RpkPjrS1KEfPv8w/gAxOGbcoRNtcgR1i/hEdhEFP6 ITnajrz3KAdof5uw3KDCUb6hbX+qXNfqwAxf2r3K0Scb1r5C5yja0FXa8FNGAc+fzR4b PhnRob8kVA/+cZHTTLhKPgjQ7tNVYg45fibtX7HUwVQoU63iuXoiRdAzC4LYNOy16Amj RLow== X-Gm-Message-State: AHQUAuZroEc7vHGKv/E7/8J/eP4DmaAO0N4yoXfWbpxewVhCTGfmTSXY 9E1P+8JSz8xh6Rx2qqw/Sdoezw== X-Received: by 2002:a63:8b43:: with SMTP id j64mr15001940pge.332.1551040820482; Sun, 24 Feb 2019 12:40:20 -0800 (PST) Received: from [2620:15c:17:3:3a5:23a7:5e32:4598] ([2620:15c:17:3:3a5:23a7:5e32:4598]) by smtp.gmail.com with ESMTPSA id o2sm17462629pgq.29.2019.02.24.12.40.19 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 24 Feb 2019 12:40:19 -0800 (PST) Date: Sun, 24 Feb 2019 12:40:19 -0800 (PST) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: syzbot cc: airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, hamohammed.sa@gmail.com, linux-kernel@vger.kernel.org, mahesh1.kumar@intel.com, rodrigo.vivi@intel.com, rodrigosiqueiramelo@gmail.com, seanpaul@chromium.org, syzkaller-bugs@googlegroups.com Subject: Re: INFO: trying to register non-static key in __flush_work In-Reply-To: <000000000000f4fe3e057e25b276@google.com> Message-ID: References: <000000000000f4fe3e057e25b276@google.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 29 Dec 2018, syzbot wrote: > Hello, > > syzbot found the following crash on: > > HEAD commit: 5694cecdb092 Merge tag 'arm64-upstream' of git://git.kerne.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=124eebc7400000 > kernel config: https://syzkaller.appspot.com/x/.config?x=91a256823ef17263 > dashboard link: https://syzkaller.appspot.com/bug?extid=12f1b031b6da017e34f8 > compiler: gcc (GCC) 8.0.1 20180413 (experimental) > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1174a1dd400000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1336e38b400000 > > IMPORTANT: if you fix the bug, please add the following tag to the commit: > Reported-by: syzbot+12f1b031b6da017e34f8@syzkaller.appspotmail.com > > INFO: trying to register non-static key. > the code is fine but needs lockdep annotation. > turning off the locking correctness validator. > CPU: 0 PID: 8039 Comm: syz-executor964 Not tainted 4.20.0+ #389 > 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+0x1d3/0x2c6 lib/dump_stack.c:113 > assign_lock_key kernel/locking/lockdep.c:727 [inline] > register_lock_class+0x21c5/0x29d0 kernel/locking/lockdep.c:753 > __lock_acquire+0x184/0x4c20 kernel/locking/lockdep.c:3227 > lock_acquire+0x1ed/0x520 kernel/locking/lockdep.c:3844 > __flush_work+0x752/0x9b0 kernel/workqueue.c:2912 > flush_work+0x17/0x20 kernel/workqueue.c:2938 > vkms_atomic_crtc_destroy_state+0x2b/0x40 drivers/gpu/drm/vkms/vkms_crtc.c:139 > drm_atomic_state_default_clear+0x37c/0xda0 drivers/gpu/drm/drm_atomic.c:171 > drm_atomic_state_clear+0x9f/0xd0 drivers/gpu/drm/drm_atomic.c:240 > __drm_atomic_state_free+0x3a/0xf0 drivers/gpu/drm/drm_atomic.c:256 > kref_put include/linux/kref.h:70 [inline] > drm_atomic_state_put include/drm/drm_atomic.h:385 [inline] > drm_atomic_helper_set_config+0xe6/0x160 > drivers/gpu/drm/drm_atomic_helper.c:2947 > drm_mode_setcrtc+0x767/0x1890 drivers/gpu/drm/drm_crtc.c:748 > drm_ioctl_kernel+0x278/0x330 drivers/gpu/drm/drm_ioctl.c:758 > drm_ioctl+0x58f/0xb90 drivers/gpu/drm/drm_ioctl.c:858 > vfs_ioctl fs/ioctl.c:46 [inline] > file_ioctl fs/ioctl.c:509 [inline] > do_vfs_ioctl+0x1de/0x1790 fs/ioctl.c:696 > ksys_ioctl+0xa9/0xd0 fs/ioctl.c:713 > __do_sys_ioctl fs/ioctl.c:720 [inline] > __se_sys_ioctl fs/ioctl.c:718 [inline] > __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:718 > do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 > entry_SYSCALL_64_after_hwframe+0x49/0xbe > RIP: 0033:0x443e59 > 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 d8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 > RSP: 002b:00007fff2bc037c8 EFLAGS: 00000213 ORIG_RAX: 0000000000000010 > RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000443e59 > RDX: 0000000020000100 RSI: 00000000c06864a2 RDI: 0000000000000003 > RBP: 00000000006ce018 R08: 0000000000000000 R09: 00000000004002e0 > R10: 000000000000000f R11: 0000000000000213 R12: 0000000000401b60 > R13: 0000000000401bf0 R14: 0000000000000000 R15: 000000000 > This is reproducible up to at least commit e60b5f79bd7529e76b13cf1e85823abbd0e33634 Merge: 6089a91fc02e 8f5b27347e88 Author: Linus Torvalds Date: Sat Feb 23 11:13:50 2019 -0800 Merge tag 'powerpc-5.0-6' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux and my theory is that it's due to this: commit dfb9f5cabfe31b8e936b725b5de8f787f7c18b0f Author: Haneen Mohammed Date: Tue Jul 24 19:31:05 2018 +0300 drm/vkms: subclass CRTC state in 4.20-rc1. We aren't doing INIT_WORK() for the workqueue that is being flushed. Don't we need to do INIT_WORK() in vkms_atomic_crtc_reset() too?