[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20101110.125929.245406622.davem@davemloft.net>
Date: Wed, 10 Nov 2010 12:59:29 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: bhutchings@...arflare.com
Cc: penguin-kernel@...ove.SAKURA.ne.jp, eric.dumazet@...il.com,
netdev@...r.kernel.org
Subject: Re: [PATCH] Prevent reading uninitialized memory with socketfilters
From: Ben Hutchings <bhutchings@...arflare.com>
Date: Wed, 10 Nov 2010 20:57:44 +0000
> On Wed, 2010-11-10 at 10:39 -0800, David Miller wrote:
> [...]
>> In this patch, I use a bitmap (a single long var) so that only filters
>> using mem[] loads/stores pay the price of added security checks.
>>
>> For other filters, additional cost is a single instruction.
>>
>> [ Since we access fentry->k a lot now, cache it in a local variable
>> and mark filter entry pointer as const. -DaveM ]
> [...]
>
> I don't see the justification for combining these changes. One patch,
> one fix, right?
I'm minimizing the performance impact of the new bitmap checks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists