linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Naresh Kamboju <naresh.kamboju@linaro.org>
To: open list <linux-kernel@vger.kernel.org>,
	linux-usb@vger.kernel.org, lkft-triage@lists.linaro.org,
	rcu@vger.kernel.org, kasan-dev <kasan-dev@googlegroups.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	"Paul E. McKenney" <paulmck@kernel.org>,
	Marco Elver <elver@google.com>,
	Peter Zijlstra <peterz@infradead.org>,
	Ingo Molnar <mingo@redhat.com>, Will Deacon <will@kernel.org>,
	Lee Jones <lee.jones@linaro.org>,
	Thierry Reding <treding@nvidia.com>,
	mathias.nyman@linux.intel.com, Qian Cai <cai@lca.pw>
Subject: BUG: KCSAN: data-race in mutex_spin_on_owner+0xef/0x1b0
Date: Fri, 4 Dec 2020 23:51:39 +0530	[thread overview]
Message-ID: <CA+G9fYuJF-L+qHJ3ufqD+M2w20LgeqMC0rhqv7oZagOA7iJMDg@mail.gmail.com> (raw)

LKFT started testing KCSAN enabled kernel from the linux next tree.
Here we have found BUG: KCSAN: data-race in mutex_spin_on_owner
and several more KCSAN BUGs.

This report is from an x86_64 machine clang-11 linux next 20201201.
Since we are running for the first time we do not call this regression.

[    4.745161] usbcore: registered new interface driver cdc_ether
[    4.751281] ==================================================================
[    4.756653] usbcore: registered new interface driver net1080
[    4.752139] BUG: KCSAN: data-race in mutex_spin_on_owner+0xef/0x1b0
[    4.752139]
[    4.752139] race at unknown origin, with read to 0xffff90a80098b034
of 4 bytes by task 252 on cpu 1:
[    4.769781] usbcore: registered new interface driver cdc_subset
[    4.752139]  mutex_spin_on_owner+0xef/0x1b0
[    4.752139]  __mutex_lock+0x69d/0x820
[    4.752139]  __mutex_lock_slowpath+0x13/0x20
[    4.781657] usbcore: registered new interface driver zaurus
[    4.752139]  mutex_lock+0x9d/0xb0
[    4.752139]  ata_eh_acquire+0x2e/0x80
[    4.752139]  ata_msleep+0x91/0xa0
[    4.792317] usbcore: registered new interface driver cdc_ncm
[    4.752139]  sata_link_debounce+0x1ad/0x2f0
[    4.752139]  sata_link_resume+0x32f/0x4a0
[    4.752139]  sata_link_hardreset+0x456/0x640
[    4.802369] usbcore: registered new interface driver r8153_ecm
[    4.752139]  ahci_do_hardreset+0x177/0x230
[    4.752139]  ahci_hardreset+0x23/0x40
[    4.752139]  ata_eh_reset+0x91e/0x1bb0
[    4.810641] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.810482]  ata_eh_recover+0x79b/0x2bd0
[    4.810482]  sata_pmp_error_handler+0x7d1/0x1340
[    4.810482]  ahci_error_handler+0x7c/0xc0
[    4.819247] ehci-pci: EHCI PCI platform driver
[    4.810482]  ata_scsi_port_error_handler+0x708/0xd30
[    4.810482]  ata_scsi_error+0x128/0x160
[    4.826321] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.810482]  scsi_error_handler+0x26d/0x700
[    4.810482]  kthread+0x20b/0x220
[    4.836069] ohci-pci: OHCI PCI platform driver
[    4.810482]  ret_from_fork+0x22/0x30
[    4.810482]
[    4.844397] uhci_hcd: USB Universal Host Controller Interface driver
[    4.810482] Reported by Kernel Concurrency Sanitizer on:
[    4.810482] CPU: 1 PID: 252 Comm: scsi_eh_1 Not tainted
5.10.0-rc6-next-20201201 #2
[    4.810482] Hardware name: Supermicro SYS-5019S-ML/X11SSH-F, BIOS
2.2 05/23/2018
[    4.855343] xhci_hcd 0000:00:14.0: xHCI Host Controller
[    4.810482] ==================================================================

metadata:
    git_repo: https://gitlab.com/aroxell/lkft-linux-next
    target_arch: x86
    toolchain: clang-11
    git_describe: next-20201201
    kernel_version: 5.10.0-rc6
    download_url: https://builds.tuxbuild.com/1l8eiWgGMi6W4aDobjAAlOleFVl/

full test log link,
https://lkft.validation.linaro.org/scheduler/job/2002643#L831

-- 
Linaro LKFT
https://lkft.linaro.org

             reply	other threads:[~2020-12-04 18:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-04 18:21 Naresh Kamboju [this message]
2020-12-07 11:51 ` BUG: KCSAN: data-race in mutex_spin_on_owner+0xef/0x1b0 Peter Zijlstra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CA+G9fYuJF-L+qHJ3ufqD+M2w20LgeqMC0rhqv7oZagOA7iJMDg@mail.gmail.com \
    --to=naresh.kamboju@linaro.org \
    --cc=cai@lca.pw \
    --cc=elver@google.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kasan-dev@googlegroups.com \
    --cc=lee.jones@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=lkft-triage@lists.linaro.org \
    --cc=mathias.nyman@linux.intel.com \
    --cc=mingo@redhat.com \
    --cc=paulmck@kernel.org \
    --cc=peterz@infradead.org \
    --cc=rcu@vger.kernel.org \
    --cc=treding@nvidia.com \
    --cc=will@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).