[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1339402702.4999.15.camel@lappy>
Date: Mon, 11 Jun 2012 10:18:22 +0200
From: Sasha Levin <levinsasha928@...il.com>
To: David Miller <davem@...emloft.net>
Cc: dbaryshkov@...il.com, slapin@...fans.org,
linux-zigbee-devel@...ts.sourceforge.net, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ieee802154: verify packet size before trying to
allocate it
On Sun, 2012-06-10 at 20:04 -0700, David Miller wrote:
> From: Sasha Levin <levinsasha928@...il.com>
> Date: Sun, 10 Jun 2012 13:10:19 +0200
>
> > Currently when sending data over datagram, the send function will attempt to
> > allocate any size passed on from the userspace.
> >
> > We should make sure that this size is checked and limited. The maximum size
> > of an IP packet seemed like the safest limit here.
> >
> > Signed-off-by: Sasha Levin <levinsasha928@...il.com>
>
> Why not limit to the device MTU? That's exactly what I suggested
> to you.
That's what I ended up doing in the reply to this mail.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists