From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.180 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796396989; b=XfoOAqolfbfYTbEraSb2f847uN6wdmjuj8s/TYjvmqo7RKXjMZTRMqSwG/N/h6CscDRB zyj0NK4gqmkid98R5JS0CQ/6Miha7lmSfyfsgg4o1oxvxAeASTwV4++TQ+dnxcLlDTYRW le9azAPfJLFMyC5czIwVo1PxSSm26m/xxlvx7lFWgjukax8Z8aozG4eBfJ2RTJsJlYDOR Xh2xX08FYVUfeSnvIkeDn2DBGNWlOkqCBYBkAFxZcYxnQq7+8hWV7eku1KHBUm/Di3Hub 1Bqa3YGQ9Pv15DWFgN2NNLPwn8PCBfvTrLwjPB5M7mKxwbo0Bl3oyXXjioqycuTXw8w== 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=YsD8wRkvLrSXuLUirr3EGfXxiCNI6MWLJcI0lt6b06/wOBujSweEdNfbP9b/E08YxnGw kEVupvSC9IXTPcY+ipx+Cnd946o9Po5gRnZTHw1N3es1GcpTHDOcLvFt4sxrFwq8HsQ8i tXUaFT3CuywciPkMN4EJ/LvLY25VBqOh7Tysmm5IyJhJDy4H1IwvuInsiEmul8LuS8I0z Du5c/ZvD6BnSH3rMJRn0JsfztyamfyxAEkmFswaKxx7zjXV9VcignGwIz1fBfd6y0PmhN 29SB2rckIqCFbIQ1/xo+ToPnEnizgDRgM2qEirAQZNI7zbwfGpRr81W9YRK6jRbbPDg== 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.180 Received: from mail-dy1-f180.google.com (mail-dy1-f180.google.com [74.125.82.180]) (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 9322C606A32F for ; Fri, 4 Dec 2026 15:09:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9322C606A32F 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-f180.google.com with SMTP id 5a478bee46e88-38431138772so1450033eec.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=tpZMPsQ9Oz+0CZ7pWCWA9Dobc9DzQIctR6gRK2ACDieCLgz8ZBr4stIEoaRDqiK2Vr KwmBOsSI/qj3fpW5ILlekWqXvvTMH7G/OyRrAt172+Of5zmrUQ7koMkTOJxnPc4KSaTq RonEVap+l6AkYjZ1JBt+l3WqY2BiYqkdjBaJ2GFEssVbUvhlPDiZZjVbkgJrM8VxYRxO KNh5K9r+Uu4uPHspdkBMHBJ/O/soH580TR8Tey9VGPClH5zLMB/SyuAvAKV5sa9msD+i U0HMFtMvws8C6BuwnOc/LU3uvhpHad6b6CTr1yBJjj077mVEgkhk3eV+kiZf+v1/H0/Q TP2w== X-Forwarded-Encrypted: i=1; AL+hErGG/rBAMKB/aov6wioU7SkWWHce30UKr8Zpb1Yd+MnxHKY+0M4BWb2H9xAekn+jtmzr/J8XbOlUhOOGTf6bAA==@vger.kernel.org X-Gm-Message-State: AB4q+uEVRTTXxNESZcnuFAMC5YxU/YARzH8kTenVFiUBB6Sbw6CFzA3s s5YUpswx9c7QyMfPgO92rzSPo03x7XbHqLukcNH6RAksIhW0Fa8DaeO7gCmvJu/ULOA= X-Gm-Gg: AZFdTZdpO27NGlZcJv9CoJ2rb2lj+Iy5D7vopDBmmDtLEH1PoLT7k+LYyhRJftxbyHX U+t+Rg1aBGPVABgf2gAhmeJrLizyvJReXPWYn7+V18hYscZqY9ZF3BtXFg72xL+cf+PFBKjkzUh iYmpRD/5wYym5BzDUrks67p8JJJyhCMDJ4AMQK205Nc4zvpMPyRm5liPaots6bIq9mQNhe1dzAN qhTqMYkb8ZqmAB/c/psXzJ7wZLU3dgS0K4k+a/mxXvhwxScmeIIEwtrOs73DRbNkjYBcXizZhnt 7dGmipLDGQBWUbO4iAISTSxhdsVTP1YI5f/eWQiayqkiVoVr7IFDQpddUtpY0O/2EV/e+NVorGn qMj16bbCLCPOGO/G3nY35iBNWxitUnSX0LZ1/t0uNPT1t9yCHWtNi2ooTbUYs5bSYTE0wAdyM9R jKDB/iJfxwrND1gSlFyY0PYXY0xJfdLL3/3YsXRCemm6T3u9YZClRtQ39HcVk67ojEhK14AfdyQ nkxlJse2Gy6q/Wr6+gs2n8Q/XaHAwBKCCu1e57fzT1MoLJJMd6cVGaTrznBGcUr4gx8TbjBaNQ0 q5fDzFrWBQgQRfD89Rn53uAT1OIxIYVev17milSBKD0gPYtWAXy8wHd10hDuN0C0GL6SQAmNQdm 1mCn+x0llNRpAygV7QFIQhn3gIRm/SmfcBIKXzsOFW+Sz5W8= 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: rust-for-linux@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