From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-yx1-f98.google.com (mail-yx1-f98.google.com [74.125.224.98]) (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 A40F12FDC30 for ; Thu, 8 Jan 2026 17:22:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.224.98 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767892953; cv=none; b=U7lpUo+ZD0afxOrIkMQiIqownvlHj4rOn9g8usxqVu5WRgYLtk1MjnF5Q9KeBWCvnCter3jHylyP0xopsE/jrYNkkaPXFUUahdW0z9dkGduOrHvUM9fHY4mOJ8hXWRT0BRAs5r564cBeSCECcBp1O46WpdWc/85wQOToO88Dhy0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767892953; c=relaxed/simple; bh=/IU4BJFN9HahxQd5czjHe0YGZ+qC925mCNOzrq+k6yQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=r89pr6NbDVFpl8CoFGquNA+l4SGe5I4AcqwX0Oso7ySNTNr6HZhB9qd0a40h6gmxmBseC6A3Sa4RuxHhSU+kCxeAvycDrWevI6vkmGIqZ9v4SyDwXJWPwiBATk45+p/AJGMzD3NYQYqVbkO7AO8DVXcjOJEMZEjXckPNWZCwaIE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=purestorage.com; spf=fail smtp.mailfrom=purestorage.com; dkim=pass (2048-bit key) header.d=purestorage.com header.i=@purestorage.com header.b=bogGKBbH; arc=none smtp.client-ip=74.125.224.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=purestorage.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=purestorage.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=purestorage.com header.i=@purestorage.com header.b="bogGKBbH" Received: by mail-yx1-f98.google.com with SMTP id 956f58d0204a3-6447a204210so492146d50.0 for ; Thu, 08 Jan 2026 09:22:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=purestorage.com; s=google2022; t=1767892951; x=1768497751; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=FsYrTzLPeo8Mpf6y9bw0LEFuaRCqS0ObeVn1rvSeXRA=; b=bogGKBbHuf4Qg7TXTQL7wfUsYaj6p80CtcbC3LMnaqGTHgP0l/V0HTN9SIVq2wS71d i8G3Tje6aM+ZNhqZlA5OaBOskgXYW+3ub9qtCE7I/Djb9OyEQnWsZ1pnRd5h9mrk732/ OTlrIWnDXHxHKKWl4LsYej7tXCLIYhRI+0GBU3HptEc6GGWMnwBxXBUeIsP5LMet/snl OYU96sTCTVJaKC30pwuMdgpcIDOgfkjDGJWjjWb//p5J8GTkIrdAsKxuwzUGj3UU+fD+ fNuvXk6rxkYOHN9nC+WhAZuHfglQMPIlXyXcI0SD/AZrDBFwW20JlMs2cy6428DLrWls Uu8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767892951; x=1768497751; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=FsYrTzLPeo8Mpf6y9bw0LEFuaRCqS0ObeVn1rvSeXRA=; b=rZLIRC6bkIerMfMIwav78kzKS9x/jzrxZPlxuQpoVyMe1BzEzPuPl6zTyNJ2JmvzJb 1cCxmDG8UTuf3RTKsKTpmlK7mtD/j6Ud6FJyRPZug/8PUFzvUYpHpQW5rBKjYPS4ZIW0 6gP1zDHbkvMw9gJ8wcQHtxPI12dpZy+nrnClvWwqdxAErye5Xfnd1m5jBfZDtDK5jI3R wthH7RJbqdCKi8RzluaxCQbORxfx+f5hQjTZH6jYbSJGnBIA2/OYPfKGZwGn1NgaB06h GRRMm5DpL1sLLr3C6Rjkke4zfE0Fk8z8dDhA0Qm5u2CJyV7EaYWGZ8xn2+7Zg0eyWcOl /Wbw== X-Forwarded-Encrypted: i=1; AJvYcCVM7CEFBT7IKY7vlU8qCQuAIMXCKAk3ZhmHJSKFWtf03rrE70RLTTAtvA+VBsl6OwzRx9s3j1cbW9xRQNs=@vger.kernel.org X-Gm-Message-State: AOJu0Yy7aaWvJAUssHXexuHxrEsedy6+HfBVnxn2nNPOlt6Gye6TgjHo dExvQH1rEA4thdiZu8YnijBrRIzToD8PUPXCFnP0pBZEa/59iNf3nKeB8KmuEx0zBtqtcSFP2q2 cCtCAv0Vu7Tm5zBBv3x6rFytvonwk/RXxsY4ZcthhfiZKyvIxI/AD X-Gm-Gg: AY/fxX4eVt0L3RPpqgIzZRRk/NETS4imAbWIXVaJZ6SokrSfab4S9h8Hk/zqVRFw3Uf yBZeL5HH7/um0TvZ7u/eqkiOCvXiFfY58Mewn3ySVyxNchFFHQ68h/j2EtVnZO144WCNPxvwz4t z7S8SFzvNu7SzCTPxbb1EJzpPjgdAxPWMmn4l7Ra9T10TmqStOEVnpx3iA8a58aW1XXDVvjD0wM j8noxj6WrYrJNz1Nr5FPcNlNpNGlvGDC/TuYtgt68wAxBqNpeaj8cjSfTl33HaInIaS310bFJRM NH72KU4I8HEkLxcGPjA4YHXdbR9akBkN13EczsBVimTH9UGNO+n0veVjxvgp1IcxzKnZ6Yi5ZER yjZd7a8U7YIdhyqkXdWy/tc/+uS4= X-Google-Smtp-Source: AGHT+IHTSPJk2NCiGaRT9AtWskwF/Ucr/ARa0VAfuMsoQitzHJhASpm2ZhfB81S7Tkvm6hWesFqlPAtyzvGd X-Received: by 2002:a05:690c:fc9:b0:78f:cd29:51ad with SMTP id 00721157ae682-790b573188amr60194927b3.6.1767892950805; Thu, 08 Jan 2026 09:22:30 -0800 (PST) Received: from c7-smtp-2023.dev.purestorage.com ([2620:125:9017:12:36:3:5:0]) by smtp-relay.gmail.com with ESMTPS id 00721157ae682-790aa5a795dsm6691367b3.14.2026.01.08.09.22.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Jan 2026 09:22:30 -0800 (PST) X-Relaying-Domain: purestorage.com Received: from dev-csander.dev.purestorage.com (dev-csander.dev.purestorage.com [10.112.6.120]) by c7-smtp-2023.dev.purestorage.com (Postfix) with ESMTP id D7B9A34051A; Thu, 8 Jan 2026 10:22:29 -0700 (MST) Received: by dev-csander.dev.purestorage.com (Postfix, from userid 1557716354) id C0017E42165; Thu, 8 Jan 2026 10:22:29 -0700 (MST) From: Caleb Sander Mateos To: Jens Axboe Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Anuj Gupta , Christoph Hellwig , Caleb Sander Mateos Subject: [PATCH v2 0/3] block: zero non-PI portion of auto integrity buffer Date: Thu, 8 Jan 2026 10:22:09 -0700 Message-ID: <20260108172212.1402119-1-csander@purestorage.com> X-Mailer: git-send-email 2.45.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Caleb Sander Mateos (3): block: zero non-PI portion of auto integrity buffer block: replace gfp_t with bool in bio_integrity_prep() block: use pi_tuple_size in bi_offload_capable() block/bio-integrity-auto.c | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) -- 2.45.2