From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5798FF01821 for ; Fri, 6 Mar 2026 10:43:38 +0000 (UTC) Received: from boromir.ozlabs.org (localhost [127.0.0.1]) by lists.ozlabs.org (Postfix) with ESMTP id 4fS30m2nPlz3bnJ; Fri, 06 Mar 2026 21:43:36 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; arc=none smtp.remote-ip="2600:3c04:e001:324:0:1991:8:25" ARC-Seal: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1772793816; cv=none; b=Xnk/nm77k5In4iopAzAxiRirO1BecFnACpxo/Ci+wwaPw/iaKDWLVWGmTm6B2C3+ez8BA9YHIsdpPPy1z7+1aXdnNfzSGFV2hbAAigZ0iz37es/83znFBtF1w58v62b8HhpVacFnWB7al6FFNkyKhPU6FkTZPSoDbAytH3i8zVgbeAfZbkVu9rEVu8T4v/m0OuOLMnRxvmh3w8zpwTNkh55Mi01RC2dVxp4afrTaoSQu89qqIAT0w+Gb+XQypv5HgawtNokJ/8onno+PUBDI/+Y1AnLzC9Ltr6KHn8FFg2OenQ8e5wOq+uIACJtraC9XvIsrPbNy6pzCEUuT0cwdSw== ARC-Message-Signature: i=1; a=rsa-sha256; d=lists.ozlabs.org; s=201707; t=1772793816; c=relaxed/relaxed; bh=xw51UHimXbuvHkvrh4C5tgrv5o29CeDYxDWm+24Rni4=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=oEr/XuFVg5FBbEJzwcLkHLz8CDu/B2Y0WmDXOuj60R0+bAH7T4GiKl+C+eG9fp+wCTGurG+p8uoz/cGFrkc8JNVKFr/qJVO5VqD5fYc8U+z2wmomvIHzfWvCnBNjT/KsMHAmosVgkGGid/6hnL2an51wl7s5OhM27mA4CxH7IjKOoh6K0MOd9B7VLB9wSqzDH23TUU3WdLmnlj6mv4n7bPrWIAJwwIvwMTRjkO7+miOMbmVLKraFpW1L3/P3bTeZNAzRTbtXsZtGbaHfNPTQPfe7Hsnu9KEvtxjQMKgxW9LCbNquqzhRV726lVrVDDCoB3FPR2vg6o+5wEYywcUDIQ== ARC-Authentication-Results: i=1; lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=BzVtHObI; dkim-atps=neutral; spf=pass (client-ip=2600:3c04:e001:324:0:1991:8:25; helo=tor.source.kernel.org; envelope-from=chleroy@kernel.org; receiver=lists.ozlabs.org) smtp.mailfrom=kernel.org Authentication-Results: lists.ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=kernel.org Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20201202 header.b=BzVtHObI; dkim-atps=neutral Authentication-Results: lists.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=kernel.org (client-ip=2600:3c04:e001:324:0:1991:8:25; helo=tor.source.kernel.org; envelope-from=chleroy@kernel.org; receiver=lists.ozlabs.org) Received: from tor.source.kernel.org (tor.source.kernel.org [IPv6:2600:3c04:e001:324:0:1991:8:25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4fS30l3K2wz30T9 for ; Fri, 06 Mar 2026 21:43:35 +1100 (AEDT) Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 3CC036012A; Fri, 6 Mar 2026 10:43:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B76D3C4CEF7; Fri, 6 Mar 2026 10:43:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772793812; bh=jKZEF3IUSt1J91757T2vSUpKudKOAuc0I9XBO5Sn7ko=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=BzVtHObIL82/q9O+sOb2/+FweppM29b9mnTSAfc69usZmapfE8B7l+05Z7ufxsOTk CRb055OLrA9Fy0yEzPfSTSO3b4HQdk2eAUXkpLJI5GsUQVNu5xWwHe/INBvaNDqBZg g48NgVDztPTNO6Bd1g9Q+EQL2umvqAmLBE0LYiE6WC7dKN/L9rELZLCDr3TfV/KUNo 0vqW/J+Wr4G4E1dUk3ZG5r6MLRBygEtiuFa87etC+eXlXVJtK5o7NcTKq8hG2Vvqvj DK52IoDgQ/NqyZ4P0Mzc/8FITgp1u7NKxRK8gEjFAVqYwr+lNx6ZLS/spi4VZXOb/Q 8lsBXIqpub5Vg== Message-ID: <96cdd223-5139-4535-b82d-831dac472cc3@kernel.org> Date: Fri, 6 Mar 2026 11:43:24 +0100 X-Mailing-List: linuxppc-dev@lists.ozlabs.org List-Id: List-Help: List-Owner: List-Post: List-Archive: , List-Subscribe: , , List-Unsubscribe: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/5] vDSO: Use 32-bit CHECKFLAGS for compat vDSO To: =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , "David S. Miller" , Andreas Larsson , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Arnd Bergmann , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin Cc: sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-s390@vger.kernel.org, David Laight , linuxppc-dev@lists.ozlabs.org, Sun Jian , kernel test robot , Dan Carpenter References: <20260302-vdso-compat-checkflags-v2-0-78e55baa58ba@linutronix.de> Content-Language: fr-FR From: "Christophe Leroy (CS GROUP)" In-Reply-To: <20260302-vdso-compat-checkflags-v2-0-78e55baa58ba@linutronix.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Le 02/03/2026 à 08:58, Thomas Weißschuh a écrit : > When building the compat vDSO the CHECKFLAGS from the 64-bit kernel > are used. These are combined with the 32-bit CFLAGS. This confuses > sparse, producing false-positive warnings or potentially missing > real issues. > > Manually override the CHECKFLAGS for the compat vDSO with the correct > 32-bit configuration. > > Not all architectures are supported, as many do not use sparse for their > (compat) vDSO. These can be enabled later. > > Also add some checks to bitsperlong.h to detect such issues earlier. > > Based on tip/timers/vdso. > > Signed-off-by: Thomas Weißschuh > --- > Changes in v2: > - Simplify __BITS_PER_LONG consistency checks > - Fix an inconsistency in the powerpc audit code The powerpc audit code should be replaced by generic AUDIT_ARCH_COMPAT_GENERIC, as there is no difference between them apparently. A tentative was made in the past but was declined by audit maintainers because we were not able to test it allthought the failure was the same before and after the patch, see https://github.com/linuxppc/issues/issues/412 Christophe