[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20140312.163130.1932426314100805531.davem@davemloft.net>
Date: Wed, 12 Mar 2014 16:31:30 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: matthew.leach@....com
Cc: netdev@...r.kernel.org, Will.Deacon@....com, Mark.Rutland@....com,
dan.carpenter@...cle.com
Subject: Re: [PATCH] net: socket: error on a negative msg_namelen
From: Matthew Leach <matthew.leach@....com>
Date: Tue, 11 Mar 2014 11:58:27 +0000
> When copying in a struct msghdr from the user, if the user has set the
> msg_namelen parameter to a negative value it gets clamped to a valid
> size due to a comparison between signed and unsigned values.
>
> Ensure the syscall errors when the user passes in a negative value.
>
> Signed-off-by: Matthew Leach <matthew.leach@....com>
Applied and queued up for -stable, thanks.
--
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