lkml.org 
[lkml]   [2013]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] Smack: IPv6 casting error fix for 3.11
From
Why does this have the (largely same) commit message twice?

Linus

On Mon, Aug 5, 2013 at 1:21 PM, Casey Schaufler <casey@schaufler-ca.com> wrote:
> Subject: [PATCH] Smack: IPv6 casting error fix for 3.11
>
> The original implementation of the Smack IPv6 port based
> local controls works most of the time using a sockaddr as
> a temporary variable, but not always as it overflows in
> some circumstances. The correct data is a sockaddr_in6.
> A struct sockaddr isn't as large as a struct sockaddr_in6.
> There would need to be casting one way or the other. This
> patch gets it the right way.
>
> This problem required some effort to make occur in development
> with 3.10, but hits every time in 3.11. This patch should go
> into 3.11.
>
> Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
>
> ---
> Subject: [PATCH] Smack: IPv6 casting error fix
>
> The original implementation of the Smack IPv6 port based
> local controls works most of the time using a sockaddr as
> a temporary variable, but not always as it overflows in
> some circumstances. The correct data is a sockaddr_in6.
> A struct sockaddr isn't as large as a struct sockaddr_in6.
> There would need to be casting one way or the other. This
> patch gets it the right way.
>
> Signed-off-by: Casey Schaufler <casey@schaufler-ca.com>
>
> ---
> security/smack/smack_lsm.c | 24 +++++++++++-------------
> 1 files changed, 11 insertions(+), 13 deletions(-)


\
 
 \ /
  Last update: 2013-08-05 23:21    [W:0.048 / U:5.308 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site