From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62EF8C433FE for ; Fri, 18 Mar 2022 09:11:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234249AbiCRJMT (ORCPT ); Fri, 18 Mar 2022 05:12:19 -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) 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.