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: 13535332 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26AC0C47422 for ; Mon, 29 Jan 2024 09:49:41 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 972DE6B007E; Mon, 29 Jan 2024 04:49:40 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 922C06B008C; Mon, 29 Jan 2024 04:49:40 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7EAE26B0092; Mon, 29 Jan 2024 04:49:40 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 617E76B007E for ; Mon, 29 Jan 2024 04:49:40 -0500 (EST) Received: from smtpin11.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 2BDF8A096B for ; Mon, 29 Jan 2024 09:49:40 +0000 (UTC) X-FDA: 81731876520.11.F280D76 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by imf17.hostedemail.com (Postfix) with ESMTP id 8DA2740011 for ; Mon, 29 Jan 2024 09:49:38 +0000 (UTC) Authentication-Results: imf17.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=VL4ervIU; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf17.hostedemail.com: domain of dhowells@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706521778; a=rsa-sha256; cv=none; b=cZET2TSuDsfmjCYZq9H5jKoh8RePcd1hYOkfzBqyD/jNRFuiah8OZxhwonD7Gi+VrJGzA+ hRz/R+6FDTj7i+g+1etyHdr9V/coPRzRu2fs68C4ZXUJFmqCNJsWzxAnN01Vd52n0K2ZO8 MbCL+KiglBNuSk9cP38iNH7ak5ws2nI= ARC-Authentication-Results: i=1; imf17.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=VL4ervIU; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf17.hostedemail.com: domain of dhowells@redhat.com designates 170.10.129.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706521778; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=OCIW9vJhBOYMefsIUqmT/GeymZeEusUcC32sI5mr9No=; b=DuBimKRL/RkHFdGYMcRWpRaSHlfX0McJAFWq3+JQCMuHuBQIq11Qh9/i/NMyRIIQ4kt/B6 9s/LYVmeEjKPlmozc26DbCW2TcSMEe6XtVENdg8gf/nDItxPG7YBTYuS8buzRx+4lz7vhJ DzVpIzF5HfPdnq947lmves+sVNJZjw0= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706521777; 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=VL4ervIU8ybIUqD+CHG3sOnbK8gFnFZgfpGYIDO6rvLWJyESnMy7bwk9tXcONqnbi1NQgi OKKEiSxecRnJvrwsSFF9syz2rkWcTHVZwTgyfjdQ5rABi4zbWaExLXx/fbOtqEvHSOTOGO L2AAr9pnyOyVNw7Y80+U0z3tNIyLNy0= 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> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7 X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 8DA2740011 X-Stat-Signature: wkpx15objw4dqw7uwdi8tyifuuejkbk8 X-HE-Tag: 1706521778-447507 X-HE-Meta: U2FsdGVkX1//jt4Q7SZ1wVEauiKtiM0ttfPNg+TyyG6DYE2jr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qYBX3lAEmvUPeiAy8mZTATMGYgF35phEAZX+DwqY1GaLPTZPX3V1cpQ8uu7r/p/rsdUqCqnbgGg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: 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(-)