Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp240365lqs; Thu, 13 Jun 2024 08:50:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWfzlqvsS8yQXpmaon5UCWGa+GTcqPwBBoWQ6pDJ5Y3qW51JJNdQDmexjatjPq+/9n3U9LFemwLeB/luSwlt9ipAEX9IEHt4jb95gc6Vg== X-Google-Smtp-Source: AGHT+IG2+tdPW6rG/ykOKc+OjV/MvMzDbe4IcU95NlnNyEEv0QoIil3ifgfv839AghblT4b5HUhY X-Received: by 2002:a17:906:a894:b0:a6f:4c90:7952 with SMTP id a640c23a62f3a-a6f60d40f2dmr10580566b.36.1718293827766; Thu, 13 Jun 2024 08:50:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718293827; cv=pass; d=google.com; s=arc-20160816; b=F6iz2TwZbbOyPwRflyzGCnnjiAnrQtaQdcuIu5xNrpU4UbnGw+VkXyryg9UVfCMj/c r8OR56Dsnkxs6axH+vjg3IQkhlTYXTwy9sHSTW4wxzfhGPUT8Te7SDnRgpa5VesppK7Y FfdvA075ZlB4HeT/sDKEskm5SYWTQQwMNqZRgaNBcJKuex4hk73Kbvb4p4aD8/9fuFVV LdVF+/pPUpCiEJARJrXXCIH1TubA94DcSH8My0m+Ei18L3XXWOp9GoLDGPImWjbgLUh8 Aa4XYt4izpvwx73P0La65vmPi8kpurE1wSkSxrZ2jaRihb/2CU2AieOIdeCEUNEGnSnb pd1A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=Of2uE36aZkPjiXYatlQgio6U7y4rCrakY5ZH1BVVXyE=; fh=nES2Sz1XIZ4OdZSjVBQzqRoaGBkzhWFPt/PmoDT/dMg=; b=SvY7fPHBlMzUeuf/4ayqEZYzr22xMlR7oQJmErmHnFlvlYLPr4zZM2gOOwe80tZs3j BC36PQuC5VRxCvSFakm6Aa8zII71w0VW1rEhPCekHV3I0DFzRvhIcZdX6/3a5wFqBhDL z0VpSxeThb85hZwJzpj+KQc6I3iaTzAuys2V3NEYpsLPgDJu3PZuNHZdGs0xTMJ5UV3f BzwOH8yLlWTtAQSWWKqpeSvHluYjRN/QUtO7OjGrRfx9+HyzNvBGd4Nl4C+a35iaSoX8 5V77EsJxJSk4mTIZp+FHJsS8SVdq7iX4bJeKlpGEHrBLFUokT0GtnCkyNL1LKmnXWWO7 KR5w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Llmz6kOs; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-213602-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213602-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a6f56e812fesi81779666b.988.2024.06.13.08.50.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 08:50:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213602-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Llmz6kOs; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-213602-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213602-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7C7D61F24FD4 for ; Thu, 13 Jun 2024 15:50:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EB8EE12FF73; Thu, 13 Jun 2024 15:49:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Llmz6kOs" Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 8B10F51004; Thu, 13 Jun 2024 15:49:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718293789; cv=none; b=DmV110gj+2FsOJ/XQclabv//xJXplWlYcLAyyhrAQ82YHYE2JtvRWOoUWRaiEafkPbgUO4v+4nf95rZzK4DH4IO6GBtf0StbMQzjvQs6o7zME0Xee1JPdHioLBcLZyt+ejSP16Nq+pIIDXS0aFtUQiZEJi7WeEjj4THCyShbOlw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718293789; c=relaxed/simple; bh=r1cTU3P1pKU5lWirze+ykbwtAK94FdUWSosPnjPLE3E=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=NjAmfF/vYcA4VnJ7/zLzMg/taX7AlLRdSnDw0rI+DGY7RbI7UP1HldkLbNGYQHJlDaU5aKG6CsC6mImddXiAzBkQvk7CF7CMlA9Mo2iWPUgKam3pK3/g7Pv3gBMABqYMCAgSSVBxbKfmXSVBP6TKkSkuL25J32qeUEHiFqCRqX8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Llmz6kOs; arc=none smtp.client-ip=209.85.221.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-35f27eed98aso1102786f8f.2; Thu, 13 Jun 2024 08:49:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718293786; x=1718898586; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Of2uE36aZkPjiXYatlQgio6U7y4rCrakY5ZH1BVVXyE=; b=Llmz6kOsnV8I8tjZD+P6ODzhxfKvvQoUN/rR8TUePMiXlkSB5vZvQm/pWvz4iS9eRp FtwUDA2EMe84xoxM4E/n4ET3l0oB4bIhUGG1LKJ2vo7ctbIl0+ghnbwjASpPvzwxkQLb y9EyG0tO0pU8hOz8UL4Bv9AyoU/b8lUkft4y5u/vBCotjX+cP9X0Kf4qzDMJ7X9drAUc ujmv43vH52zZaUiRuZU//Ip0r25t7tTqxk8P5WX5gkyTTvKzquw9rgB1KEMCcoWOJWsi 7KQjHIjqAt4DWV9bqmEKwJrE8CoYFGQU8vhl48GjnW6WBtenDozoJfXYNSFB5mFJ1M1v b7jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718293786; x=1718898586; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Of2uE36aZkPjiXYatlQgio6U7y4rCrakY5ZH1BVVXyE=; b=t3tK25CgNt9S/9KrwwUrsT5aAKGB2sJbs2wo66J/OAVJkd8H2TqtRNIhcPDbK2J0iQ Nd2CFdCSVhrv/3u9N/esyIJNxzQ0uLsI+wHZMGnBTQGLczc5xUMFFiIafQvjCSDTxd3z 51tMADrk1tlNDHU1ykhR1L+0vmgb0LVVSmX1MK1NwXAsBvxEg8J+AEgTMo+ZdWG8GF2t BlQuGsMpi/AczdzW1JVJ4GLFD+Ceuu4LJ96aYbZiZuxk3vLOrCWygdNZjIAC9erhn79r 9SISSz4T0vQt9E979W7ZPKmvwum4Qfn/Qrc2qCfI5A2Hsy9LwyO0p4C50N2afFioBDkv Skbg== X-Forwarded-Encrypted: i=1; AJvYcCVYdjphFeQE7NdVtg+sGACSFtSVD/T6zeK00cVpOX56x1BKSuogj3RceQuH8JHqYHixABCJQvUPjuR54qKRJwldo2daEv0nQkKNbjFqWYI6x8d4WKNdlbqaWOhE3HOkmJTF6e7/vxWzNEd1XdxVGXoE58+oKMTwwJYQ X-Gm-Message-State: AOJu0Yxr1nGhrLydT+H3jbclT2UvTld6ArWx5Hsz0zYWyueNMnFoFcnA kJnD2LE042me58V4IayUQmyzv9JTsvCXNGaElhUsohdwL47r0VkwHXdE4NPbm//D3jksComeJ2K mzNYq/9L205WW5lHD36lbrRsu2hA= X-Received: by 2002:adf:e606:0:b0:360:79de:4c32 with SMTP id ffacd0b85a97d-3607a72018emr75268f8f.7.1718293785789; Thu, 13 Jun 2024 08:49:45 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240613112520.1526350-1-maze@google.com> In-Reply-To: From: Alexei Starovoitov Date: Thu, 13 Jun 2024 08:49:34 -0700 Message-ID: Subject: Re: [PATCH bpf] bpf: fix UML x86_64 compile failure To: Shung-Hsi Yu Cc: =?UTF-8?Q?Maciej_=C5=BBenczykowski?= , =?UTF-8?Q?Maciej_=C5=BBenczykowski?= , Linux Network Development Mailing List , Linux Kernel Mailing List , BPF Mailing List , Andrii Nakryiko , John Fastabend , Alexei Starovoitov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Jun 13, 2024 at 8:30=E2=80=AFAM Shung-Hsi Yu wrote: > > On Thu, Jun 13, 2024 at 04:25:20AM GMT, Maciej =C5=BBenczykowski wrote: > > Cc: Andrii Nakryiko > > Cc: John Fastabend > > Cc: Alexei Starovoitov > > Fixes: 1ae6921009e5 ("bpf: inline bpf_get_smp_processor_id() helper") > > Signed-off-by: Maciej =C5=BBenczykowski > > --- > > kernel/bpf/verifier.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c > > index 36ef8e96787e..7a354b1e6197 100644 > > --- a/kernel/bpf/verifier.c > > +++ b/kernel/bpf/verifier.c > > @@ -20313,7 +20313,7 @@ static int do_misc_fixups(struct bpf_verifier_e= nv *env) > > goto next_insn; > > } > > > > -#ifdef CONFIG_X86_64 > > +#if defined(CONFIG_X86_64) && !defined(CONFIG_UML) > > /* Implement bpf_get_smp_processor_id() inline. */ > > if (insn->imm =3D=3D BPF_FUNC_get_smp_processor_id && > > prog->jit_requested && bpf_jit_supports_percpu_insn()= ) { > > The patch needs a change description[1]. > > Maybe something along the line of why pcpu_hot.cpu_number not accessible > in User-mode Linux? (I don't know bpf_get_smp_processor_id() or UML that > well, just suggesting possible change description) +1 pw-bot: cr