Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp44380ybi; Tue, 16 Jul 2019 15:55:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQfIQlgBdNEcmq3BU1H4O/8AiKuwL5OLHk1UySxTRs5IuZwj6xXIHJQZKTJlZDw7b3Vowa X-Received: by 2002:a63:dd17:: with SMTP id t23mr10169657pgg.295.1563317758462; Tue, 16 Jul 2019 15:55:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563317758; cv=none; d=google.com; s=arc-20160816; b=XgIMH0349nLYRFefLmhyhJmyDzm/jdzkOl7GtirwloTZUBswJ+DI1a6Kdrrj32aSGY nW6um3pJEajpw1KzuQxdhVgrtE6xbzM2Fe/BBkDU729UWLK6gQYofyXj7MP862Oc2fJP 3st05VBfCCHW86Q6ezQiiy0YlDZPli0AX4O9o4rWi69ybOPdq6KW3qZHrEKyuWYFaKWn qwuzhGQq5TCsqUVT1pmrUlINjU0FUocZWitwJdzvyUInsrnRIxQZNvoB8WWpy1ImW+LL MbXMRf7kKUsdMnGubF7rVssXRAsArMmRyIfZcLx9Y25SSpQiz8vRBTKHmAuhg8gqLsjw 3WjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:message-id:subject:cc:to:from:date; bh=2Ul+CEaP4BGgb417cCw8hjhriWkaKBuvBzjrEI9mMk8=; b=lKn08tfnk505cr0y88MELGrSvaqI8NeGhcNOpD4rBG19hw9moHMCSyPZyTCy/xvSMz 7cr0R246kUgOI5ha607WQlHtBFpRd+qGAQhIzl3QUxz1qonkwuQP+VH3zMFvC2+BY5JA NHBdrq3lk0sQFk3WmSCFTQzrdw42wnnfLZL8VV6tqfmBv5+v6U3BOpkhKnFFSRtisrSQ UqiXlDgW3rnlkdx3RL7Jd+MPKubEgYNFCrh9JKZl/rP5oqX8ftkrz/s0cg9Th2Gr5XfQ QB5cegIac4+LPYEVVEnYb/7JzEr9jF1kFh9xVkRJUWJA2je/5OEar7KeSF6SW/PJmwl4 P5Fg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 72si19729102plc.415.2019.07.16.15.55.34; Tue, 16 Jul 2019 15:55:58 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387781AbfGPWzN (ORCPT + 99 others); Tue, 16 Jul 2019 18:55:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37280 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728414AbfGPWzN (ORCPT ); Tue, 16 Jul 2019 18:55:13 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 508DB81F0E; Tue, 16 Jul 2019 22:55:12 +0000 (UTC) Received: from torg (ovpn-122-28.rdu2.redhat.com [10.10.122.28]) by smtp.corp.redhat.com (Postfix) with ESMTP id 75942611DB; Tue, 16 Jul 2019 22:55:11 +0000 (UTC) Date: Tue, 16 Jul 2019 17:55:09 -0500 From: Clark Williams To: Thomas Gleixner , Sebastian Andrzej Siewior Cc: LKML , RT Subject: [PREEMPT_RT] splat in v5.2-rt1: r t_mutex_owner(lock) != current Message-ID: <20190716175509.17b03f1e@torg> Organization: Red Hat, Inc MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 16 Jul 2019 22:55:12 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Saw this after applying my thermal lock to raw patch and the change in i915 for lockdep. The splat occurred on boot when creating the kdump initramfs. System is an Intel NUC i7 with 32GB ram and 256GB SSD for rootfs. The booting kernel has rt_mutex debugging turned on as well as lockdep and lockup configs. Jul 16 14:41:48 theseus dracut[3082]: *** Creating initramfs image file '/boot/initramfs-5.2.0-rt1.fixes+kdump.img' done *** Jul 16 14:41:48 theseus kernel: ------------[ cut here ]------------ Jul 16 14:41:48 theseus kernel: DEBUG_LOCKS_WARN_ON(rt_mutex_owner(lock) != current) Jul 16 14:41:48 theseus kernel: WARNING: CPU: 1 PID: 8349 at kernel/locking/rtmutex-debug.c:145 debug_rt_mutex_unlock+0x47/0x50 Jul 16 14:41:48 theseus kernel: Modules linked in: rfcomm xt_CHECKSUM xt_MASQUERADE tun bridge stp llc fuse nf_conntrack_netbios_ns nf_conntrack_broadcast xt_CT ip6t_rpfilter ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 xt_conntrack ebtable_nat ip6table_nat ip6table_mangle ip6table_raw> Jul 16 14:41:48 theseus kernel: snd_rawmidi snd_hda_core media snd_hwdep snd_seq btusb wmi_bmof snd_seq_device iwlwifi btrtl intel_wmi_thunderbolt btbcm snd_pcm iTCO_wdt btintel iTCO_vendor_support pcspkr bluetooth snd_timer rtsx_pci_ms cfg80211 snd memstick ecdh_generic i2c_i801 soundcore ec> Jul 16 14:41:48 theseus kernel: CPU: 1 PID: 8349 Comm: fsfreeze Not tainted 5.2.0-rt1.fixes+ #16 Jul 16 14:41:48 theseus kernel: Hardware name: Intel Corporation NUC7i7BNH/NUC7i7BNB, BIOS BNKBL357.86A.0054.2017.1025.1822 10/25/2017 Jul 16 14:41:48 theseus kernel: RIP: 0010:debug_rt_mutex_unlock+0x47/0x50 Jul 16 14:41:48 theseus kernel: Code: c2 75 01 c3 e8 6a c1 3e 00 85 c0 74 f6 8b 05 30 3c 66 01 85 c0 75 ec 48 c7 c6 a0 b3 2e b1 48 c7 c7 48 bf 2c b1 e8 42 7d f8 ff <0f> 0b c3 66 0f 1f 44 00 00 c3 66 66 2e 0f 1f 84 00 00 00 00 00 0f Jul 16 14:41:48 theseus kernel: RSP: 0018:ffffc03c5b607dd0 EFLAGS: 00010086 Jul 16 14:41:48 theseus kernel: RAX: 0000000000000000 RBX: ffff9a7d6deb0d98 RCX: 0000000000000000 Jul 16 14:41:48 theseus kernel: RDX: ffffffffb167ce50 RSI: 00000000ffffffff RDI: 00000000ffffffff Jul 16 14:41:48 theseus kernel: RBP: ffff9a7d6deb0ab0 R08: 0000000000000000 R09: ffffffffb167cd20 Jul 16 14:41:48 theseus kernel: R10: ffffc03c5b607d10 R11: ffffffffb2aa38eb R12: 0000000000000246 Jul 16 14:41:48 theseus kernel: R13: ffffc03c5b607e00 R14: ffffc03c5b607e10 R15: ffffffffb034c53f Jul 16 14:41:48 theseus kernel: FS: 00007fd6e2f0e540(0000) GS:ffff9a7d9e600000(0000) knlGS:0000000000000000 Jul 16 14:41:48 theseus kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 Jul 16 14:41:48 theseus kernel: CR2: 0000563557bc0178 CR3: 0000000792188006 CR4: 00000000003606e0 Jul 16 14:41:48 theseus kernel: Call Trace: Jul 16 14:41:48 theseus kernel: rt_mutex_slowunlock+0x25/0x80 Jul 16 14:41:48 theseus kernel: __rt_mutex_unlock+0x45/0x80 Jul 16 14:41:48 theseus kernel: percpu_up_write+0x1f/0x30 Jul 16 14:41:48 theseus kernel: thaw_super_locked+0xde/0x110 Jul 16 14:41:48 theseus kernel: do_vfs_ioctl+0x5de/0x720 Jul 16 14:41:48 theseus kernel: ksys_ioctl+0x5e/0x90 Jul 16 14:41:48 theseus kernel: __x64_sys_ioctl+0x16/0x20 Jul 16 14:41:48 theseus kernel: do_syscall_64+0x66/0xb0 Jul 16 14:41:48 theseus kernel: entry_SYSCALL_64_after_hwframe+0x49/0xbe Jul 16 14:41:48 theseus kernel: RIP: 0033:0x7fd6e2e391fb Jul 16 14:41:48 theseus kernel: Code: 0f 1e fa 48 8b 05 8d dc 0c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 0f 1f 44 00 00 f3 0f 1e fa b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 5d dc 0c 00 f7 d8 64 89 01 48 Jul 16 14:41:48 theseus kernel: RSP: 002b:00007ffe61e2f498 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 Jul 16 14:41:48 theseus kernel: RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fd6e2e391fb Jul 16 14:41:48 theseus kernel: RDX: 0000000000000000 RSI: 00000000c0045878 RDI: 0000000000000003 Jul 16 14:41:48 theseus kernel: RBP: 0000000000000003 R08: 0000000000000001 R09: 0000000000000000 Jul 16 14:41:48 theseus kernel: R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 Jul 16 14:41:48 theseus kernel: R13: 00007ffe61e309fa R14: 0000000000000000 R15: 0000000000000000 Jul 16 14:41:48 theseus kernel: irq event stamp: 6254 Jul 16 14:41:48 theseus kernel: hardirqs last enabled at (6253): [] _raw_spin_unlock_irqrestore+0x60/0x90 Jul 16 14:41:48 theseus kernel: hardirqs last disabled at (6254): [] _raw_spin_lock_irqsave+0x23/0x90 Jul 16 14:41:48 theseus kernel: softirqs last enabled at (3330): [] fpu__clear+0x88/0x200 Jul 16 14:41:48 theseus kernel: softirqs last disabled at (3327): [] fpu__clear+0x4b/0x200 Jul 16 14:41:48 theseus kernel: ---[ end trace 0000000000000002 ]--- Jul 16 14:41:49 theseus kdumpctl[1500]: kexec: loaded kdump kernel Jul 16 14:41:49 theseus kdumpctl[1500]: Starting kdump: [OK] -- The United States Coast Guard Ruining Natural Selection since 1790