Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp278737rdb; Mon, 29 Jan 2024 01:50:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IEqgC06vMwmf6xWNUIfN2F80k9RvjCQengMrTjvuGAu3zF6/xqE6pmZAbhQ7UXHypmYRX7Q X-Received: by 2002:a05:6402:17ce:b0:55f:1ae8:2f1d with SMTP id s14-20020a05640217ce00b0055f1ae82f1dmr372753edy.11.1706521807833; Mon, 29 Jan 2024 01:50:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706521807; cv=pass; d=google.com; s=arc-20160816; b=EmbLNSxQUWg0dEM72kasggu+Z8HW6BlydipBHM4A2xGBLj7/CFjjQramFERud+8FwE 3pcxfs3dzduNsiHbrvbEG5EhNZ252XWBOdEn/0wg0lFZXIlUQRuCje41kd7ZiWB3LY3q yIqv35ds+6pMum2080eTsHFoolrPbwgG9v6vwlcMrWRTN9oBYtf3Gx241etPOI1hDqAl jCQ4e0Mt1tnoemmBhbi3mgWRRvplg162K9oicWB9GeiUjI3zCcg6jF1xh6j0czBsje6E XzQkfg1zuqNH1HNyS655GhOg9DefvrAFkFJQ+GvD+oE7ZK8/7kNhSmNgMfLc33tbUYXM xjGg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=OCIW9vJhBOYMefsIUqmT/GeymZeEusUcC32sI5mr9No=; fh=PFFBOvyI4CEJhOR38zHbNV3cYj36Z8aVVGNdZ9U1+rU=; b=PDL+p4Mzzfjm/tMbw6Cim8CiDIH+0fByKtnH1LTwnHBqKWao36RsZ7EaoBlbjuzi49 46e4kansTS7U4TM7+Dk6ESz2HNPij9Fc5+vRRXfR7iant0MApRvTaPwV8Zrxr8HGEL5+ ZDXO/Zt+VzbWSdpoIoi5btuAWAySed6vZDIQiVmv3+jShFXfqn5P7y1+AiBAdP7iejjM ceO6WhXfktzY9dshSEhDnQWAFXeyUOhkVJwg6hx9izcYhmnVSZuheh1qjCqAEH1pW8dU 4Ob06M9Bj+V2nxMFz76aWZZqzXITgQLNzRr7HNJHq+cgKZyaiwiLizNFH/9TOA5BUPRX ondw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ElH86OJz; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-42490-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42490-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z11-20020a05640240cb00b0055efd5f1dbasi867551edb.370.2024.01.29.01.50.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 01:50:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-42490-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ElH86OJz; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-42490-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-42490-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 94C531F226C8 for ; Mon, 29 Jan 2024 09:50:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 73A965647A; Mon, 29 Jan 2024 09:49:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ElH86OJz" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3FAD156454 for ; Mon, 29 Jan 2024 09:49:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706521776; cv=none; b=WDV9urKzFCsi5DET0vf+cwrUUvT8gqMbZcOs7iT/2nlQ8N/odNRx9z+kjVs3Ir34jIb17uhul5g5w9B0MAgpYrdDZkIexL3y6edx190d6toDTq/ga9N1xdsE2ETEXejJcCPXteYx4yb6rwOPjaDq+8TRNv1/b02JNRR8b3lOwSo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706521776; c=relaxed/simple; bh=9fwTsy09+zhtJYD5oZvv7jgCqz036BRm5TDsLVRnhYU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=p1mvAzNVbtz5nM/RrOfs2dWXanNV/1GD7Vcjb5wmnq8lvSMAOR8TKQbu9e+RRYBWCfu6AfmrP2ebjh5rI+ufvZbZuQxLkHFDsEeZYtyxZ5e5HzWgionKVayd1EU97jFMu8bRkb4s87uf8zWrMdugg3zbfKz9mnDRAycqgoJb4Bg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ElH86OJz; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706521773; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=OCIW9vJhBOYMefsIUqmT/GeymZeEusUcC32sI5mr9No=; b=ElH86OJzWzP6d+U32u+K/ywkO34AbhsJ3SD1b2nAODOJYWSEXnosRJmD628dD2hSZ/20ve 3DFQ8WsZGKNOLLFYBq56pPTgtjD9RIEZ8Sx90V+0iO6OFifYSOMyGW7Iuz9csBZcXhMMwl NN+xH1kvPXCk7Yx6Eqi2aDuNS9YUSh8= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-515-_Qr3tQcfP8S6khmn53WbBQ-1; Mon, 29 Jan 2024 04:49:29 -0500 X-MC-Unique: _Qr3tQcfP8S6khmn53WbBQ-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AEBED811E81; Mon, 29 Jan 2024 09:49:28 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.245]) by smtp.corp.redhat.com (Postfix) with ESMTP id 844B91C060AF; Mon, 29 Jan 2024 09:49:26 +0000 (UTC) From: David Howells To: Christian Brauner Cc: David Howells , Eric Van Hensbergen , Dominique Martinet , Jeff Layton , Matthew Wilcox , netfs@lists.linux.dev, linux-afs@lists.infradead.org, linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, ceph-devel@vger.kernel.org, v9fs@lists.linux.dev, linux-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] netfs: Miscellaneous fixes Date: Mon, 29 Jan 2024 09:49:17 +0000 Message-ID: <20240129094924.1221977-1-dhowells@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 Hi Christian, Here are a couple of fixes for netfslib: (1) Fix an i_dio_count leak on a DIO read starting beyond EOF. (2) Fix a missing zero-length check in an unbuffered write causing 9p to indicate EIO. The patches can also be found here: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=netfs-fixes Thanks, David David Howells (1): netfs: Fix missing zero-length check in unbuffered write Marc Dionne (1): netfs: Fix i_dio_count leak on DIO read past i_size fs/netfs/buffered_write.c | 3 +++ fs/netfs/direct_write.c | 5 ++++- fs/netfs/io.c | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-)