Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp2538067imm; Thu, 18 Oct 2018 16:55:26 -0700 (PDT) X-Google-Smtp-Source: ACcGV62iS7WQQ+63aCwxuoATnML0r9kWqgQwBddt7N7oj4MMDmtT+H0LSHqCxLxisKKH8RtMCgg6 X-Received: by 2002:a62:5343:: with SMTP id h64-v6mr32192416pfb.226.1539906926310; Thu, 18 Oct 2018 16:55:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539906926; cv=none; d=google.com; s=arc-20160816; b=kpg0LQQ12mLBn5EzWaEc/1ZHmhWTwjaF3R97am0EpLdCFyi80KUGGIxc7cYkCbd4Cb V9FrtTjAKTcEvIPsepwdrV22rGAeuU/ijeAwW7V9kJ7oorgK+XAlILpaV0M8YX1elW76 5Bi1eJBe8Tj0gUPqoHQxjU4QkSgvi1991Mea9RTvG40n3PW6pvU7xdUCgqcizBqt+4qf b9LoOEKbK2jrSte3iy9e0u9YB2Ye3wbQKmlqfgZPnbebzVhOtAvyx1G2SpR4R9frti8M c28IywZavq9qafDTLKxVPRVk+SF6FYWO0TqplLq+ubkKveEy+aDg/FZnEDKBRkdkdv9Y da2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YqT3Yb3nrKXrchDb47c0C3TQTAcOOmXghkf5DxB1H1E=; b=Qdq4k9FYPVuhjYvMw2jeqW/6OytJWrq1wLNoa0WBdAOOdsqC+XtXzQSnEqVw9H640e u+WgvV9ybsfQXRxdxb+eTKjS63VpFytKvQVpVyv1q+Xqhf05ZeVgnhUWiMGKgDCF9831 BqwTAl1WxkZ1O7P8cjGjT7H9GTpy6ZWv6xapOo1F9/fqKBofhexi89SRKsQhZIzuj3JA dKbcwUExT8YzfiAJakrd+edgIOt9YMXhoMz797MhB27EFc5YSX9aaO94iftC+gz6tC3v oGB2sVaprnUZbvyPUMRwMK/S4px5brSU+UXP9r7rQTW7IOulaWYY+v/lQ2XLp04vgDCX R3bA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=EC64gsft; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d131-v6si23873383pga.37.2018.10.18.16.55.11; Thu, 18 Oct 2018 16:55:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=EC64gsft; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727550AbeJSH57 (ORCPT + 99 others); Fri, 19 Oct 2018 03:57:59 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:34098 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726627AbeJSH56 (ORCPT ); Fri, 19 Oct 2018 03:57:58 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w9INsRsY129889; Thu, 18 Oct 2018 23:54:27 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : content-transfer-encoding : in-reply-to; s=corp-2018-07-02; bh=YqT3Yb3nrKXrchDb47c0C3TQTAcOOmXghkf5DxB1H1E=; b=EC64gsftvAQYf3Qx3Oj8EboCq1STViJOFEPvZBwup+sp5AmXfaQQOHs4UEAzeA3axWdy YOuxGiVyKlElpFeL8MKCO+syRhuKBw88youHnDt0/PoL35buF2gnh74EunP8sGCKnWFJ 4MlywYNzQJHv11yiAzfpdt36VL4P0uuUB2fCM/VMu5+NeJloB5bFZF9bKo4i/cgZA/Pj e0BXL3oWZzfB0Qt6I26DiU81B+avOKzJ+hKvr/aB4LqtzWCIiGJ1ebfJ/OIr4QFn8q2v D3UWPnslMyCtNMdTC/R8ijytPRt6TOkmo65ieTPDbNOmn5+a/VxYvbfZubs8R9VF6DLA 0g== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2n39brsafu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 Oct 2018 23:54:26 +0000 Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w9INsLnH030537 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 Oct 2018 23:54:21 GMT Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w9INsKSF024233; Thu, 18 Oct 2018 23:54:20 GMT Received: from konrads-mbp.lan (/209.6.36.129) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 18 Oct 2018 16:54:20 -0700 Date: Thu, 18 Oct 2018 19:54:17 -0400 From: Konrad Rzeszutek Wilk To: Vasilis Liaskovitis Cc: Roger Pau =?iso-8859-1?Q?Monn=E9?= , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, jgross@suse.com, boris.ostrovsky@oracle.com, axboe@kernel.dk Subject: Re: [PATCH v2] xen/blkfront: avoid NULL blkfront_info dereference on device removal Message-ID: <20181018235417.GB36047@konrads-mbp.lan> References: <20181015132508.23293-1-vliaskovitis@suse.com> <20181015140201.elir7ettk7sz4aix@mac.bytemobile.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9050 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=2 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1810180200 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 15, 2018 at 04:25:56PM +0200, Vasilis Liaskovitis wrote: > On Mon, 2018-10-15 at 16:02 +0200, Roger Pau Monn? wrote: > > > > > This results in a NULL pointer BUG when blkfront_remove and > > > blkif_free > > > try to access the failing device's NULL struct blkfront_info. > > > > > > > > I guess this is a candidate for backporting? > > > > yes, I think so. At least for kernels >=4.5, which could face this > issue due to commit c31ecf6c12 (this frees the struct blkinfo in the > failing path of talk_to_blkback). OK, applied with Cc: stable@vger.kernel.org > > thanks, > > - Vasilis > >