netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] ieee802154: reassembly: fix possible buffer overflow
@ 2014-06-29 11:10 Alexander Aring
  2014-07-03  1:35 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Aring @ 2014-06-29 11:10 UTC (permalink / raw)
  To: alex.bluesman.smirnov
  Cc: dbaryshkov, linux-zigbee-devel, netdev, Alexander Aring

The max_dsize attribute in ctl_table for lowpan_frags_ns_ctl_table is
configured with integer accessing methods. This patch change the
max_dsize attribute to int to avoid a possible buffer overflow.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
 include/net/netns/ieee802154_6lowpan.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/net/netns/ieee802154_6lowpan.h b/include/net/netns/ieee802154_6lowpan.h
index 079030c..e207096 100644
--- a/include/net/netns/ieee802154_6lowpan.h
+++ b/include/net/netns/ieee802154_6lowpan.h
@@ -16,7 +16,7 @@ struct netns_sysctl_lowpan {
 struct netns_ieee802154_lowpan {
 	struct netns_sysctl_lowpan sysctl;
 	struct netns_frags	frags;
-	u16			max_dsize;
+	int			max_dsize;
 };
 
 #endif
-- 
2.0.1

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

* Re: [PATCH net] ieee802154: reassembly: fix possible buffer overflow
  2014-06-29 11:10 [PATCH net] ieee802154: reassembly: fix possible buffer overflow Alexander Aring
@ 2014-07-03  1:35 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-07-03  1:35 UTC (permalink / raw)
  To: alex.aring; +Cc: alex.bluesman.smirnov, dbaryshkov, linux-zigbee-devel, netdev

From: Alexander Aring <alex.aring@gmail.com>
Date: Sun, 29 Jun 2014 13:10:18 +0200

> The max_dsize attribute in ctl_table for lowpan_frags_ns_ctl_table is
> configured with integer accessing methods. This patch change the
> max_dsize attribute to int to avoid a possible buffer overflow.
> 
> Signed-off-by: Alexander Aring <alex.aring@gmail.com>

Applied, thanks.

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

end of thread, other threads:[~2014-07-03  1:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-29 11:10 [PATCH net] ieee802154: reassembly: fix possible buffer overflow Alexander Aring
2014-07-03  1:35 ` David Miller

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).