From mboxrd@z Thu Jan 1 00:00:00 1970 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 EABD3360 for ; Thu, 16 Jan 2025 00:10:01 +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=1736986202; cv=none; b=u5qheiPh42LOnFPb58Z92rMCT+j6094hqxGFbLv+0SVEsiXnRa9vwwjTQLjJB3dV4q6Jv6e1JIgKXVL5OlVmjHve8xxuRzzsYYAg7gpvgeFwVvNjMJ/Mks7mMJOCaRYRgw9oztD4YwAPz4AFoAqDnXvFSLVYtnYCEJrV+dfX02I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736986202; c=relaxed/simple; bh=NyR+F13yly7bJT9hIoWHmP27kiniqsygLhVBft1Duag=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=CCjfh6mtvACwicQaZ4DQgI9FoGPX4QWvZHhHa4kn3RxpnCCDiM9g7zRKpb66MGX5RtI3nBDF0/n9nY/ZzhYPpaNrYEnVfoxF52FG8m2FPr3s9iUT8uQjsMje8TOGaJ0yem4qJS2anoA/xbjhxeKOlw6GZCeOF3Rk4xgxeQW7m9M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=vJZkbZrX; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="vJZkbZrX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73C97C4CED1; Thu, 16 Jan 2025 00:10:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736986201; bh=NyR+F13yly7bJT9hIoWHmP27kiniqsygLhVBft1Duag=; h=Date:From:To:Cc:Subject:From; b=vJZkbZrXjSzDz8CzDlvsJxU86PSt38uuWDcH7936kbG+NmJmQbhT0WCzBN7NZh13G BiI0nC8li9mucnANln53reQjK3RjUKdHsfOPjvcAibGII/bWEN4+XbyGUVOI1GEkUq IRv/jNz5qWUvZrpWcwHNo8bwZUDn0syGi/5dbhkpC5NHNXIOmwaJE4ZadXei3UzH24 PNgje/tFcWgpb5CZE5+iFIqS/0I/nVpN2SECGyi1tniHd+ZpnEvSOlbZrUL6xkk7Kp UUQCgLNob1Jip7Ddh+7jcNa2IG3w08tOiwaPgP1Wzl8a+6rFA/kHUcdlcB1Iy9Wrpn zXoNpvgnRczDA== Date: Wed, 15 Jan 2025 16:09:58 -0800 From: Kees Cook To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Aleksa Sarai , Alexander Viro , Christophe JAILLET , Dan Carpenter , "Eric W. Biederman" , Kees Cook , Linus Torvalds , Nicolas Pitre , Nir Lichtman , Tycho Andersen , Vegard Nossum , Zbigniew =?utf-8?Q?J=C4=99drzejewski-Szmek?= Subject: [GIT PULL] execve updates for v6.14-rc1 Message-ID: <202501151607.5E0B12539@keescook> 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-Disposition: inline Hi Linus, Please pull these execve updates for v6.14-rc1. This is mostly the pull request for v6.13-rc1, but with all the "comm" stuff now settled and has lived in -next for the entire past dev cycle. Thanks! -Kees The following changes since commit 8cf0b93919e13d1e8d4466eb4080a4c4d9d66d7b: Linux 6.12-rc2 (2024-10-06 15:32:27 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git tags/execve-v6.14-rc1 for you to fetch changes up to 55cf2f4b945f6a6416cc2524ba740b83cc9af25a: binfmt_flat: Fix integer overflow bug on 32 bit systems (2025-01-10 08:49:05 -0800) ---------------------------------------------------------------- execve updates for v6.14-rc1 - exec: fix up /proc/pid/comm in the execveat(AT_EMPTY_PATH) case (Tycho Andersen, Kees Cook) - binfmt_misc: Fix comment typos (Christophe JAILLET) - exec: move empty argv[0] warning closer to actual logic (Nir Lichtman) - exec: remove legacy custom binfmt modules autoloading (Nir Lichtman) - binfmt_flat: Fix integer overflow bug on 32 bit systems (Dan Carpenter) - exec: Make sure set_task_comm() always NUL-terminates - coredump: Do not lock when copying "comm" - MAINTAINERS: add auxvec.h and set myself as maintainer ---------------------------------------------------------------- Christophe JAILLET (1): fs: binfmt: Fix a typo Dan Carpenter (1): binfmt_flat: Fix integer overflow bug on 32 bit systems Kees Cook (5): coredump: Do not lock during 'comm' reporting MAINTAINERS: exec: Add auxvec.h UAPI MAINTAINERS: exec: Mark Kees as maintainer exec: Make sure task->comm is always NUL-terminated exec: fix up /proc/pid/comm in the execveat(AT_EMPTY_PATH) case Nir Lichtman (1): exec: remove legacy custom binfmt modules autoloading Tycho Andersen (1): selftests/exec: add a test for execveat()'s comm nir@lichtman.org (1): exec: move warning of null argv to be next to the relevant code MAINTAINERS | 3 +- fs/binfmt_flat.c | 2 +- fs/binfmt_misc.c | 2 +- fs/exec.c | 63 +++++++++++++++------------ include/linux/binfmts.h | 4 +- include/linux/coredump.h | 4 +- include/linux/sched.h | 9 ++-- io_uring/io-wq.c | 2 +- io_uring/sqpoll.c | 2 +- kernel/kthread.c | 3 +- tools/testing/selftests/exec/execveat.c | 75 +++++++++++++++++++++++++++++++-- 11 files changed, 125 insertions(+), 44 deletions(-) -- Kees Cook