Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp356728rdb; Thu, 22 Feb 2024 06:05:03 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWgptXMOmpN+gh55hRM2MgAYLBM/52bxlsafmLqZkbQqZxmnQAs/BUJhLMThq8O6COfC0KvOPAapwesFhddIeoIzz86xGLuNR9UDww1kA== X-Google-Smtp-Source: AGHT+IG9UxuvskSMo4GcXzEyV6NMGefv4SeFcwkvZP0s59J4fclVS5HkgDBBrGc3v1ARZdUPCFfJ X-Received: by 2002:a17:906:d212:b0:a3d:af58:5f99 with SMTP id w18-20020a170906d21200b00a3daf585f99mr13660985ejz.21.1708610703368; Thu, 22 Feb 2024 06:05:03 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708610703; cv=pass; d=google.com; s=arc-20160816; b=iseRk657pY3jq6PT0g/N6hkWqE6PvudCUdPUsa/1uWwbvUNtNTQHTkiiQ1K6gYto0k XYFypkPItkfgXe9FKdLnJVt7rTBKaHyYU7UZtS0pJ+fOG71EanDYV5d9vGwTvZ/m64hG hCTezbiw+SSW3ALSt/Enl1yn53JFQS8oWDAc/TFWWER/4HxRuuhkTgn8yGl9qYmtM12f vbbCE8PJX6Z91pbP8NRae0ZXclsLzY2nqa8fT1u8kq1Ypu9nzQtyC2zuz71BgoYxb7fx 5dLOdDUZSTJMonN1PZ3f495zFMb9LtUFQ2NkdtmX6ML9EsrfHKei9PVO/R7VEANMwDke wdRg== 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=HaFkCujL4XIv+IRXAGDRA6n4Eoy1Gc7bW4S0ifJ9yKA=; fh=qDZ+YnS9HJbCVOaeWFr2FnYZt7eE+vt5IJIDIlhBdxU=; b=b6+V6zvbNTaX5+SSE83Ts/t2yE+cjO6T13spp3PooNlEMcSa9w/jN+3L6jgLyoeyL3 OXW2PaYY21v7FBM9LIE0J8JxLFblzucuAieBmqPuJ/yxA9OuhJSdb54shyWHpOl8nB2/ ktDKFPnYBhJb65DFqt5H/bif0Tz6QFzHk2AMC4FeOQnRPv/EO8CXwdJpyiw+qlB1dq4l CFeyLKqpS2so/evogHVirPVe7pcMtCAK59IzZ7WfS8K5G9j8uXWuS6Eb/9x4h4SaN5f5 IveRh7IW7YWhMO5c6jlvdJkMM5mV1FdW3NJJMpXshm1mcj9wgxeIrtKrkaGY+BqwXCsu R8PQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TySaKi8K; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76660-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id qf34-20020a1709077f2200b00a3f86619f10si563482ejc.552.2024.02.22.06.05.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 06:05:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-76660-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=@kernel.org header.s=k20201202 header.b=TySaKi8K; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-76660-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-76660-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 E19BE1F28970 for ; Thu, 22 Feb 2024 14:05:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DCB6214691F; Thu, 22 Feb 2024 14:04:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="TySaKi8K" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0E7791468FA; Thu, 22 Feb 2024 14:04:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708610683; cv=none; b=kNDPFcZHzW7zvdiGnWZtT0qNrO4gf2WcZ06z75KpZAqihFWH4qLeEeZxh/Xii1k2vBDgEuKuhhcJ4FoGtJWtcFgCT3/dSqeGeMoa6HX2FHI5jXJ5Jp9iKD/2P3NMtDDkwJYAFuDhXD2bRc5MAI2wxYZvMBt7WNizMtAVWibrd9Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708610683; c=relaxed/simple; bh=1D90OTPu4zbi0aXCq6zV1eVFGZJcyQxAFGiZtTpgXYs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=h5/x/6+YZGkaD+tjdZqKn/I72RxB0k3fjN8tbejAuGtP7NnWB5Yt5mOtGNeNZe3f5BsE/AD52OpdA8wOC8SvB5GmzQGuq177ZpgPOPZdTFkB8FLiSG9rtTPaKo8UIY4C0l4utPfgNHKbEP8VjN5AOMRRxWTTTX9zG4Tua2jlQHE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=TySaKi8K; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55D5EC433F1; Thu, 22 Feb 2024 14:04:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708610682; bh=1D90OTPu4zbi0aXCq6zV1eVFGZJcyQxAFGiZtTpgXYs=; h=From:To:Cc:Subject:Date:From; b=TySaKi8Kg28e8vkLld/dJCh4yGaJgQVGxFP4nqUT+y7Zb9s63P4GIyQD/epU9A35u FV7tzwLO0xRmcZ5j3PVgxp+Dm08eGrWwwL861ER+W8RjPhD66rH9sQRtS6J3hXqEjH V3zYjMqzpOq7qe+Z0SCL/DwlNTEVveIZaAqe0aFQEmLck5y8tw+8mS7GdYHztT7xu6 LbXmezJ/S+kmUzJ9DLQROvG10ujGBh5SHasl2sa48EbsQCjZbooUA7Maxh0jEdDUhP U09TeCKWsVablS1xDY6f6dRFfQDFPtrJGcMT1lyF7g+HukuWvw540pQ53Yw66CO72O iuXd0IqFTDHpw== From: Christian Brauner To: Linus Torvalds Cc: Christian Brauner , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] vfs fixes Date: Thu, 22 Feb 2024 15:03:24 +0100 Message-ID: <20240222-vfs-fixes-90812d8f4995@brauner> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2746; i=brauner@kernel.org; h=from:subject:message-id; bh=1D90OTPu4zbi0aXCq6zV1eVFGZJcyQxAFGiZtTpgXYs=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaReD8mNrY28LOPLa3dge91vu/STNyecELUvqPb9Xfbjn 1rARsnUjlIWBjEuBlkxRRaHdpNwueU8FZuNMjVg5rAygQxh4OIUgIlo6DIyvNisovBbffHLd7ZH 958+mp2UKhP0I/v8R3HmXcwLb2yM0GT4p5HnryZTqMBdI3wp6Uvhr9Yn06snxRyJ0PwonB6tOlm MBwA= X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 Content-Transfer-Encoding: 8bit Hey Linus, /* Summary */ This contains a few fixes: * Fix a memory leak in cachefiles. * Restrict aio cancellations to I/O submitted through the aio interfaces as this is otherwise causing issues for I/O submitted via io_uring. * Increase buffer for afs volume status to avoid overflow. * Fix a missing zero-length check in unbuffered writes in the netfs library. If generic_write_checks() returns zero make netfs_unbuffered_write_iter() return right away. * Prevent a leak in i_dio_count caused by netfs_begin_read() operaing pas i_size. It will return early and leave i_dio_count incremented. * Account for ipv4 addresses as well ass ipv6 addresses when processing incoming callbacks in afs. /* Testing */ clang: Debian clang version 16.0.6 (19) gcc: (Debian 13.2.0-7) 13.2.0 All patches are based on v6.8-rc2 and have been sitting in linux-next. No build failures or warnings were observed. /* Conflicts */ At the time of creating this PR no merge conflicts were reported from linux-next and no merge conflicts showed up doing a test-merge with current mainline. The following changes since commit 41bccc98fb7931d63d03f326a746ac4d429c1dd3: Linux 6.8-rc2 (2024-01-28 17:01:12 -0800) are available in the Git repository at: git@gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs tags/vfs-6.8-rc6.fixes for you to fetch changes up to b820de741ae48ccf50dd95e297889c286ff4f760: fs/aio: Restrict kiocb_set_cancel_fn() to I/O submitted via libaio (2024-02-21 16:31:49 +0100) Please consider pulling these changes from the signed vfs-6.8-rc6.fixes tag. Thanks! Christian ---------------------------------------------------------------- vfs-6.8-rc6.fixes ---------------------------------------------------------------- Baokun Li (1): cachefiles: fix memory leak in cachefiles_add_cache() Bart Van Assche (1): fs/aio: Restrict kiocb_set_cancel_fn() to I/O submitted via libaio Daniil Dulov (1): afs: Increase buffer size in afs_update_volume_status() David Howells (1): netfs: Fix missing zero-length check in unbuffered write Marc Dionne (2): netfs: Fix i_dio_count leak on DIO read past i_size afs: Fix ignored callbacks over ipv4 fs/afs/internal.h | 6 ++---- fs/afs/main.c | 3 +-- fs/afs/server.c | 14 +++++--------- fs/afs/volume.c | 4 ++-- fs/aio.c | 9 ++++++++- fs/cachefiles/cache.c | 2 ++ fs/cachefiles/daemon.c | 1 + fs/netfs/buffered_write.c | 3 +++ fs/netfs/direct_write.c | 5 ++++- fs/netfs/io.c | 2 ++ include/linux/fs.h | 2 ++ 11 files changed, 32 insertions(+), 19 deletions(-)