stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: David Rientjes <rientjes@google.com>
Cc: stable@vger.kernel.org, Hannes Reinecke <hare@suse.de>,
	Johannes Thumshirn <jthumshirn@suse.de>,
	Christoph Hellwig <hch@lst.de>,
	"Martin K. Petersen" <martin.petersen@oracle.com>
Subject: Re: [patch stable 4.9] scsi: sg: disable SET_FORCE_LOW_DMA
Date: Fri, 19 Jan 2018 08:50:18 +0100	[thread overview]
Message-ID: <20180119075018.GC25687@kroah.com> (raw)
In-Reply-To: <alpine.DEB.2.10.1801181341320.205153@chino.kir.corp.google.com>

On Thu, Jan 18, 2018 at 01:42:17PM -0800, David Rientjes wrote:
> From: Hannes Reinecke <hare@suse.de>
> 
> 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

      reply	other threads:[~2018-01-19  7:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-18 21:42 [patch stable 4.9] scsi: sg: disable SET_FORCE_LOW_DMA David Rientjes
2018-01-19  7:50 ` Greg KH [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=20180119075018.GC25687@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=hare@suse.de \
    --cc=hch@lst.de \
    --cc=jthumshirn@suse.de \
    --cc=martin.petersen@oracle.com \
    --cc=rientjes@google.com \
    --cc=stable@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).