From: David Miller <davem@davemloft.net>
To: matthew.leach@arm.com
Cc: netdev@vger.kernel.org, Will.Deacon@arm.com,
Mark.Rutland@arm.com, dan.carpenter@oracle.com
Subject: Re: [PATCH] net: socket: error on a negative msg_namelen
Date: Wed, 12 Mar 2014 16:31:30 -0400 (EDT) [thread overview]
Message-ID: <20140312.163130.1932426314100805531.davem@davemloft.net> (raw)
In-Reply-To: <1394539107-1432-1-git-send-email-matthew.leach@arm.com>
From: Matthew Leach <matthew.leach@arm.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@arm.com>
Applied and queued up for -stable, thanks.
prev parent reply other threads:[~2014-03-12 20:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-11 11:58 [PATCH] net: socket: error on a negative msg_namelen Matthew Leach
2014-03-12 20:31 ` David Miller [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140312.163130.1932426314100805531.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=Mark.Rutland@arm.com \
--cc=Will.Deacon@arm.com \
--cc=dan.carpenter@oracle.com \
--cc=matthew.leach@arm.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).