Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932380AbcJKWBW (ORCPT ); Tue, 11 Oct 2016 18:01:22 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:45857 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932321AbcJKWBU (ORCPT ); Tue, 11 Oct 2016 18:01:20 -0400 To: Ming Lei Cc: linux-kernel@vger.kernel.org, Christoph Hellwig , stable@vger.kernel.org, "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org (open list:SCSI SUBSYSTEM) Subject: Re: [Resend PATCH] SCSI: scan: fix use-after-free From: "Martin K. Petersen" Organization: Oracle Corporation References: <1475990608-4394-1-git-send-email-tom.leiming@gmail.com> Date: Tue, 11 Oct 2016 18:01:10 -0400 In-Reply-To: <1475990608-4394-1-git-send-email-tom.leiming@gmail.com> (Ming Lei's message of "Sun, 9 Oct 2016 13:23:27 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Source-IP: aserv0022.oracle.com [141.146.126.234] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 349 Lines: 11 >>>>> "Ming" == Ming Lei writes: Ming> This patch fixes one use-after-free report[1] by KASAN. In Ming> __scsi_scan_target(), when a type 31 device is probed, Ming> SCSI_SCAN_TARGET_PRESENT is returned and the target will be Ming> scanned again. Applied to 4.9/scsi-fixes. -- Martin K. Petersen Oracle Linux Engineering