Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp1152717lqs; Wed, 6 Mar 2024 07:45:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUHLAgCgzEqSaBVCpbWhN7XKFOmBMwjkKQfS6svGHBQK7IkimaNjQpOAdRdbUEjjsFrGlcnnXfo2V1SUkLEcdcFKwyHSPmQkgac0S+zUg== X-Google-Smtp-Source: AGHT+IGUBB/3XUlW6Hwp0zM5jDYG1OHeYnZOKA4kg0GASgCwAIgEnYp3o+/Y7RgynDSHtR5UaQtD X-Received: by 2002:aa7:d44a:0:b0:567:6447:1900 with SMTP id q10-20020aa7d44a000000b0056764471900mr5634055edr.17.1709739952513; Wed, 06 Mar 2024 07:45:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709739952; cv=pass; d=google.com; s=arc-20160816; b=nddKwv1WT/iIWO2325cQBhkClWaCy4SSzoE5LqT1E/5nx9URikzVXQeOga5SCz1u4C 8ATWd6u6nXnRidfb1e0U2f3hkRd32+wWLfhxoL8LHVkS/OwSiawJ3AT/LvCbRclpB207 l7Npv/WGs3cooIuWW93jWzZodtTkzpwmyn2935IO/kiIbteiERauf0I+qteCOc+//aD/ +exxAsKwLVcYUuHqVfx/Uoh54TYoKZOuF/pUqiRDrG48ZRJZYeiQOB25v06y7CbU8GtI LlsaqYKTANoxJ7Lj61nLF0qZsyKp6Tg1UvbG62uv33ErtCUMobUyGkNpAFNMFx8AvNaA UweQ== 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=HDVPgfCswnc3EPDSAZ8RmQ8+ceLUpQ+yaZcrVQ0rVbI=; fh=qDZ+YnS9HJbCVOaeWFr2FnYZt7eE+vt5IJIDIlhBdxU=; b=x8jV8vxPkHuibZdmQd6jmORnRcw81D2hEWeuX3rt2iYDDN3e0/UvJhUTTNO3oWo3cI kXZEB02QtSYrLcun/V6L3sQAuvPz9Fs7wghT2SgM02SGWMJTpWozjgNBeCS1mwgXib2q SGiYpZvKiol8JQ3rRvPSPeZ8ZHly2CZywvHAzGDjDhutK1lzPKIsrBJPDBGj0+1YzlUT lmC84bIMysTnRDlhvm3gOiMM4g6BWjVi2ZPGrWmt6VdKDZ6qJsHvuVnV6WZnLLDDHGZ2 eVLUyXUR1JC9Cb8MxSPS7fLJwTmj60QvsvQhnuRa3y5s0WOaA9opC0Gsy5WxwSZMAtk+ it/w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LSwGhMyu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94188-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94188-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. [147.75.80.249]) by mx.google.com with ESMTPS id ay1-20020a056402202100b00566cd516dfasi5175627edb.422.2024.03.06.07.45.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 07:45:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94188-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LSwGhMyu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-94188-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94188-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 2A1B31F2A7F5 for ; Wed, 6 Mar 2024 15:45:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5D3CD135415; Wed, 6 Mar 2024 15:45:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LSwGhMyu" 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 82264133402; Wed, 6 Mar 2024 15:45: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=1709739942; cv=none; b=pJbtD6iKC9netI0AiwomCSVBHbzamEUfGH5rUgWDM5fGkPeUfgIrsTrzihDIkaHkjTR2Z7ixsERPLmk314GuxMB1N2LkR+x43Gd9JlXpZ8d86ghWQcrKye5yqFrMheCus5fdD24Hls5OlRJOVrqb3VXLHTF2OYaPry01elrT6dU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709739942; c=relaxed/simple; bh=Ftuq41PzbFHr/8KgHVscUxW7Bf3SXW0yTv1U4T5F8Lc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=s1YPUFRLroLTiaaTb3ZqYwC8QULFH5d3tEXkoDYNO0bTcfr/cuEdZdssMwIH4rZZgezVLYISf0LhkEuk7Qwoy43fzJosyVumbX86f8mPUHS4URd3ccFHVZrG3CN1cmWc87o8q1K31wJjIPIGabiWeNHu9OzZqqbuCP/fPGbdhOs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LSwGhMyu; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A8E5C433F1; Wed, 6 Mar 2024 15:45:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1709739942; bh=Ftuq41PzbFHr/8KgHVscUxW7Bf3SXW0yTv1U4T5F8Lc=; h=From:To:Cc:Subject:Date:From; b=LSwGhMyuGlrSgm3hK1t7CzWTJyisrR6O09rIZ8Dz2XqjLUwkZxgu7Ey1vVQ4VYOGf Im0lH7cm99nBZdv9Prt/yBCrADQqOmGP97tlzIP3uTQH8bgRDXW23J0VBSWksya3lm Jv+lpfvRu9EicDekBTPQg4nAjnrfpOKSeP/tqBzo9l/kT4kM4xPiatEWQjZ5AHpWqk sFaujhhodSWHpWuhVFpLZ2pOvEP0tRBn6OSniJyF8mLhWrcYHenrgCnEdShm0++Ckq jp0ERfB0uKnAC6JtDZsLxK3VGBT6XBRd4IMYnS1eVYLINPUJhu/5n2v/CK34XjNyWu hYVB5efQNH9dw== 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: Wed, 6 Mar 2024 16:45:13 +0100 Message-ID: <20240306-vfs-fixes-e08261f0e45a@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=2299; i=brauner@kernel.org; h=from:subject:message-id; bh=Ftuq41PzbFHr/8KgHVscUxW7Bf3SXW0yTv1U4T5F8Lc=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaS+6J91z92u54m55lyrCVFmfVqvPA6wJH866/3N75HTN 9fOxKv/O0pZGMS4GGTFFFkc2k3C5ZbzVGw2ytSAmcPKBDKEgYtTACbi1svw30+BYXnQff9ffVtX HOb42jIl29il5kjz94jSf9O4Hx92bGT4Z8XpwvxWpW/SF7b/Oy7o8Ozcmbn7/1LDW/cOe12IfbE +kRMA X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 Content-Transfer-Encoding: 8bit Hey Linus, /* Summary */ This contains three fixes: * Get rid of copy_mc flag in iov_iter which really only makes sense for the core dumping code so move it out of the generic iov iter code and make it coredump's problem. See the detailed commit description. * Revert fs/aio: Make io_cancel() generate completions again The initial fix here was predicated on the assumption that calling ki_cancel() didn't complete aio requests. However, that turned out to be wrong since the two drivers that actually make use of this set a cancellation function that performs the cancellation correctly. So revert this change. * Ensure that the test for IOCB_AIO_RW always happens before the read from ki_ctx. /* 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-rc7 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 90d35da658da8cff0d4ecbb5113f5fac9d00eb72: Linux 6.8-rc7 (2024-03-03 13:02:52 -0800) are available in the Git repository at: git@gitolite.kernel.org:pub/scm/linux/kernel/git/vfs/vfs tags/vfs-6.8-release.fixes for you to fetch changes up to a50026bdb867c8caf9d29e18f9fe9e1390312619: iov_iter: get rid of 'copy_mc' flag (2024-03-06 10:52:12 +0100) Please consider pulling these changes from the signed vfs-6.8-release.fixes tag. Thanks! Christian ---------------------------------------------------------------- vfs-6.8-release.fixes ---------------------------------------------------------------- Bart Van Assche (2): Revert "fs/aio: Make io_cancel() generate completions again" fs/aio: Check IOCB_AIO_RW before the struct aio_kiocb conversion Linus Torvalds (1): iov_iter: get rid of 'copy_mc' flag fs/aio.c | 35 ++++++++++++++++++++++------------- fs/coredump.c | 45 ++++++++++++++++++++++++++++++++++++++++++--- include/linux/uio.h | 16 ---------------- lib/iov_iter.c | 23 ----------------------- 4 files changed, 64 insertions(+), 55 deletions(-)