Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19010025rwd; Wed, 28 Jun 2023 03:58:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlHhW0rHwdSbZVWy59MOShHFIFQNTQsd++QWAkfoGvpNPjyf9B1Rfd2nTeCf3YkgB55afTWe X-Received: by 2002:a17:902:704c:b0:1b8:4baa:52ff with SMTP id h12-20020a170902704c00b001b84baa52ffmr56090plt.47.1687949898851; Wed, 28 Jun 2023 03:58:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687949898; cv=none; d=google.com; s=arc-20160816; b=HwrZOVHpm01rGr6742cGFaOdGcxpjgh6YF+PTTOC4wISb9fJ9VVYc+N+YLifz3oh5t Gf1rBhHpeLoKM5mkhOk3/539JAGw2wcc86yzoMJyIrcP8LR9XI/5g3g6L6GDJMCoBwxe 5Rfkfm/SKVUZmZe+0wV9f9brhmS+2TD1HqK1sJQ494flcXK+YBw1zEj3+8rGpXsa1Xzd c8CJ72G2aAdXwPb3qLzC1mAZ6cNykvwNe1KBx5JBBl8Hj87CqAUvmCYKyUkE0WX2V1Uj OI6WLx2qKZD1OfDZ5BC6cKq2dXHzpUonutCbyZpiTR8Ec+Oh4XoALTnV5Ivp0JS1iYok FmgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=C5tmQJJM86gejwpQSV0WJ/6JX25pMk2HtojKd/N2Lw8=; fh=GV5hS7Fb4vkUdcSbe3cUesu51QGVzreQb5UWuqSXTrk=; b=w6YT3GtCIl1vtf2gORnVyKUeq4/t7JmarpPBsWT1nTvwnvWhpi/QB3JrbzhHVYSpGW rJ+9U2WX5jmAeJmLF84C2/G2kr4b/j8i/QMwcArp5lpmcTC4q9yjvPDrSpXAw5pD8HD7 teZ+8s0HlTMnBXe3ThUK78JjyDbcOYdAq51j5i/vi1fYH3VORiTXdbSAllLmFQcRmmwd LQRW+9Ag/Tdn6cbop3k8izYnYhWM4+o5N7YJiQTAHyZ9DWrHVm/1RX9DYzWU46GLNIpu Ge69g/LXKVIhuZ56G5zSQb2GGi6kJjNFVzir5DkmF6AiS9zJwm6YbQNPuDXnlTA5ideZ B1rQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J603JnL9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h4-20020a170902f54400b001b508dd9a84si9095641plf.422.2023.06.28.03.58.06; Wed, 28 Jun 2023 03:58:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=J603JnL9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231542AbjF1Kjg (ORCPT + 99 others); Wed, 28 Jun 2023 06:39:36 -0400 Received: from dfw.source.kernel.org ([139.178.84.217]:42504 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231886AbjF1Khb (ORCPT ); Wed, 28 Jun 2023 06:37:31 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 582F96129E for ; Wed, 28 Jun 2023 10:37:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9650EC433C0; Wed, 28 Jun 2023 10:37:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687948650; bh=aH5Zi2HWLcJaXkjibaUhIqVkjSjeydXkdQfw0nYYoF8=; h=From:To:Cc:Subject:Date:From; b=J603JnL9uRIuxNuO2BDLuGuweOCS3KbMRwdDoSVQUZmNUuAu/k3H8S7x1O2T/5KVI 9XsCl97Dbmi8RyiDzTS8aH/DHREMFwBLHWrJdItjpkWtJIn/5BvSVwOpwY2tf/tgZ4 JlSy5yl4kuYlDbzdvwXOeGD9LhgUR3QAgAQ/tkw+iUYX+HmHOJNgpfpEfafoiFgVnx dOSN4BSzYNGy0X90ONno2MR/e3sIW6Ue1+4zNAvsRD+HQNdURuYBtu3cipQIenDk47 plSPvSku7rfmgmAeNgoGT2cZGmVUlkAAZdAya/glNBtYJLjl7+ktTt8C/34/YXYPEv fLNjBOab5nXWA== From: Christian Brauner To: Linus Torvalds Cc: Christian Brauner , linux-kernel@vger.kernel.org Subject: [GIT PULL] pid: use flex array Date: Wed, 28 Jun 2023 12:37:19 +0200 Message-Id: <20230628-pokal-puzzeln-5199c679b051@brauner> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1638; i=brauner@kernel.org; h=from:subject:message-id; bh=aH5Zi2HWLcJaXkjibaUhIqVkjSjeydXkdQfw0nYYoF8=; b=owGbwMvMwCU28Zj0gdSKO4sYT6slMaTM4Y38KT598+7PjOI/V7PMvx49YZLl/f5NQmv6pR26xM+I /dOR7ShlYRDjYpAVU2RxaDcJl1vOU7HZKFMDZg4rE8gQBi5OAZhInT3D/wjrprikIKv73AXaN3XeKT jdnqb7aHaO/5zUb1N+XDtY/Jbhf3hGcLPxMca8u8suds1etmMzZ/mnn8aH+Tter52lKbKlkxkA X-Developer-Key: i=brauner@kernel.org; a=openpgp; fpr=4880B8C9BD0E5106FC070F4F7B3C391EFEA93624 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hey Linus, /* Summary */ This contains Kees' work to make struct upid in struct pid a proper flexible array and thus gets rid of a bunch of syzbot UBSAN warnings. --- Sorry for sending this one later than the others. It's pretty minimal though. /* Testing */ clang: Ubuntu clang version 15.0.7 gcc: (Ubuntu 12.2.0-3ubuntu1) 12.2.0 All patches are based on v6.4-rc2 and have been sitting in linux-next. No build failures or warnings were observed. All old and new tests in selftests, and LTP pass without regressions. /* 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 f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6: Linux 6.4-rc2 (2023-05-14 12:51:40 -0700) are available in the Git repository at: git@gitolite.kernel.org:pub/scm/linux/kernel/git/brauner/linux tags/v6.5/kernel.pid for you to fetch changes up to 757777eef55b48b310603d0a1f6591f2a138691b: pid: Replace struct pid 1-element array with flex-array (2023-05-30 17:46:48 +0200) Please consider pulling these changes from the signed v6.5/kernel.pid tag. Thanks! Christian ---------------------------------------------------------------- v6.5/kernel.pid ---------------------------------------------------------------- Kees Cook (1): pid: Replace struct pid 1-element array with flex-array include/linux/pid.h | 2 +- kernel/pid.c | 13 ++++++++----- kernel/pid_namespace.c | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-)