From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:58006 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750923AbeASHuV (ORCPT ); Fri, 19 Jan 2018 02:50:21 -0500 Date: Fri, 19 Jan 2018 08:50:18 +0100 From: Greg KH To: David Rientjes Cc: stable@vger.kernel.org, Hannes Reinecke , Johannes Thumshirn , Christoph Hellwig , "Martin K. Petersen" Subject: Re: [patch stable 4.9] scsi: sg: disable SET_FORCE_LOW_DMA Message-ID: <20180119075018.GC25687@kroah.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: stable-owner@vger.kernel.org List-ID: On Thu, Jan 18, 2018 at 01:42:17PM -0800, David Rientjes wrote: > From: Hannes Reinecke > > commit 745dfa0d8ec26b24f3304459ff6e9eacc5c8351b upstream. > > The ioctl SET_FORCE_LOW_DMA has never worked since the initial git > check-in, and the respective setting is nowadays handled correctly. So > disable it entirely. > > [rientjes@google.com: the SG_SET_FORCE_LOW_DMA ioctl can race with > mmap(MAP_POPULATE) or a VM_LOCKED vma to cause a use-after-free which > can result in a GPF in practice.] Thanks, I had already queued this up for 4.9, 4.4, and 3.18 last night, sorry you were not cc:ed on that. greg k-h