All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Sriranjani P <sriranjani.p@samsung.com>
Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, peppe.cavallaro@st.com,
	alexandre.torgue@foss.st.com, joabreu@synopsys.com,
	davem@davemloft.net, mcoquelin.stm32@gmail.com,
	linux@armlinux.org.uk, boon.leong.ong@intel.com,
	Pankaj Dubey <pankaj.dubey@samsung.com>
Subject: Re: [PATCH] net: stmmac: fix kernel panic due to NULL pointer dereference of mdio_bus_data
Date: Sun, 30 May 2021 14:16:23 -0700	[thread overview]
Message-ID: <20210530141623.33d2d00d@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> (raw)
In-Reply-To: <20210528071056.35252-1-sriranjani.p@samsung.com>

On Fri, 28 May 2021 12:40:56 +0530 Sriranjani P wrote:
> Fixed link does not need mdio bus and in that case mdio_bus_data will
> not be allocated. Before using mdio_bus_data we should check for NULL.
> 
> This patch fix the kernel panic due to NULL pointer dereference of
> mdio_bus_data when it is not allocated.
> 
> Without this patch we do see following kernel crash caused due to kernel
> NULL pointer dereference.

Applied, thanks.

WARNING: multiple messages have this Message-ID (diff)
From: Jakub Kicinski <kuba@kernel.org>
To: Sriranjani P <sriranjani.p@samsung.com>
Cc: netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, peppe.cavallaro@st.com,
	alexandre.torgue@foss.st.com, joabreu@synopsys.com,
	davem@davemloft.net, mcoquelin.stm32@gmail.com,
	linux@armlinux.org.uk, boon.leong.ong@intel.com,
	Pankaj Dubey <pankaj.dubey@samsung.com>
Subject: Re: [PATCH] net: stmmac: fix kernel panic due to NULL pointer dereference of mdio_bus_data
Date: Sun, 30 May 2021 14:16:23 -0700	[thread overview]
Message-ID: <20210530141623.33d2d00d@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> (raw)
In-Reply-To: <20210528071056.35252-1-sriranjani.p@samsung.com>

On Fri, 28 May 2021 12:40:56 +0530 Sriranjani P wrote:
> Fixed link does not need mdio bus and in that case mdio_bus_data will
> not be allocated. Before using mdio_bus_data we should check for NULL.
> 
> This patch fix the kernel panic due to NULL pointer dereference of
> mdio_bus_data when it is not allocated.
> 
> Without this patch we do see following kernel crash caused due to kernel
> NULL pointer dereference.

Applied, thanks.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2021-05-30 21:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20210528070406epcas5p3807d9c8f8a68c0c4a75af9951476c1b7@epcas5p3.samsung.com>
2021-05-28  7:10 ` [PATCH] net: stmmac: fix kernel panic due to NULL pointer dereference of mdio_bus_data Sriranjani P
2021-05-28  7:10   ` Sriranjani P
2021-05-30 21:16   ` Jakub Kicinski [this message]
2021-05-30 21:16     ` Jakub Kicinski

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=20210530141623.33d2d00d@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net \
    --to=kuba@kernel.org \
    --cc=alexandre.torgue@foss.st.com \
    --cc=boon.leong.ong@intel.com \
    --cc=davem@davemloft.net \
    --cc=joabreu@synopsys.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=pankaj.dubey@samsung.com \
    --cc=peppe.cavallaro@st.com \
    --cc=sriranjani.p@samsung.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.