[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f80acf0f-3e7e-89c5-a00e-d5a89553f0b4@linux.com>
Date: Wed, 29 Jul 2020 12:18:42 +0300
From: Denis Efremov <efremov@...ux.com>
To: Peilin Ye <yepeilin.cs@...il.com>, Jens Axboe <axboe@...nel.dk>
Cc: Arnd Bergmann <arnd@...db.de>, linux-kernel@...r.kernel.org,
linux-block@...r.kernel.org,
linux-kernel-mentees@...ts.linuxfoundation.org,
Dan Carpenter <dan.carpenter@...cle.com>
Subject: Re: [Linux-kernel-mentees] [PATCH] block/floppy: Prevent
kernel-infoleak in raw_cmd_copyout()
On 7/28/20 5:19 PM, Peilin Ye wrote:
> raw_cmd_copyout() is potentially copying uninitialized kernel stack memory
> since it is initializing `cmd` by assignment, which may cause the compiler
> to leave uninitialized holes in this structure. Fix it by using memcpy()
> instead.
>
> Cc: stable@...r.kernel.org
> Fixes: 2145e15e0557 ("floppy: don't write kernel-only members to FDRAWCMD ioctl output")
Nitpick, I would say this fix is not related to commit 2145e15e0557.
> Suggested-by: Dan Carpenter <dan.carpenter@...cle.com>
> Suggested-by: Arnd Bergmann <arnd@...db.de>
> Signed-off-by: Peilin Ye <yepeilin.cs@...il.com>
Powered by blists - more mailing lists