From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 081BD6E5E7 for ; Thu, 22 Feb 2024 18:47:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.175 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708627627; cv=none; b=J1rFbl9ee8PiwOE6hwlVJ0XWuGqElzIIVtoobK3c/2gr36aOeIfcCBAn6hOYz1rvWnhsRY5kEd4t+MnURbqD76eBOYbNjA3ZMvweuEnmWmdFDrEXxosMwfo5FRz9jvKllFnc5NpX82SDU+5tYwJgZKS9dV9W+QIMuWldNcET6qU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708627627; c=relaxed/simple; bh=NwoZ/s/YB6zInacwyEad3YhKFkgtInk+ILfXRdyVvto=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=lDIHlzLh2k0COtwKvozwR7MhfLC9AXjOtSzT2YXvdppYcnj6yD4YuLxA3cEZPAQSy6s4M2OhvW5EiMM/4cuknc+2lgxPs6zFV6bwo4idcOplwKhqz+uJfD/eT65n0zrC9SAAc0ijBDmkGYou9BHMIhQxi6FsxqmjxLBSL26D3dc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=jZnn94kL; arc=none smtp.client-ip=209.85.210.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="jZnn94kL" Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-6da202aa138so1385328b3a.2 for ; Thu, 22 Feb 2024 10:47:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1708627625; x=1709232425; 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=W4vpO/kuwhEAbu5lyhpp3cdM+wCLzEUK+hlVl6YVNB0=; b=jZnn94kLXyYka+9eXc6AizHVEys8TFY2OiJFG7PIg2WwOoOPGz/WnjIUBC7K1XuDyA N9WXbD4i43+FAb+UXraPUYghcAZtBZ9c/hsS++vfJPdXD4DWX6Tn2LFckfPHMQVQ39OA b5jXaD5DSRAvbP8DPkBMeXcy0mMxLq472fvQY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708627625; x=1709232425; 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=W4vpO/kuwhEAbu5lyhpp3cdM+wCLzEUK+hlVl6YVNB0=; b=RdPdErmJICv1WRb5RJOTYbAUDhPiwo2/tId2fjl9UoH3SiI7juxzpaJTpLXkW3vxg5 A7wonhIwR1phl6oTwYUAG/MqNDz0Q3bfbrsURm4GImvMH/UvVOe9aSJjkiFBifVDvOZk MxMhG/9WeK6WUsJ7SpC0vAc3fjxKlucfogsvScqo/NjTbzh2nZMLCXjKf1049Nki8RNI l+PC0rqB0P05VGZeQhm7Va1crLNLhOx0dLJSMKboX6ckIzBdY9KhaYh8ELjocU9J3tYm BXog18txTHZkAlfJ8GXxMW+AMG6f2bC9oiuirWcgC9QhNjXpAit8Fx8MKJmng1ku8+OO fR9Q== X-Forwarded-Encrypted: i=1; AJvYcCXmtSlGlHSUnbF3lgSwWuaGZH4iQuxAnYCcV7MD8fb1EXm4CC5VNVDGkYFb2Vus8/gIuxyGvNHSXClaa1pER/DZxWY3oa1NHXPtk2XAZCt3 X-Gm-Message-State: AOJu0YyGgqv6TgyZM5SsOnxvv5penBZIQqOFbKzOq4NmYzQHLMmhrREf fyrOTBY2QfMUH9latYXwh2EWhtxEuGkbR2WG8JzJ839mr0O5Xm71xvK0fEarqg== X-Google-Smtp-Source: AGHT+IHgy3WwdGAsnQPmK2m2JDsitnCNDlW/VOsDIP4yBtdVhbhIse0VsuYogkkxJuuqsoNLgdNNGw== X-Received: by 2002:a05:6a00:6c95:b0:6e4:6a3f:f065 with SMTP id jc21-20020a056a006c9500b006e46a3ff065mr12647864pfb.10.1708627625231; Thu, 22 Feb 2024 10:47:05 -0800 (PST) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id s12-20020aa7828c000000b006e0651ec05csm11280323pfm.43.2024.02.22.10.47.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 10:47:04 -0800 (PST) Date: Thu, 22 Feb 2024 10:47:04 -0800 From: Kees Cook To: Daniel Borkmann Cc: Mark Rutland , "Gustavo A . R . Silva" , Alexei Starovoitov , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Mykola Lysenko , Shuah Khan , Haowen Bai , bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, Yonghong Song , Jonathan Corbet , "David S. Miller" , Jakub Kicinski , Jesper Dangaard Brouer , Joanne Koong , Yafang Shao , Kui-Feng Lee , Anton Protopopov , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, netdev@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH v6] bpf: Replace bpf_lpm_trie_key 0-length array with flexible array Message-ID: <202402221046.020C94D@keescook> References: <20240222155612.it.533-kees@kernel.org> Precedence: bulk X-Mailing-List: linux-hardening@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: <20240222155612.it.533-kees@kernel.org> On Thu, Feb 22, 2024 at 07:56:15AM -0800, Kees Cook wrote: > Replace deprecated 0-length array in struct bpf_lpm_trie_key with > flexible array. Found with GCC 13: Yay! This finally passes all of CI: https://patchwork.kernel.org/project/netdevbpf/patch/20240222155612.it.533-kees@kernel.org/ -- Kees Cook