LKML Archive on
help / color / mirror / Atom feed
From: "Pali Rohár" <>
To: Kunihiko Hayashi <>
Cc: Marc Zyngier <>,,
Subject: pcie-uniphier: race condition in masking/unmasking interrupts
Date: Wed, 18 Aug 2021 13:38:20 +0200	[thread overview]
Message-ID: <20210818113820.fzjeouy6tohbzuad@pali> (raw)


Marc pointed during review of pci-aardvark patches one issue which I see
that is available also in the current pcie-uniphier.c driver.

When masking or unmasking interrupts there is read-modify-write sequence
for PCL_RCV_INTX_MASK_SHIFT register without any locking:

So when trying to mask/unmask two interrupts at the same time there is
race condition as updating that PCL_RCV_INTX_MASK_SHIFT register is not

Could you look at it?

             reply	other threads:[~2021-08-18 11:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-18 11:38 Pali Rohár [this message]
2021-08-19 10:01 ` Kunihiko Hayashi

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:

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

  git send-email \
    --in-reply-to=20210818113820.fzjeouy6tohbzuad@pali \ \ \ \ \ \
    --subject='Re: pcie-uniphier: race condition in masking/unmasking interrupts' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).