Re: [PATCH 1/3] netfilter: Fix copy_to_user too small size parametre. |
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx>
- Subject: Re: [PATCH 1/3] netfilter: Fix copy_to_user too small size parametre.
- From: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
- Date: Thu, 1 Mar 2012 16:13:56 +0300
- Cc: santosh nayak <santoshprasadnayak@xxxxxxxxx>, netfilter@xxxxxxxxxxxxxxx, coreteam@xxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, bridge@xxxxxxxxxxxxxxxxxxxxxxxxxx, kernel-janitors@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, davem@xxxxxxxxxxxxx, bart.de.schuymer@xxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxx, shemminger@xxxxxxxxxx
- Delivered-to: bridge@xxxxxxxxxxxxxxxxxxxxxxxx
- In-reply-to: <20120301130637.GB7429@1984>
- References: <1330593390-19233-1-git-send-email-santoshprasadnayak@gmail.com> <20120301101809.GA6488@1984> <20120301113736.GE22598@mwanda> <20120301130637.GB7429@1984>
- User-agent: Mutt/1.5.21 (2010-09-15)
On Thu, Mar 01, 2012 at 02:06:37PM +0100, Pablo Neira Ayuso wrote:
> > Where do we clear "m"?
> >
> > include/linux/netfilter/x_tables.h
> > 287 struct xt_match {
> > 288 struct list_head list;
> > 289
> > 290 const char name[XT_EXTENSION_MAXNAMELEN];
> > 291 u_int8_t revision;
> > 292
> >
> > There is a 2 byte holes here between "revision" and "match()". We
> > copy three bytes past the end of name, so we include revision and
> > the hole.
> >
> > But maybe we memset it somewhere? I'm not sure.
>
> xt_match instances are declared as static for each module so it's
> allocated in the BSS (already zeroed), is that what you mean?
>
Yeah. I didn't know how that worked. Thanks.
regards,
dan carpenter
Attachment:
signature.asc
Description: Digital signature
_______________________________________________
Bridge mailing list
Bridge@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/bridge
[Netdev]
[AoE Tools]
[Linux Wireless]
[Kernel Newbies]
[Security]
[Linux for Hams]
[Netfilter]
[Bugtraq]
[Photo]
[Yosemite]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux RAID]
[Linux Admin]
[Samba]
[Video 4 Linux]
[Linux Resources]