From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.181 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796396989; b=cyX5PruajPIdk9blSlJfP//faV2aighwQWIuroLqhe1vYgqSR/2oouGXlCk6coZFBneI srD8YaGO/muFW/JDlQVaH77ykLv0bO8gTwcJk1miAFeXXC/8IZoAErgAx9dW5rtql5ifz CFttQQe5RUKcQS8bKJKkUaXe0rRzYiYSg+NELibbHo8BgshOJogJ9JKoD47KL8tPorWOt EWw2niCbcbtU0ySKeL8II1fErLETmVwWPxPzkgsgBBreiS99TaPcIylZaTVSAUzfnbrVM zX/WGoBJ2kTsQFGtdsG1/FcGs1ywqovOebiJ2yd/6vo74J5KxJ2m0CarRDh7uG7cnsA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796396989; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Message-ID:Date:MIME-Version:User-Agent:From:Subject:To:Cc:References: Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=MKUXMxy/h0fLqlFrYUGRBilxrLQVQxfbb34GRbVyWmc=; b=dUuMGn8Mj8NfcEDZrFUd3O2FTMFrGBjmrU1QmKn8JXDpjz9fTV4fwiL3xs+0jWK+bylr WQsDBcOqoMYoeOo0bkR6z/5UJ7GfZU7vGfdyrr/URSBbJjWq1mJnlScDaQed3aIS4gfO2 Fp1TYhi0Mk2ymRcubvVrQ9pV1UFZO/LNzvOF7JnGok7bRvn/SZF0XuQapQcHSeNY/V3o5 5YAA9C20JAiNjid0OKflOh9iVw77sO57MFaRKSrZJTH/obmDBnQyNUqhaZQtYzw0MbRvX H/SbEyNOrP4uCWxEpk4sO0csHbsuh+TW9gCjc4SOPn6emjiWB9FTODgboq7bkOm42cw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass header.d=kernel.dk header.i=@kernel.dk header.a=rsa-sha256 header.s=google header.b=MYGFNdlT; arc=none smtp.remote-ip=74.125.82.181 Received: from mail-dy1-f181.google.com (mail-dy1-f181.google.com [74.125.82.181]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 87BC4606A32C for ; Fri, 4 Dec 2026 15:09:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 87BC4606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (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 header.i=@kernel.dk header.a=rsa-sha256 header.s=google header.b=MYGFNdlT Received: by mail-dy1-f181.google.com with SMTP id 5a478bee46e88-38431138772so1450034eec.1 for ; Fri, 04 Dec 2026 07:09:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.dk; s=google; t=1796396987; x=1797001787; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :references:cc:to:subject:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=MKUXMxy/h0fLqlFrYUGRBilxrLQVQxfbb34GRbVyWmc=; b=MYGFNdlTK62k2GDzEsZfStJOlvDhRXp3jaFiCqa8LH1jo2Jo4sJQaJYWFxZmatf3Fh w5LnGZvEyGwv/nwBhs2hyoQgYKqf4e2rRigQW7Plx4hvw4weox2QOKz1A/CiqTbZaoNt D2rmGppVyh1aLkLNiFw3rKsoIAvzqmHb4X5y/kXDOAHzlVtp3LMQjxtUoPlwmvpsB4l6 8ADAMBr97EhoxYO0UtGK2NBTOJwRoKW9zsj9cRv/JvW254QrBzrjEOKenjYDv73QXIYL xHRx2A1WaYfVsAmOT37oTtKeAo66BL+g1yKr9kTVznIiHlHcXV0Jbyut9oLAYOPU2E8X 5GPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796396987; x=1797001787; h=content-transfer-encoding:content-type:in-reply-to:content-language :references:cc:to:subject:from:user-agent:mime-version:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=MKUXMxy/h0fLqlFrYUGRBilxrLQVQxfbb34GRbVyWmc=; b=oFPQgZPkpZ4oMlL02EcfbpfLnBC1y5OO5TGjzKTfnKicwK7UIloRkkqR36CY48LB7f opPwkgFl1dP7VYh7a6pii99YYcuExxmj73Ydyl4bt7ZZNy8zemUPUVkfKIM092Q+1nJd fzCxNUC4IEiN8tpxsvy9KwptSPJGk3OVDCMnxI0rjUFeKeqwFt0BDvmz05cRspGws9Si hfYGiTBoeTT6rU7CjV+1/ZBXb6/1IvYfMn2U94jYdTz6gvWpY0XugjGCRDjY4tKHdK35 A1uHmfg+lCP+4YONX92U434Ex99L6tcy/4u5llQ8udXXxzJibBHFlBZMq3HG4VU3u8wR kE5w== X-Forwarded-Encrypted: i=1; AL+hErHsuJCEK9fvnvA0N0yzu7Cv7ivh0CZF+inSGsTVvwgs8bgedQ+q8VOmxB5m41Yf41hVFbFx3Ob+OWEoIg==@vger.kernel.org X-Gm-Message-State: AB4q+uHURQYN+w65As6BWz2YQWNjb45aXl6NeG3m+AuDabge5v631LXm jZ/XB+bah+kLBOIldgesgODkHZ2qzWHzrHBpv2YmwkhgZPSMsqOANwSgCb9bdryxZQw= X-Gm-Gg: AZFdTZdbglQlEWu7/v28nEiNz1ABMHf6LajnUx7FKxNWNFIteGkinWdYhlaagErcJR+ /U55rTKHSWxJkSCUucutlMW7XX3oJkm7JPvnoH1TgmXCzmUjMZnUdSLG+e2eFyIBkn1UHvPBZOK tXFEkobewdLzOzTeBSp3spJ4zg52eFxLq2TwNoJBNwkrBbDxb9gt0djOorXw7dD7U8uy9nSF2y3 fUZkCaNTSwXeUhPjk+t/6yjNao6VX2QMADtNvZ2zjWriPwNwVn8J/PQwzcIfSCt3V8KSHj8Swc8 apGji7ypeEW7824cF0Fjo12Y06JRhfUavFB7WEADKb/pqkPU+fI+ezI0X93p49robR9X2GVPwkj utGKqrtgbaLBDsBh6+hsN3FL9RGrXXZeB9Q2sQ1Crwk2CHbiY1IWt1tIkDNNUd8eR/C0jIIWoe3 GhMNjV+DhZp62WtoIKZmdhTzVgJon6IhKKEZg6LDcnBbx2Sq+8F9fA0l0CzZ4UvXe1Z+LHOCRJi OsnY6TIgIx8K+7PWooFTew7dj2wXLe89rhm1HA3ZCD00fAdx0xXq+Izv4L2n1wAP7c59EhFoJKu t2fFmuuyTyPOIzpbh4SCFzSrA50YaTZs7FhoGAZcMskZY0FOKh5Qfyya/skeMfJ/TqqBjlwU5YV QvCRFL/X6XagyniwLneIttl5oo9reJbP/Mwl3wVfLFU6aOyI= X-Received: by 2002:a05:7300:1c1b:b0:381:1926:dba3 with SMTP id 5a478bee46e88-38751e4fc8fmr2004285eec.0.1796396987168; Fri, 04 Dec 2026 07:09:47 -0800 (PST) Received: from [192.168.1.142] ([198.8.77.135]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3875207adecsm10006502eec.3.2026.12.04.07.09.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 04 Dec 2026 07:09:46 -0800 (PST) Message-ID: <0987f045-f31c-4866-b044-8305c7fbbe74@kernel.dk> Date: Fri, 4 Dec 2026 08:09:45 -0700 X-Mailing-List: linux-block@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: Jens Axboe Subject: Re: [PATCH] rnull: do not zero past the backing page To: Andreas Hindborg Cc: Vitaly Wool , Boqun Feng , Miguel Ojeda , Gary Guo , Bjorn Roy Baron , Benno Lossin , Alice Ryhl , Trevor Gross , Danilo Krummrich , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , Onur Ozkan , linux-block@vger.kernel.org, rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org References: <20261204104434.234417-1-vitaly.wool@konsulko.se> <87o6b15ehc.fsf@t14s.mail-host-address-is-not-set> Content-Language: en-US In-Reply-To: <87o6b15ehc.fsf@t14s.mail-host-address-is-not-set> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On Fri, Dec 4, 2026 at 7:04?AM Andreas Hindborg wrote: > > "Vitaly Wool" writes: > > > When a read hits a backing page that was never written, rnull fills the > > segment with zeroes up to the end of the segment's current page, which > > is a page of the bio, not of the backing store. If the read does not > > start at the beginning of the backing page, the zeroes run on into the > > next backing page, which may hold data, and the read returns zeroes for > > it. For instance, with 512 byte blocks, a direct read of 4K at sector 7 > > into a page aligned buffer, where only sector 8 was written, returns > > zeroes for sector 8. Fix this. > > > > Signed-off-by: Vitaly Wool > > Assisted-By: Claude Opus 5.5 > > This patch is targeting a downstream tree. > > It does not bother me that you send these to list, but it might be > confusing to others. Honestly it is just noise, and I'd say the same for any other out-of-tree driver/code. If it's not in the upstream kernel, it doesn't belong on the list, so please don't send it there. -- Jens Axboe