From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.176 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796396989; b=dkpqRNBDqfJ8/DstKncztRISW/AcXxkFZr7sw32R6qxqAJQte4wH5tn4bLaq21hbF8Bd 3GHodrXtk1DOLh8bKFK1fRjthyL3kJCmxeuE6YUm0YjLuksVexyltn4NdWxCYmnOiL26M BxEjRMqwAkCySEAT6XM7KtNPENprI3PRK47lH3lHykVH7eOJCKYZwd5QQ7Hgu4rTuoTtP IZRoChj9Lr0b9iAyRRbE6VDFM8KdfnNxRBPyxrUjtwutsGR7qEFhfiBN88d1acIhaQrV4 IsJbtMb+oV0p3yGNB4O5V2Gx7lGASAHYDmZgOPsKxpbQZ5eD9bl82IGziCTiL/iLZqw== 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=C2bezC9SI3VPjs1xTvbD6atDXfjDb5xevMmPam9/REB7AZqULF+YxWr2O22YDlOF63gp 8kR5JkCM9W5OzbBh3j4KwTfeWXe/8hd9pLaE1+uEi7YLtvBWIV/qdz1NU/mt1dmmXTB8M UMENonXDfrrSTbuR/WoCI4QvbbfK0EodRtm6N6oqravdJAxQclf7uSbx1A0fHoWiGliDD zECqNl+YbBh8of90T/JGOxE/iMZwaJ6CvzmYjBGrIPoqj1I3Q4Nd+Z7jWCKJTM7SSCfb1 Ib6SXCMVXRwXMjwhBcFQ74urWAw1u/bQpHQPQf4UblC1fLYta/JooFGv3Hk05y8vcRg== 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.176 Received: from mail-dy1-f176.google.com (mail-dy1-f176.google.com [74.125.82.176]) (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 926A8606A32D for ; Fri, 4 Dec 2026 15:09:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 926A8606A32D 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, unprotected) header.d=kernel.dk header.i=@kernel.dk header.a=rsa-sha256 header.s=google header.b=MYGFNdlT Received: by mail-dy1-f176.google.com with SMTP id 5a478bee46e88-386c71feeeaso1297375eec.0 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=MlX3jLEfdXSjsZv34xU0Qov5aygPR/Zfo2jGateq0tuJyuEgMy4rSNq0TaSbD0ygM0 XrFfqforhmOkH/cbZ3rhynqTeArGllYuMDrUDFGV8KSApPEeppNbw5zwRUZkX8GWn1JO V88szB2K5giPKrfu52clz+u/nrERWFltO6OmCT0ODmtGS5mTb6/ZVgrk5xWTBYFMIhoV MoKc/DxhdXNT4q58Gyoh3SmSCvsYKyqm3R/xU0OM0PQy7GCIRALyOOq61Yj6cNejY1FL TW5Pqlen1NWRwAxYYU5RjiRNZBHLMit7KRWumlWu2MdMgJEQx+PqdFfRMQN6OofSEEC0 y+TA== X-Forwarded-Encrypted: i=1; AL+hErEfcaRfVOLEEmdpWni94lx+1L1jfb2kVi9k6tLLJBxEljG9KMWpjXUK30epRsmJsGJU/QYqgpV39Ii8GlU=@vger.kernel.org X-Gm-Message-State: AB4q+uHn6gmJ9AJOAqY9HzeLtbD29RmORlaLFPQwDVY5JCP3VHVMTQdB C2SvBxUhxryGUMH9T88sYcP9Ms5GfPhXtT5ezkObaWuhzWOh4MucX4SeSQk9QRVkoeE= X-Gm-Gg: AZFdTZd/oT4KE9bhjF31SLbwgU9fCs5km9djeu5fzDqVtPWk0TeUkjozURmDQnlss6N /OYHflQRxMeZv5es8ub+Q9IcFcRLMYk0rUiOchG3L4DBQhv7g7UFxG1h0yqHlw9XNsNDaTf8evn 3rJfJKXWEObb9uhOoLtwtIVpXL9u3+mUX2A2aFAv7bbrdK3zGd1EF0mANWOlcKuPW0gpMxipiow cAWd25kMU2FRjQF61UTBVHQb/Lu75DvoM74PZynufY77Y2uoeVCu4UsSKk0QrTFGFss7RfRMCkz TWl/8O+Igbgx1MvlLqj+o+oBsahQH58fx2kAOJRDaU+zIXiUXJhelBr4xYPRMsulmTQB4mllsax R8aqZwAQYfauDUGvrNh3vEDf16p6qWES1IHBU2Da/5Jlp536IDM6fb/SxXWp/ESa9y9ztf37c+K f+N58IsgAH8smyief+XNr4tCytXbLIEObetTtkbnSmaJ6oKmcSqx5v2Qkj59P+Uotbvu0Jashp4 0I7Yu0PZ3qEgY1/O+PatZ+809z9C09RsTimGTrEMPDixMg4cZX6EDqfoOJp5PuSAWerOSCha64k vprb47wVgzHyT6cuDXqrG/re/X8Kce+YPfHvtGFn7oCzLI9t5rPYqapg2kPdh4nBD4uyA44Osog o3mFNY/6cWzdRsHynioHEz1m35F/7BHhj5UIgAwaDaXWgUxA= 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-kernel@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