From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa1-f43.google.com (mail-oa1-f43.google.com [209.85.160.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1FF75263F2D for ; Sat, 10 Jan 2026 17:21:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768065717; cv=none; b=Y0Kz6wkm2hmaodqfkWQHeeSpJxL/b8vWiomNZGg4iTsy7cqIv3KBoEZVqtsmNufG6hQqb3nuCPdVAkicvTlXRE0fIJN329hyWosjOg4E17t3bmk++WEi9hB8mVnt0tBdXQZvIF2xqgGKYBg2R7oN7XCm5AZdxC0QLhNdNyH1DIQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768065717; c=relaxed/simple; bh=73GO5c85lTfUZaiQYMWg9njyagrLtIelxkgxHQC+giQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=d1PnoIC9Ox8qroFN4fL4nG2zDPELqW/7BdtRTZG6Lj+HXH+ek6xHyuZZUTnM7aQPG0uEIorqIZXR6o1eC6SjtcZDAuQXXGiVk936WWtZk+wDVbdvYTgoLd4aD1PGkYARQ8tg/co02feAZj6TJ1X+ViMTE7FOiVBihs97KZOmQyg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=lQL+NuTM; arc=none smtp.client-ip=209.85.160.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="lQL+NuTM" Received: by mail-oa1-f43.google.com with SMTP id 586e51a60fabf-3fa11ba9ed5so3774002fac.0 for ; Sat, 10 Jan 2026 09:21:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1768065713; x=1768670513; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=Mj0HGiIJWqHwMGUgvR1NOoz4/3RlXc+8pVl9NgqjV30=; b=lQL+NuTMnAibHybg8OZeNCPkxW6EH/eEm08LjK1rIAMY6KRHQCgED2UoGg3HxWkxdF 2WCXxaYEv3AGDUpQqQn3Jk3UKxnqvaeSHuI33FIhRCQHuX2A2FTQ2kkkalWSwB3X9N1W 8yvGpvuLwOsju2754vopOin0jcCQFn60utqAwlDAUkoK8I9SAX39dVUVmU/Wmm66iTyj Mnilz/1l58vejVph40Wj3TcxJlQJOA8EjM44O+rNgzh61G58fkieLno9jiS3Ep1xBkCt 5vPIDOyj5eCd8UC2dAI9K+AWQ7ZreejDE4xBa2HWmSR+/tWYv0EoUxr9uMdN05JMqkb0 sd8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768065713; x=1768670513; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Mj0HGiIJWqHwMGUgvR1NOoz4/3RlXc+8pVl9NgqjV30=; b=qTP40TYuBiXOMKv5Oy26C6bmflnFUSJwcOPyJ3VxIwD/fvqO40/p+rV5IyHB3+B/yb xqkZTq+W6ffLEFOByPufaTag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: by 2002:a05:6870:e98c:b0:3e7:e420:6229 with SMTP id 586e51a60fabf-3ffc095d801mr7144752fac.6.1768065713024; Sat, 10 Jan 2026 09:21:53 -0800 (PST) Received: from [192.168.1.150] ([198.8.77.157]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-3ffa4e3af4csm9101708fac.7.2026.01.10.09.21.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 10 Jan 2026 09:21:52 -0800 (PST) Message-ID: Date: Sat, 10 Jan 2026 10:21:51 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/3] block: zero non-PI portion of auto integrity buffer To: Caleb Sander Mateos Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Anuj Gupta , Christoph Hellwig References: <20260108172212.1402119-1-csander@purestorage.com> <176796707483.352942.3630670392140403614.b4-ty@kernel.dk> Content-Language: en-US From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 1/9/26 9:29 AM, Caleb Sander Mateos wrote: > On Fri, Jan 9, 2026 at 5:57 AM Jens Axboe wrote: >> >> >> On Thu, 08 Jan 2026 10:22:09 -0700, Caleb Sander Mateos wrote: >>> For block devices capable of storing "opaque" metadata in addition to >>> protection information, ensure the opaque bytes are initialized by the >>> block layer's auto integrity generation. Otherwise, the contents of >>> kernel memory can be leaked via the storage device. >>> Two follow-on patches simplify the bio_integrity_prep() code a bit. >>> >>> v2: >>> - Clarify commit message (Christoph) >>> - Split gfp_t cleanup into separate patch (Christoph) >>> - Add patch simplifying bi_offload_capable() >>> - Add Reviewed-by tag >>> >>> [...] >> >> Applied, thanks! >> >> [1/3] block: zero non-PI portion of auto integrity buffer >> commit: eaa33937d509197cd53bfbcd14247d46492297a3 > > Hi Jens, > I see the patches were applied to for-7.0/block. But I would argue the > first patch makes sense for 6.19, as being able to leak the contents > of kernel heap memory is pretty concerning. Block devices that support > metadata_size > pi_tuple_size aren't super widespread, but they do > exist (looking at a Samsung NVMe device that supports 64-byte metadata > right now). Good point, let me see if I can reshuffle it a bit. In the future, would be nice with these split, particularly if they don't have any real dependencies. I'll shift 1/3 to block-6.19. -- Jens Axboe