Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3990183imm; Mon, 15 Oct 2018 07:27:06 -0700 (PDT) X-Google-Smtp-Source: ACcGV62fK59jnGeFCoKVAzscJxJcE6+kJrp8UrbL23V9VBTtrqWOSny61DQWjjcJvwfifgn779C+ X-Received: by 2002:a17:902:109:: with SMTP id 9-v6mr17184215plb.320.1539613625972; Mon, 15 Oct 2018 07:27:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539613625; cv=none; d=google.com; s=arc-20160816; b=N0DR2o2PZZPyRoFeRIFdMq5VoYU2xAeZ9P3ChHqqZXAEFJ0lJc8bz30q11SvEp3/Zv HHvsX0ViZBM0nNi9Z8RKdfjqEa392KbI/wtgS8u7bJw64HHhs2MBiSDyDuNC0ZPgGGl/ PGh1tTDudVOFSrrgg8NL7GJcRi7n5PN+EOYk5lGeM4P7oG1keWFx+8d1gSG/BoXS0/Cu rnDNQCa30bSuMSPQl1Z4y/lmLlLwCXk0nJEH2oVO6v9061yJR4qghIntJsmU50exkjnb dmaP78Fx7ZW/95LxTo2RbWYfaM1zKFBU2CcPQgtDTimXC2n9L3XMJc6eR+NB30rScbbd JTXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=L4K3pKPo2UcPVlZK9zG8ZLSWRiMfgvgvN0FhDA4xVUo=; b=SRWJL4oK0D/DInGtIVG7gdhModTYm83dKuCTzSIguRpwfJlgF6koxxLkv94iwktIbb 4YougMtI0uzAuoUrnGJiMgDWXjBcunqo4Rqgc0qgwVkB/76nuFGAonHWMMaSw0EZtT4w 7c2H55nyPAo6Ymzt1wV9TI0HtR3lKKGr1z7gDmifIcFyH7r5bW9QB8NG0zaaae5tZZwx CsaeNS47YEJipOfLDcx7LO/YOkw8shOtYQeqe3WAOMb0fMHPHu1+zdNmYO4a5bbcQ9dE MrxKKaOBiEMeTQ9GKvjQl114nDzyip/aApDJgA+s7tacR1MI3/x4W9sJcxorB/PhpxCi sZkQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s130-v6si11176440pfc.81.2018.10.15.07.26.51; Mon, 15 Oct 2018 07:27:05 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726843AbeJOWLn (ORCPT + 99 others); Mon, 15 Oct 2018 18:11:43 -0400 Received: from smtp.nue.novell.com ([195.135.221.5]:52808 "EHLO smtp.nue.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726561AbeJOWLn (ORCPT ); Mon, 15 Oct 2018 18:11:43 -0400 Received: from emea4-mta.ukb.novell.com ([10.120.13.87]) by smtp.nue.novell.com with ESMTP (TLS encrypted); Mon, 15 Oct 2018 16:26:11 +0200 Received: from [192.168.1.2] (nwb-a10-snat.microfocus.com [10.120.13.202]) by emea4-mta.ukb.novell.com with ESMTP (TLS encrypted); Mon, 15 Oct 2018 15:26:02 +0100 Message-ID: Subject: Re: [PATCH v2] xen/blkfront: avoid NULL blkfront_info dereference on device removal From: Vasilis Liaskovitis To: Roger Pau =?ISO-8859-1?Q?Monn=E9?= Cc: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, jgross@suse.com, boris.ostrovsky@oracle.com, konrad.wilk@oracle.com, axboe@kernel.dk Date: Mon, 15 Oct 2018 16:25:56 +0200 In-Reply-To: <20181015140201.elir7ettk7sz4aix@mac.bytemobile.com> References: <20181015132508.23293-1-vliaskovitis@suse.com> <20181015140201.elir7ettk7sz4aix@mac.bytemobile.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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). thanks, - Vasilis