From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 5AA7922301 for ; Sat, 27 Jun 2026 08:19:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782548349; cv=none; b=nFqhi1tEugeL80ZouxopTjBCm7x3cnc5JQ1lzPr0eH3h49jHi8JaYfK6u/1U65d+R3wtEjVks24jyLMW83rmZc/koEEpm0XSSBdfWrHOzvfu7DfcUejhDYgXgDhl39m8iVqBzfMW/KunPkmCWZjW1DEvU/m/I10+tDYu3l8QoYk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782548349; c=relaxed/simple; bh=xsKxTr/2au1wYIsIDpaf8jz2EHlc+KCpxJ3fXpzl66Q=; h=MIME-Version:Content-Type:Subject:From:To:Cc:In-Reply-To: References:Date:Message-Id; b=IAX4h3o7lS48CXJjLUczn1zM8foVezX9aD7R45MI7tQ8baqbqen+jGSCZEY487fmjidHCzgcdekAcO5E4C3n6upuYUJ4fN5gKt0FMV9oj3JhUhLv6kBWPRiyoiQqT0oqFMin8MEsy3zUfN4P7CXh40MNYamtm0LVJDYvFCIo/Fo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=H/qtVLwe; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="H/qtVLwe" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E404F1F000E9; Sat, 27 Jun 2026 08:19:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1782548347; bh=F6yvcAh2bJ8NdCdk0A9b3/sGLFVIdQHFN8lm74CeDSQ=; h=Subject:From:To:Cc:In-Reply-To:References:Date; b=H/qtVLwewfmNI7pYK88SnnQveWdSSgFpt2KJJZXL8j+Y+vMuDrhJqSrIU1fBlQ5JM uZD3VDPp1H5BB3Iqj8EeplKi1zf9vllak71ObOMuCfbHJ9mHLDZfcCcifX7Xa78xpN rnyD8dezmep1GeSjpt3glCPirRMqNfsL1E9EUCt+5+e/FaFaZm8O2fTJ3r+RyApAHH qGAc/8W5KBDcMgnk4AxqG7AguiPpy9qwubFu39ghFyN/T194BX3nxzn0AgAr06CmjI geSCZE6m55CZyaerkrjYFXr8KGzvn+aotcTtmeWytDfDLPiLJEWQs+yJExWQCSCUx5 vXx2FlR28c83w== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Subject: Re: [PATCH v4 0/6] seccomp: non-cooperative pinned-memfd argument redirect From: Mike Rapoport To: Cong Wang Cc: Andy Lutomirski , Kees Cook , linux-kernel@vger.kernel.org, Will Drewry , Christian Brauner , Andrew Morton , linux-mm@kvack.org In-Reply-To: <20260627012219.1079851-1-xiyou.wangcong@gmail.com> References: <20260627012219.1079851-1-xiyou.wangcong@gmail.com> Date: Sat, 27 Jun 2026 11:19:03 +0300 Message-Id: <178254834314.5812.2094612523351837049.b4-reply@b4> X-Mailer: b4 0.15.2 On 2026-06-26 18:22 -0700, Cong Wang wrote: > The seccomp user-notification SECCOMP_USER_NOTIF_FLAG_CONTINUE response > carries an inherent TOCTOU: once the supervisor decides to let a syscall > continue, the target (or a CLONE_VM peer) can rewrite the memory behind a > pointer argument before the kernel reads it. This is documented in the > UAPI header and is why the notifier "cannot be used to implement a > security policy" today. > > --- > Cong Wang (6): > mm: add __do_mmap() and vm_mmap_seal_remote() > seccomp: introduce SECCOMP_IOCTL_NOTIF_PIN_INSTALL > seccomp: add kernel-installed pinned-memfd redirect > seccomp: re-validate a redirected syscall against outer filters > selftests/seccomp: cover non-cooperative pinned-memfd install > docs/seccomp: document pinned-memfd redirect ioctls This breaks VMA tests: https://github.com/linux-mm/linux-mm/actions/runs/28274564619/job/83778604364