From: David Miller Date: Mon, 02 Apr 2018 00:08:53 +0000 Subject: Re: [PATCH] sparc64: Properly range check DAX completion index Message-Id: <20180401.200853.1447733373974040406.davem@davemloft.net> List-Id: References: <1522558381-31281-1-git-send-email-rob.gardner@oracle.com> In-Reply-To: <1522558381-31281-1-git-send-email-rob.gardner@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: sparclinux@vger.kernel.org From: Rob Gardner Date: Sun, 1 Apr 2018 12:42:46 -0600 > On 04/01/2018 11:11 AM, Linus Torvalds wrote: >> On Sat, Mar 31, 2018 at 9:53 PM, Rob Gardner >> wrote: >>> Signed-off-by: Rob Gardner >>> Signed-off-by: Jonathan Helman >>> Reported-by: Linus Torvalds >> That Reported-by: should be "oguard " >> >> I was just the messenger. >> >> Linus > > > oguard observed "lack of size check on the copy_from_user", but that > wasn't really a bug since 'count' actually is checked in dax_write(). > > But you noticed that idx could be negative and idx + nccbs could > overflow, and this is a genuine bug that nobody else saw. Agreed, Linus's as the reporter is correct. Applied and queued up for -stable, thank you.