[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <yq1d17naust.fsf@oracle.com>
Date: Tue, 22 Aug 2017 22:21:06 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Todd Poynor <toddpoynor@...gle.com>
Cc: Doug Gilbert <dgilbert@...erlog.com>,
"James E.J. Bottomley" <jejb@...ux.vnet.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
linux-scsi@...r.kernel.org, linux-kernel@...r.kernel.org,
Hannes Reinecke <hare@...e.de>
Subject: Re: [PATCH] sg: protect against races between mmap() and SG_SET_RESERVED_SIZE
Todd,
> Take f_mutex around mmap() processing to protect against races with
> the SG_SET_RESERVED_SIZE ioctl. Ensure the reserve buffer length
> remains consistent during the mapping operation, and set the
> "mmap called" flag to prevent further changes to the reserved buffer
> size as an atomic operation with the mapping.
Applied to 4.14/scsi-queue (with a slight whitespace fix). Thanks!
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists