From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751916AbdHCTX6 (ORCPT ); Thu, 3 Aug 2017 15:23:58 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:49672 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751236AbdHCTX5 (ORCPT ); Thu, 3 Aug 2017 15:23:57 -0400 Date: Thu, 3 Aug 2017 12:23:54 -0700 From: Greg KH To: Nick Desaulniers Cc: hare@suse.de, jthumshirn@suse.de, hch@lst.de, salyzyn@google.com, Robb Glasser , Doug Gilbert , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scsi: sg: Prevent potential double frees in sg driver Message-ID: <20170803192354.GA1598@kroah.com> References: <20170803190248.51537-1-ndesaulniers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170803190248.51537-1-ndesaulniers@google.com> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 03, 2017 at 12:02:47PM -0700, Nick Desaulniers wrote: > From: Robb Glasser > > sg_ioctl could be spammed by requests, leading to a double free in > __free_pages. This protects the entry points of sg_ioctl where the > memory could be corrupted by a double call to __free_pages if multiple > requests are happening concurrently. > > Signed-off-by: Robb Glasser > Signed-off-by: Nick Desaulniers > --- > drivers/scsi/sg.c | 2 ++ > 1 file changed, 2 insertions(+) Why no one on the to: line? And do you want this in the stable kernel trees? If so, please read: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html for how to do this properly. thanks, greg k-h