public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH linux-next 0/4] fix possile NULL pointer dereference in ndo_get_iflink callback functions
@ 2015-04-14 15:20 Honggang Li
  2015-04-14 15:20 ` [PATCH linux-next 1/4] infiniband/ipoib: fix possible NULL pointer dereference in ipoib_get_iflink Honggang Li
                   ` (4 more replies)
  0 siblings, 5 replies; 31+ messages in thread
From: Honggang Li @ 2015-04-14 15:20 UTC (permalink / raw)
  To: roland, sean.hefty, hal.rosenstock, kaber, davem, alex.estrin,
	dledford, edumazet, erezsh, nicolas.dichtel, maheshb, jbenc,
	ebiederm, elfring, f.fainelli, linux, andrew, sfeldma,
	alexander.h.duyck, linux-rdma, linux-kernel, netdev
  Cc: Honggang Li


The four callback functions deferference the pointers without test. 
As ipoib_get_iflink failed, it is a good reason to fix the other three
functions. Those functions will return zero on error, as valid ifindex
greater than zero.

I understand that those simple patches should be emerged into a single
patch. However, those files have be maintained by different maintainers.
So, I split it for review. It also will be convenient to remove one or
more patches with the rest not be affected.

Honggang Li (4):
  infiniband/ipoib: fix possible NULL pointer dereference in
 ipoib_get_iflink
  ipvlan: fix possible NULL pointer dereference in ipvlan_get_iflink
  macvlan: fix possible NULL pointer dereference in macvlan_dev_get_iflink
  net/dsa: fix possible NULL pointer dereference in dsa_slave_get_iflink

 drivers/infiniband/ulp/ipoib/ipoib_main.c | 5 ++++-
 drivers/net/ipvlan/ipvlan_main.c          | 5 ++++-
 drivers/net/macvlan.c                     | 4 +++-
 net/dsa/slave.c                           | 5 ++++-
 4 files changed, 15 insertions(+), 4 deletions(-)

-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2015-04-16 11:28 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-14 15:20 [PATCH linux-next 0/4] fix possile NULL pointer dereference in ndo_get_iflink callback functions Honggang Li
2015-04-14 15:20 ` [PATCH linux-next 1/4] infiniband/ipoib: fix possible NULL pointer dereference in ipoib_get_iflink Honggang Li
2015-04-14 15:34   ` Eric Dumazet
2015-04-14 15:44     ` Honggang LI
2015-04-14 15:49       ` Nicolas Dichtel
2015-04-14 15:53         ` Honggang LI
2015-04-14 16:14           ` Eric Dumazet
2015-04-14 16:01         ` Yann Droneaud
2015-04-14 16:44           ` Nicolas Dichtel
2015-04-14 16:30   ` Erez Shitrit
2015-04-14 16:46     ` Nicolas Dichtel
2015-04-14 20:41     ` Jason Gunthorpe
2015-04-15  5:24       ` Or Gerlitz
2015-04-15  6:17       ` Erez Shitrit
2015-04-15 16:06         ` Jason Gunthorpe
2015-04-16 11:27           ` Erez Shitrit
2015-04-15  5:16     ` Honggang LI
2015-04-15  6:57       ` Honggang LI
2015-04-14 15:20 ` [PATCH linux-next 2/4] ipvlan: fix possible NULL pointer dereference in ipvlan_get_iflink Honggang Li
2015-04-14 15:20 ` [PATCH linux-next 3/4] macvlan: fix possible NULL pointer dereference in macvlan_dev_get_iflink Honggang Li
2015-04-14 15:26   ` Patrick McHardy
2015-04-14 15:32     ` Honggang LI
2015-04-14 15:35       ` Patrick McHardy
2015-04-14 17:47       ` David Miller
2015-04-14 15:35     ` Nicolas Dichtel
2015-04-14 15:37       ` Andrew Lunn
2015-04-14 15:46         ` Honggang LI
2015-04-14 15:20 ` [PATCH linux-next 4/4] net/dsa: fix possible NULL pointer dereference in dsa_slave_get_iflink Honggang Li
2015-04-14 15:55   ` Guenter Roeck
2015-04-14 16:26 ` [PATCH linux-next v2] infiniband/ipoib: fix possible NULL pointer dereference in ipoib_get_iflink Honggang Li
2015-04-14 16:26   ` [PATCH] " Honggang Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox