Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp749488lqb; Fri, 24 May 2024 11:57:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJHScCs0YU6WmAMp6B3AQEIRk0n2xr/o4Ny8CO7R8teh1uIxz3qF9dFhyrpog1UkFaVM7NtOtjpst2EZcTV0CSdfiprQ7pLr9gWhBepw== X-Google-Smtp-Source: AGHT+IEUGcHveHHXVedE6vW4ZOi0EWuXNxvBNSGqQKgEc7T6BZf62D4iFM87UZ3OMtkL0WXKtF1U X-Received: by 2002:a17:906:8443:b0:a61:7f85:e31c with SMTP id a640c23a62f3a-a6261f91a42mr242352566b.12.1716577066788; Fri, 24 May 2024 11:57:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716577066; cv=pass; d=google.com; s=arc-20160816; b=Rg9lK2xn8Nf04j734L3eKRq/q0aihaKapa6FFbn301Wgkr3sUaB3BXgUc6wJUu9gWX NXBEV1IN/4IsQ+F8yyrBYvGoH2jB6O4Mk/3rlXMa2k50l+nNTjUGqolfKCRk9ABMCwln rlpgTPDnPmZ3+i6+QPstZYfCC3UCsbUeGDX/LKtX1HhzZ/qJHW3PySDr2LJLdDnmjwqU QDigaQO4bFNhqzLOLJ7zpD8uIqvyzVpfBHMv7C7nFExKogVtuQhic59EXdIzp7F1JyYs lsj3mhtoOepk6q+wUVUbc1JhG6NhVKSlia74sJQ/1RqYY3UQJGjKKxnTWnhih6zGLAER A6SA== 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:subject:cc:to:from :date:dkim-signature; bh=liaK1OiDGAXw9/VMcno07QXmLmnwmQwbO+mOGxsJhNk=; fh=cB2qzcCQjiKdJyGieofKCaYg6v/1hfx5Vh2NqbIiskc=; b=oL0ZzTvfy8AtRUBOyA3Z7WsVlkhDZCtVDwCzYUw9b90i7hTQ5NhkYCKfYWaKKK8M7j 7XJR1nTPbShrLJq5VGnqfor8IeDwTzLNGFwjh7lM+MeB1tSkymeTOh7xeiQqSO5GBjjH GGhio/Z0fI2OgxIProOBrUPP9wrOg2WqnvBEj3XVMnArG/RkEVboo6p6+Ayx3kqsNRQU t5GW5CYB4Tu0Q2NO7f5UiPUSoeas1AQSQL6CEMVqR4/m5y2nsz6YvMsL+WxLdq11tJ8J qpYm11d9XCG+PcRKluiXnux1z+VEV0XcsVmB1qscQLzkoNOIphc7eX5K3A/Sb598Ex6X c95g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=v0ZDJDFo; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-189030-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189030-linux.lists.archive=gmail.com@vger.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 a640c23a62f3a-a626cc36e29si113575366b.435.2024.05.24.11.57.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 11:57:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189030-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=@linux-foundation.org header.s=korg header.b=v0ZDJDFo; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-189030-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189030-linux.lists.archive=gmail.com@vger.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 9CD871F24B07 for ; Fri, 24 May 2024 18:51:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 968F64085D; Fri, 24 May 2024 18:51:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="v0ZDJDFo" 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 8A6E73EA64; Fri, 24 May 2024 18:51:36 +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=1716576696; cv=none; b=caSejmjxA3xz5Cc601vTEBndPEGnKYuBnmWQSM0CBjjpYIuFHf4CR9f2A9Ix1+H9gqASeEKKXFVD8vJ/sHod8bQgyEzKNPBI0m6S9wraXXOTxAbV+Z1/Fasr9/8XwlB9BWWqgo5wfpdS/DfQ7GJ0dz0t6KixL2eKjs5IyWQ5yQQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716576696; c=relaxed/simple; bh=LMF9gkUgHj1akckbBYnGykASAD6kVjbsT7sG7bX3nE4=; h=Date:From:To:Cc:Subject:Message-Id:Mime-Version:Content-Type; b=NEmO1H0e02fgPOFkKNh6EKmyRcSYhPAHdUf0eOft22BDgBfFltXKZ6XffdaKp9V2oNjBrABmwG3B8IJ/U68J26BndPXxh1nIQn8BwJtu4DT9AGRNgQHuGMFtMI7Fcj8IfmHfpEcmZDwTHdWXdTLI38+H3KKF9oLkLv7uS27+E00= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=v0ZDJDFo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3290DC2BBFC; Fri, 24 May 2024 18:51:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1716576696; bh=LMF9gkUgHj1akckbBYnGykASAD6kVjbsT7sG7bX3nE4=; h=Date:From:To:Cc:Subject:From; b=v0ZDJDFokhg5Y1Da+53pmWUPHBl53thb8uo3wp/9W0jDlrEVTjKZXPE7rd09wJtDX gfL6iuCIZfbefowsxPyeH7MUZgah0zVaOauf9dCnx17BWKrhw8Is5cZeBTMluz3Ttz x9NL+f5tIhQUIs5Esa1VdtWmms4iIuoerSE+9gL8= Date: Fri, 24 May 2024 11:51:35 -0700 From: Andrew Morton To: Linus Torvalds Cc: linux-mm@kvack.org, mm-commits@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [GIT PULL] final MM update for 6.10-rc1 Message-Id: <20240524115135.3b6fd971bdb3e538e1873632@linux-foundation.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) 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=US-ASCII Content-Transfer-Encoding: 7bit Linus, please merge Jeff's mseal() syscall patchset, thanks. The following changes since commit c760b3725e52403dc1b28644fb09c47a83cacea6: Merge tag 'mm-nonmm-stable-2024-05-22-17-30' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm (2024-05-22 18:59:29 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm tags/mm-stable-2024-05-24-11-49 for you to fetch changes up to a52b4f11a2e17109c4b9f7df4ff19215b1752efc: selftest mm/mseal read-only elf memory segment (2024-05-23 19:40:27 -0700) ---------------------------------------------------------------- Jeff Xu's implementation of the mseal() syscall. ---------------------------------------------------------------- Jeff Xu (5): mseal: wire up mseal syscall mseal: add mseal syscall selftest mm/mseal memory sealing mseal: add documentation selftest mm/mseal read-only elf memory segment Documentation/userspace-api/index.rst | 1 + Documentation/userspace-api/mseal.rst | 199 +++ arch/alpha/kernel/syscalls/syscall.tbl | 1 + arch/arm/tools/syscall.tbl | 1 + arch/arm64/include/asm/unistd.h | 2 +- arch/arm64/include/asm/unistd32.h | 2 + arch/m68k/kernel/syscalls/syscall.tbl | 1 + arch/microblaze/kernel/syscalls/syscall.tbl | 1 + arch/mips/kernel/syscalls/syscall_n32.tbl | 1 + arch/mips/kernel/syscalls/syscall_n64.tbl | 1 + arch/mips/kernel/syscalls/syscall_o32.tbl | 1 + arch/parisc/kernel/syscalls/syscall.tbl | 1 + arch/powerpc/kernel/syscalls/syscall.tbl | 1 + arch/s390/kernel/syscalls/syscall.tbl | 1 + arch/sh/kernel/syscalls/syscall.tbl | 1 + arch/sparc/kernel/syscalls/syscall.tbl | 1 + arch/x86/entry/syscalls/syscall_32.tbl | 1 + arch/x86/entry/syscalls/syscall_64.tbl | 1 + arch/xtensa/kernel/syscalls/syscall.tbl | 1 + include/linux/syscalls.h | 1 + include/uapi/asm-generic/unistd.h | 5 +- kernel/sys_ni.c | 1 + mm/Makefile | 4 + mm/internal.h | 37 + mm/madvise.c | 12 + mm/mmap.c | 31 +- mm/mprotect.c | 10 + mm/mremap.c | 31 + mm/mseal.c | 307 +++++ tools/testing/selftests/mm/.gitignore | 2 + tools/testing/selftests/mm/Makefile | 2 + tools/testing/selftests/mm/mseal_test.c | 1894 +++++++++++++++++++++++++++ tools/testing/selftests/mm/seal_elf.c | 179 +++ 33 files changed, 2732 insertions(+), 3 deletions(-) create mode 100644 Documentation/userspace-api/mseal.rst create mode 100644 mm/mseal.c create mode 100644 tools/testing/selftests/mm/mseal_test.c create mode 100644 tools/testing/selftests/mm/seal_elf.c