Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3500563rdh; Mon, 27 Nov 2023 16:22:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IGYiyvzeEv3hEOgyXnnRFzNrsesmw5ncz4zb/FirRa2kRXxh+OBgHXDv/Fc/3IjiVtThUTp X-Received: by 2002:a05:620a:5236:b0:77b:9dd3:2f90 with SMTP id dc54-20020a05620a523600b0077b9dd32f90mr12710765qkb.34.1701130938668; Mon, 27 Nov 2023 16:22:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701130938; cv=none; d=google.com; s=arc-20160816; b=dZImLTqUCx2uPUQCzZePwI2rBsFQD0HrlNG+Y39HQcSxT07DhbLfD7tjHnxGbstJFC q63A/oRjPJnFX31wETuZCP3xWErCW20wMeJfPksd38QB2ox1+PybHYTZhGMEhnwsaGTM tb8ilnPxnnqGV2i2j9CvZUYoe2naBPtMWO+emQjlYqTljuK/vhvqtdSVOLr6nlujQ8ca BJFjgW17tRllOQsgiSMLLZsr+UPv3ATHr59uKqPPCr0xvVi/RJe5KMiNG/foVpTFdl6a YMGtDGxYE+9yiouPV5BSoB5dUobvAtOscFvC0z9g51sxO9KBB8sID4p0mNzfCsqc7dZE TVfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FcF7EbG17wMf5A1vywn815C2rgzGBSTBqW3p8rKvm+Q=; fh=R9C4wujTfOIg4fMh3p2JfiF5NVeFkzyXBHXQWUZu4ZY=; b=Kh6MTqzqjxk78gN+7hNkIGt9pA4Iw8h1PxD2H3/SHfzd35aU1hqO7+cipWFDsAWzwl PR28ycBmSq2dVMUgjKAoo3jvE7JkwH1sjGXZcHC+IrnqNd3vYVTJ2V2yWWdSRVGbX0xP jSg8BJOu7xeCF6vAI6HbKFzWmhyfdNllicG3I/LrLAoY537Peok2f9mQXGKVoAsd0X7u Nxh1EQfxGiXfMfM4s9TnxpqhhHxuWHOHJo48fQeMw0+eq0JTEWq3kpuhZ7RP8Qd+z4Zu tEAQg4Cc8IcYKpWvEiTEOeod3Ki3tjKLPj6lpzs/P/eL5D4cyQvThCJja1Fc1dByxqpm kUcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gHW7zeIR; spf=pass (google.com: domain of linux-wireless+bounces-133-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-133-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d4-20020a05620a240400b0077da5d169bfsi4091961qkn.362.2023.11.27.16.22.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 16:22:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-133-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=gHW7zeIR; spf=pass (google.com: domain of linux-wireless+bounces-133-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-wireless+bounces-133-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 582E81C209E3 for ; Tue, 28 Nov 2023 00:22:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 64DB27EB; Tue, 28 Nov 2023 00:22:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="gHW7zeIR" X-Original-To: linux-wireless@vger.kernel.org Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E36FE18B for ; Mon, 27 Nov 2023 16:22:12 -0800 (PST) Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-6cb4d366248so4076878b3a.0 for ; Mon, 27 Nov 2023 16:22:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701130932; x=1701735732; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=FcF7EbG17wMf5A1vywn815C2rgzGBSTBqW3p8rKvm+Q=; b=gHW7zeIRSF2utN8brgCdiO6Rlba0fYGpE5dOK8IlsXWocIGrDthTK5MYK0qlDsXkw7 gFpNyvoRmnbTa9zIL+TKPdtU+tCYSBjZCzJl7etvG6bAJe4ozoVqClXacnhoUodVz1en hBAKMVsquMEFYQFKpaTNhfdkxzuY5rGCExqIQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701130932; x=1701735732; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=FcF7EbG17wMf5A1vywn815C2rgzGBSTBqW3p8rKvm+Q=; b=eVhWAKYonWMHfbulGAr4E+N0xAgr1hxY8CVUqnF2goFZiG+lpbNmzdoWCfw+u2O9UV NyzV9vBEAzGCiPGT2sF6GQd6IFcFz4TEv+M/ZxD2TEHoJmzqG/ukw1PTqfEEsO3K7aVm UNswZuDqltu223YZVQ+w2vOVscVTUV90mgadnTLadN65Ffmf6q+nNRGBYJ+YTxSmkU3L DnHPDeb3MJqBcP82BGTWrC4yakrb9BDF51INm/rCk0WmNkzMHjAQQ7+ksGVKVdXcKPKE HvXbLLBgC2Qlv0lenDbM7e5ZMmFV09kqFkWWAMyToj/vvHeHY0lRdS1IkDvGb2m6fDsX e+IQ== X-Gm-Message-State: AOJu0Yw6EHotYPyI2kmUx/Maxziy9uNFLH+uL23mjlimn5GqaxaAoX1+ YMvHCxrgMp8cYSHZxUTlNZuOeuvec/e/03AK0dlUiA== X-Received: by 2002:a05:6a00:88f:b0:6b3:f29c:dde1 with SMTP id q15-20020a056a00088f00b006b3f29cdde1mr14055045pfj.21.1701130932417; Mon, 27 Nov 2023 16:22:12 -0800 (PST) Received: from www.outflux.net (198-0-35-241-static.hfc.comcastbusiness.net. [198.0.35.241]) by smtp.gmail.com with ESMTPSA id fh23-20020a056a00391700b006cc02a6d18asm4752811pfb.61.2023.11.27.16.22.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 16:22:11 -0800 (PST) Date: Mon, 27 Nov 2023 16:22:11 -0800 From: Kees Cook To: Johannes Berg Cc: Dmitry Antipov , Alexey Dobriyan , Will Deacon , Kalle Valo , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, kernel test robot Subject: Re: [PATCH] uapi: propagate __struct_group() attributes to the container union Message-ID: <202311271620.B0CB21B@keescook> References: <20231120110607.98956-1-dmantipov@yandex.ru> Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, Nov 24, 2023 at 06:37:14PM +0100, Johannes Berg wrote: > On Mon, 2023-11-20 at 14:05 +0300, Dmitry Antipov wrote: > > Recently the kernel test robot has reported an ARM-specific BUILD_BUG_ON() > > in an old and unmaintained wil6210 wireless driver. > > > > Heh. I guess it wasn't unmaintained enough for someone to touch it and > add struct_group() to it... It needed it since it was using memcpy across fields. But it's been a while since that change happened, so finding this bug now is pretty impressive. :) > > > include/uapi/linux/stddef.h | 2 +- > > > > No idea what tree this should go through, but I guess wireless isn't > appropriate. I'll take it; thanks for the find Dmitry! -- Kees Cook