Linux SCSI subsystem development
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: James Smart <james.smart@broadcom.com>, Hannes Reinecke <hare@suse.de>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>,
	Christoph Hellwig <hch@lst.de>,
	James Bottomley <james.bottomley@hansenpartnership.com>,
	Daniel Wagner <daniel.wagner@suse.com>,
	linux-scsi@vger.kernel.org
Subject: Re: [PATCH] lpfc: fixup out-of-bounds access during CPU hotplug
Date: Wed, 20 Nov 2019 14:46:58 +1100	[thread overview]
Message-ID: <e28308b25c4f2abc6e5ce862ecfc1e44323d9448.camel@kernel.crashing.org> (raw)
In-Reply-To: <bf84585e-76e6-1a87-8b72-090b5063b981@broadcom.com>

On Tue, 2019-11-19 at 09:34 -0800, James Smart wrote:
> Although... num_possible_cpus() shouldn't change, but I guess a cpu
> id 
> can be greater than the possible cpu count.
> 
> But there is this as well - also from include/linux/cpumask.h:
>   *  If HOTPLUG is enabled, then cpu_possible_mask is forced to have
>   *  all NR_CPUS bits set, otherwise it is just the set of CPUs that
>   *  ACPI reports present at boot.

That's probably an x86'ism... on powerpc the mask is set based on
what's really possible and it may not be all bits

Cheers,
Ben.



  reply	other threads:[~2019-11-20  3:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-18 12:30 [PATCH] lpfc: fixup out-of-bounds access during CPU hotplug Hannes Reinecke
2019-11-18 13:57 ` Daniel Wagner
2019-11-18 14:22 ` Daniel Wagner
2019-11-18 15:11   ` Hannes Reinecke
2019-11-18 15:36     ` Daniel Wagner
2019-11-18 19:28 ` James Smart
2019-11-18 20:21   ` Hannes Reinecke
2019-11-19 17:17     ` James Smart
2019-11-19 17:34       ` James Smart
2019-11-20  3:46         ` Benjamin Herrenschmidt [this message]
2019-11-20  3:45       ` Benjamin Herrenschmidt

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=e28308b25c4f2abc6e5ce862ecfc1e44323d9448.camel@kernel.crashing.org \
    --to=benh@kernel.crashing.org \
    --cc=daniel.wagner@suse.com \
    --cc=hare@suse.de \
    --cc=hch@lst.de \
    --cc=james.bottomley@hansenpartnership.com \
    --cc=james.smart@broadcom.com \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    /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