linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Kalle Valo <kvalo@kernel.org>
Cc: Zhou Qingyang <zhou1615@umn.edu>,
	kjlu@umn.edu, Arend van Spriel <aspriel@gmail.com>,
	Franky Lin <franky.lin@broadcom.com>,
	Hante Meuleman <hante.meuleman@broadcom.com>,
	Chi-hsien Lin <chi-hsien.lin@infineon.com>,
	Wright Feng <wright.feng@infineon.com>,
	Chung-hsien Hsu <chung-hsien.hsu@infineon.com>,
	"David S. Miller" <davem@davemloft.net>,
	Jakub Kicinski <kuba@kernel.org>,
	Pieter-Paul Giesberts <pieter-paul.giesberts@broadcom.com>,
	Angus Ainslie <angus@akkea.ca>,
	"Daniel (Deognyoun) Kim" <dekim@broadcom.com>,
	"John W. Linville" <linville@tuxdriver.com>,
	linux-wireless@vger.kernel.org,
	brcm80211-dev-list.pdl@broadcom.com,
	SHA-cyfmac-dev-list@infineon.com, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] brcmfmac: Fix a wild pointer dereference bug in brcmf_chip_recognition()
Date: Fri, 28 Jan 2022 11:54:15 +0100	[thread overview]
Message-ID: <YfPLVyo+4qvHASZm@kroah.com> (raw)
In-Reply-To: <875yq4gnhr.fsf@kernel.org>

On Fri, Jan 28, 2022 at 12:31:44PM +0200, Kalle Valo wrote:
> Greg KH <greg@kroah.com> writes:
> 
> > On Tue, Jan 25, 2022 at 12:48:45AM +0800, Zhou Qingyang wrote:
> >> In brcmf_chip_recognition(), the return value of brcmf_chip_add_core()
> >> is assigned to core and is passed to brcmf_chip_sb_corerev(). In
> >> brcmf_chip_sb_corerev(), there exists dereference of core without check.
> >> the return value of brcmf_chip_add_core() could be ERR_PTR on failure of
> >> allocation, which could lead to a NULL pointer dereference bug.
> >> 
> >> Fix this bug by adding IS_ERR check for every variable core.
> >> 
> >> This bug was found by a static analyzer.
> >> 
> >> Builds with 'make allyesconfig' show no new warnings,
> >> and our static analyzer no longer warns about this code
> >> 
> >> Fixes: cb7cf7be9eba ("brcmfmac: make chip related functions host
> >> interface independent")
> >> Signed-off-by: Zhou Qingyang <zhou1615@umn.edu>
> >> ---
> >> The analysis employs differential checking to identify inconsistent 
> >> security operations (e.g., checks or kfrees) between two code paths 
> >> and confirms that the inconsistent operations are not recovered in the
> >> current function or the callers, so they constitute bugs. 
> >> 
> >> Note that, as a bug found by static analysis, it can be a false
> >> positive or hard to trigger. Multiple researchers have cross-reviewed
> >> the bug.
> >
> > As stated before, umn.edu is still not allowed to contribute to the
> > Linux kernel.  Please work with your administration to resolve this
> > issue.
> 
> Thanks Greg, I didn't notice that this is from umn.edu. After seeing
> what kind of "research" umn.edu does I will not even look at umn.edu
> patches, they all will be automatically rejected without comments.

Thank you.  We could just block their emails from the mailing lists, but
then that would not let us see when they send a patch and cc: the
relevant maintainers, so we have to live with this way for now.

I'll be contacting the umn.edu administration again and ask them what
went wrong here.

greg k-h

      reply	other threads:[~2022-01-28 10:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-24 16:48 [PATCH] brcmfmac: Fix a wild pointer dereference bug in brcmf_chip_recognition() Zhou Qingyang
2022-01-28 10:16 ` Greg KH
2022-01-28 10:31   ` Kalle Valo
2022-01-28 10:54     ` Greg KH [this message]

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=YfPLVyo+4qvHASZm@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=SHA-cyfmac-dev-list@infineon.com \
    --cc=angus@akkea.ca \
    --cc=aspriel@gmail.com \
    --cc=brcm80211-dev-list.pdl@broadcom.com \
    --cc=chi-hsien.lin@infineon.com \
    --cc=chung-hsien.hsu@infineon.com \
    --cc=davem@davemloft.net \
    --cc=dekim@broadcom.com \
    --cc=franky.lin@broadcom.com \
    --cc=hante.meuleman@broadcom.com \
    --cc=kjlu@umn.edu \
    --cc=kuba@kernel.org \
    --cc=kvalo@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=netdev@vger.kernel.org \
    --cc=pieter-paul.giesberts@broadcom.com \
    --cc=wright.feng@infineon.com \
    --cc=zhou1615@umn.edu \
    /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).