From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-8fab.mail.infomaniak.ch (smtp-8fab.mail.infomaniak.ch [83.166.143.171]) (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 ED0D225229C for ; Tue, 20 May 2025 15:19:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=83.166.143.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747754345; cv=none; b=ZyI8Uy/9hrxuQIP+uwHL35WFvcEQ4R/3XKKvCA3FjIeM2nZDlB3CHOoixWEYA04w/fru1zecHCLlftOwmwbSzDqFBZnR4Z1nda0dMJaeUigQDJlulF6Ego+gz8qh9ESsMT8CRg004xgNjYt5nhg7YXk3YzDgvHjUuWtyX9MhEiA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747754345; c=relaxed/simple; bh=70BAyOFeZfWM41kAHLRdIU92GSfnWFH99n9UrsgwNlE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=G/ALUHkv/AgrCRAQyHb85c+mH8G0jud0Ez0tMPqaOn47qyYPM8/pwJaEwOut/1yAld2zTgiaarh0ZQIf8C1E8rwUDLWYmoGSMEB40d5RXonUI4yXGl89TLUEiyPS6NKr6D6cvChV00EYdnxdsB8Df9xKFoYle1Hm/8yp4VtS26A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net; spf=pass smtp.mailfrom=digikod.net; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b=WJIBO6F4; arc=none smtp.client-ip=83.166.143.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=digikod.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.b="WJIBO6F4" Received: from smtp-4-0001.mail.infomaniak.ch (unknown [IPv6:2001:1600:7:10::a6c]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4b1yrL67zmz64G; Tue, 20 May 2025 17:18:58 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digikod.net; s=20191114; t=1747754338; bh=fpcq+IBeWj32z7gPBx92ypw/9OpgG/CmMTsCvhDLbdY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=WJIBO6F4WWZKdj3YhVkk5wXJ/gzj3dr968LNvBwTBESVBEio3Vd7IWUNJcUaXA92y gU0iLGCGQmKXsRqqLFvvDyq4ZBD0aHlg1hrNG9jia1+sIitx77VFoic86WTH8h88Lq ILu9RMl3lFFDQLLqHcYQnrxtOXXYlXYfIoDrXfJE= Received: from unknown by smtp-4-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4b1yrJ5lpWzGb7; Tue, 20 May 2025 17:18:56 +0200 (CEST) Date: Tue, 20 May 2025 17:18:56 +0200 From: =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= To: Kees Cook Cc: Arnd Bergmann , "Dr. David Alan Gilbert" , Mark Brown , WangYuli , =?utf-8?Q?G=C3=BCnther?= Noack , Bill Wendling , Andrew Morton , Nathan Chancellor , Nick Desaulniers , Justin Stitt , Petr Mladek , David Gow , Rae Moar , Tamir Duberstein , Diego Vieira , Luis Chamberlain , "Gustavo A. R. Silva" , Paul Moore , James Morris , "Serge E. Hallyn" , linux-kernel@vger.kernel.org, llvm@lists.linux.dev, linux-hardening@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [PATCH 0/3] randstruct: gcc-plugin: Remove bogus void member Message-ID: <20250520.Riene6ceesha@digikod.net> References: <20250427013604.work.926-kees@kernel.org> Precedence: bulk X-Mailing-List: linux-security-module@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20250427013604.work.926-kees@kernel.org> X-Infomaniak-Routing: alpha On Sat, Apr 26, 2025 at 06:38:32PM -0700, Kees Cook wrote: > Hi, > > Okay, I've tracked down the problem with the randstruct GCC plugin, > and written a KUnit test to validate behaviors. This lets us add > it back the COMPILE_TEST builds. > > No need for https://lore.kernel.org/all/20250421000854.work.572-kees@kernel.org/ Hi, What is the status of this patch series? Do you plan to send it for v6.15? > > -Kees > > Kees Cook (3): > randstruct: gcc-plugin: Remove bogus void member > lib/tests: Add randstruct KUnit test > Revert "hardening: Disable GCC randstruct for COMPILE_TEST" > > MAINTAINERS | 1 + > lib/Kconfig.debug | 8 + > lib/tests/Makefile | 1 + > lib/tests/randstruct_kunit.c | 283 ++++++++++++++++++ > scripts/gcc-plugins/randomize_layout_plugin.c | 18 +- > security/Kconfig.hardening | 2 +- > 6 files changed, 295 insertions(+), 18 deletions(-) > create mode 100644 lib/tests/randstruct_kunit.c > > -- > 2.34.1 > >