All of lore.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
  0 siblings, 0 replies; 53+ messages in thread
From: Honggang Li @ 2015-04-14 15:20 UTC (permalink / raw)
  To: roland-DgEjT+Ai2ygdnm+yROfE0A, sean.hefty-ral2JQCrhuEAvxtiuMwx3w,
	hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w,
	kaber-dcUjhNyLwpNeoWH0uzbU5w, davem-fT/PcQaiUtIeIZ0/mPfg9Q,
	alex.estrin-ral2JQCrhuEAvxtiuMwx3w,
	dledford-H+wXaHxf7aLQT0dZR+AlfA, edumazet-hpIqsD4AKlfQT0dZR+AlfA,
	erezsh-VPRAkNaXOzVWk0Htik3J/w,
	nicolas.dichtel-pdR9zngts4EAvxtiuMwx3w,
	maheshb-hpIqsD4AKlfQT0dZR+AlfA, jbenc-H+wXaHxf7aLQT0dZR+AlfA,
	ebiederm-aS9lmoZGLiVWk0Htik3J/w,
	elfring-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f,
	f.fainelli-Re5JQEeQqe8AvxtiuMwx3w, linux-0h96xk9xTtrk1uMJSBkQmQ,
	andrew-g2DYL2Zd6BY, sfeldma-Re5JQEeQqe8AvxtiuMwx3w,
	alexander.h.duyck-ral2JQCrhuEAvxtiuMwx3w,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	netdev-u79uwXL29TY76Z2rM5mHXA
  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

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

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

Thread overview: 53+ 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 ` 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
     [not found]   ` <1429024817-21561-2-git-send-email-honli-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-04-14 15:34     ` Eric Dumazet
2015-04-14 15:34       ` Eric Dumazet
     [not found]       ` <1429025673.7346.37.camel-XN9IlZ5yJG9HTL0Zs8A6p/gx64E7kk8eUsxypvmhUTTZJqsBc5GL+g@public.gmane.org>
2015-04-14 15:44         ` Honggang LI
2015-04-14 15:44           ` Honggang LI
     [not found]           ` <20150414154422.GB21856-9l7K0WC0B0wP68cbUhXDDlaTQe2KTcn/@public.gmane.org>
2015-04-14 15:49             ` Nicolas Dichtel
2015-04-14 15:49               ` Nicolas Dichtel
     [not found]               ` <552D3723.9050706-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2015-04-14 15:53                 ` Honggang LI
2015-04-14 15:53                   ` Honggang LI
     [not found]                   ` <20150414155307.GD21856-9l7K0WC0B0wP68cbUhXDDlaTQe2KTcn/@public.gmane.org>
2015-04-14 16:14                     ` Eric Dumazet
2015-04-14 16:14                       ` Eric Dumazet
2015-04-14 16:01                 ` Yann Droneaud
2015-04-14 16:01                   ` Yann Droneaud
     [not found]                   ` <1429027293.4333.5.camel-RlY5vtjFyJ3QT0dZR+AlfA@public.gmane.org>
2015-04-14 16:44                     ` Nicolas Dichtel
2015-04-14 16:44                       ` Nicolas Dichtel
2015-04-14 16:30   ` Erez Shitrit
     [not found]     ` <CAAk-MO-O9sjHQvDfCEuzJJPvUMXJTuRaCzrCkB0xc1DUfK8Aew-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-04-14 16:46       ` Nicolas Dichtel
2015-04-14 16:46         ` Nicolas Dichtel
2015-04-14 20:41       ` Jason Gunthorpe
2015-04-14 20:41         ` Jason Gunthorpe
     [not found]         ` <20150414204133.GJ7682-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2015-04-15  5:24           ` Or Gerlitz
2015-04-15  5:24             ` Or Gerlitz
2015-04-15  5:24             ` Or Gerlitz
2015-04-15  6:17           ` Erez Shitrit
2015-04-15  6:17             ` Erez Shitrit
     [not found]             ` <552E026A.4020200-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2015-04-15 16:06               ` Jason Gunthorpe
2015-04-15 16:06                 ` Jason Gunthorpe
     [not found]                 ` <20150415160623.GA4653-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2015-04-16 11:27                   ` Erez Shitrit
2015-04-16 11:27                     ` Erez Shitrit
2015-04-15  5:16       ` Honggang LI
2015-04-15  5:16         ` Honggang LI
     [not found]         ` <20150415051640.GB4881-9l7K0WC0B0wP68cbUhXDDlaTQe2KTcn/@public.gmane.org>
2015-04-15  6:57           ` 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
     [not found] ` <1429024817-21561-1-git-send-email-honli-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
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:20     ` 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
     [not found]         ` <552D33B0.6040808-pdR9zngts4EAvxtiuMwx3w@public.gmane.org>
2015-04-14 15:37           ` Andrew Lunn
2015-04-14 15:37             ` Andrew Lunn
2015-04-14 15:46             ` Honggang LI
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     ` Honggang Li
     [not found]     ` <1429028811-29888-1-git-send-email-honli-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-04-14 16:26       ` [PATCH] " Honggang Li
2015-04-14 16:26         ` 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
     [not found]   ` <1429024817-21561-5-git-send-email-honli-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-04-14 15:55     ` Guenter Roeck
2015-04-14 15:55       ` Guenter Roeck

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.