From patchwork Mon Jan 29 09:49:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Howells X-Patchwork-Id: 768112 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 A30A35644C for ; Mon, 29 Jan 2024 09:49:32 +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=1706521774; cv=none; b=DE5sLvfrERib3dsfZgOJ7/k2W/d1dwJRHllVHU0MxmUr8l7SiEoi7NKi7V5awwG5kO9WAYHvkcfxU9ZXO2DVUbaU0FRfuswBIcjQkZn1XpsWdYFIHcQIetIlK58xXAb3uIKPsDH4KrSgvfni4G8PqVZKqE2uwqZNWJoYeeny2W8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706521774; c=relaxed/simple; bh=9fwTsy09+zhtJYD5oZvv7jgCqz036BRm5TDsLVRnhYU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=lMEkvgakWRb36jC3YVDTKYucv7nzq0wVpYZ/INerb4da092qFbWv0LumCp2pWzJO8EJiKR7C8htslwJcc2UAgNVO3CJzAeal9JLxFMXyZaAtAGGOyMP381eKSwd+IjGRMHz7I2UPB56Y5kb+NU9b+m3NefgL8Gm8DKdYS95mVxw= 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=JQ7ODDqy; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="JQ7ODDqy" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706521771; 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=JQ7ODDqykGwrLEkMW1wdv6BYEKgDwR6uDoNrdC+AlYHWHTPkF8VZ6hcOj8DSDvoVd7p3yA v/Fi7RveH1Q/SC/psXSOK1m7SHcjOUSgcXHoClpdIBZkqDqjzz2FT/P8UAAnecxRZT+sL2 FXykSEWkjZtN0QLVsO7/Ec3spewPZkk= 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: ceph-devel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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(-)