Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2406256pxp; Fri, 18 Mar 2022 09:51:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3aJ74PyWqbXTMwMYscmGJNOl++4ayZTSGSBPf+TdyW/5mM2nrhYvkj5YWDQ1RRmWr9R9R X-Received: by 2002:a17:90b:234f:b0:1c6:a3f7:98a3 with SMTP id ms15-20020a17090b234f00b001c6a3f798a3mr6727929pjb.63.1647622300017; Fri, 18 Mar 2022 09:51:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647622300; cv=none; d=google.com; s=arc-20160816; b=uavbJaBDC6dsp3afZq823X1iExZfho4SOXCthtYwyT1Twd/8n7DR/xjSCthWjlTEbO Gmw0wrH2KUNrBbe9d7fefCCYU9TkHZu3IV+2h63Ou2GDmnJSj/UZNkI8BSusT4j8GISc VsHoTLzr4KrOarE4ysLSwYXU+Nn3taBDsZyy8L6tRPaab7pVnqm7A0wq+lUF1X3zjg8l 6Xv56v9dwb9EuQmevikbtVr6HneVeskkbcXbPI9BPhlaRWnFqQWUoGaMmLK96X0tDfoj /BCo5y/vsnCLEyoqq7oGVIH73PkktMvA0y3phulCnP+uZXsx5X4nSArJIojBiRXnnZPd 27JQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Zhg1NvSsADsOrqjdQzE4J0ps7DFCkAAh4XNG31My+Hk=; b=rgRMhmQnYoEOYnZ8FrR7cck5SJidHUgUoJSG1QSCNqD4S3zoc2wV0GnnTyCctVGJ5L P68w0+oF0JrWIuZr0tA7VSgx/VcfbZOuLY6GVJoNHDyXPxtzSJ4AXShpMcJm4hIHt4sD +9uGryYY5Bm6iWL46Si7IDPViFjTQZ6JL3+UEcOIQOIZ5or1zxMXMU12O43Aqr3M1H+H cbi5llCy+YahxlQLUBsW+LTpfvLB7NRYCuFmQwFyufXSihSq0D9/PLaRmVbyvdoOZ12E 3JqljZmIhFQngkKOmFKlrBIJcD3OO92kBd5aDTSVLotPPMsX5JVprQ4AHJLOE1skKCzv aC0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s16-20020a17090a441000b001bf5d5b5daasi5440105pjg.129.2022.03.18.09.51.23; Fri, 18 Mar 2022 09:51:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234244AbiCRJMS (ORCPT + 99 others); Fri, 18 Mar 2022 05:12:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232673AbiCRJMR (ORCPT ); Fri, 18 Mar 2022 05:12:17 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AA331905BE; Fri, 18 Mar 2022 02:10:58 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id DA4B268AFE; Fri, 18 Mar 2022 10:10:54 +0100 (CET) Date: Fri, 18 Mar 2022 10:10:54 +0100 From: Christoph Hellwig To: Eric Biggers Cc: Christoph Hellwig , axboe@kernel.dk, jaegeuk@kernel.org, chao@kernel.org, ulf.hansson@linaro.org, Adrian Hunter , Daeho Jeong , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org Subject: Re: security issue: data exposure when using block layer secure erase Message-ID: <20220318091054.GA31758@lst.de> References: <20220316093740.GA7714@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 16, 2022 at 06:05:29PM +0000, Eric Biggers wrote: > __blkdev_issue_discard() can break up the region into multiple bios, but I don't > see where it actually skips parts of the region. Can you explain more > specifically where the problem is? You're right. We used to skip misaligned parts, but that was actually fixed two years ago.