Re: [PATCH] net: clear heap allocations for privileged ethtoolactions

From: David Miller
Date: Mon Oct 11 2010 - 15:24:18 EST


From: Ben Hutchings <bhutchings@xxxxxxxxxxxxxx>
Date: Thu, 07 Oct 2010 22:34:44 +0100

> On Thu, 2010-10-07 at 14:10 -0700, Kees Cook wrote:
>> Several other ethtool functions leave heap uncleared (potentially) by
>> drivers. Some interfaces appear safe (eeprom, etc), in that the sizes
>> are well controlled. In some situations (e.g. unchecked error conditions),
>> the heap will remain unchanged in areas before copying back to userspace.
>> Note that these are less of an issue since these all require CAP_NET_ADMIN.
>>
>> Cc: stable@xxxxxxxxxx
>> Signed-off-by: Kees Cook <kees.cook@xxxxxxxxxxxxx>
...
> Acked-by: Ben Hutchings <bhutchings@xxxxxxxxxxxxxx>

So I've applied Kees's patch to net-2.6, and I'll merge net-2.6
into net-next-2.6 so I can resolve the vmalloc/kzalloc merge
conflict before Stephen Rothwell and others have to deal with it
in -next.

Thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/