Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp228719lqs; Thu, 13 Jun 2024 08:31:00 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXbzshVXlH8W4yVHbDqjxNSA/3+7rKXj+uIEa7Mr1zNQ/rEHhYuWsvbbwti130G9pYj5O6bCFbv+BUvRjI8fTGdP+L73wpVIERL56MEyQ== X-Google-Smtp-Source: AGHT+IG0BPBj7I8C7tutu5J6Aej6iepGy48dsHR/bUY3tyKi4jbv3DNkaEwnKGr+2Y+DX2K7wGa1 X-Received: by 2002:a17:906:5951:b0:a6f:564e:d80c with SMTP id a640c23a62f3a-a6f564edc87mr172869266b.25.1718292660494; Thu, 13 Jun 2024 08:31:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718292660; cv=pass; d=google.com; s=arc-20160816; b=SE9oTYJD+06XwgBeW0RKDUaBkyvD6jWkzlAxHVPMA3d1d9Gtw88anzMcff6xvQnwvO 5Zv9TbUns7pssAzGN7YlyDZ9RKkWaEBm68+DkyuTR4Ro+bYynED9XkCP/jzqUeG/pzAo IWwRPt42ZkBaKsEyDt0cuvPib0vmsaSgfSUwP+X0wEaBg2vf1dDBrhQedkdSSJLHIC10 Z+n4OAPD4yHWZci+WkXuXQ3Kbzp2EQkuNNvIgELeZc10uLYYiRKcdXD0uCfAscZ3kxzf JjHwDJyjhwmKtuF/DECreNWcU/piHKyKAi8WVW2USq0Jl+6foP7G9FHqfyQ/L1e31CvN OJ3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pnKa8ZO6T2nbB0qZaG5vmw7Gy5VTMA26IvvfcD7IrPA=; fh=gHrj1VsCUycrF1VnxvlmlPZG7FS4q3bwT/Q6BoJkJ5E=; b=x91lXx9J21sMASxPnakZ1GKasQzrcek8x2De5af8e+6T1luVygTgzeZsyiX2UsHm8a dSU8H9v6lomiRMCOvHb7zqUUXj3XzMkkxQv+eT3z6UIDfu2nJitp40NGR2g0Hu/KA8BK ApsBiskLkPSy0S/tp5KivFKBrMVFbfxiAjjoI+szm5jEeesgqTXnnUZvUhS5JY2Fhn9+ JJKKIfidHa+vdWf3yrItWWfc/nspQ1ZOujKDUk/gK+hA1BASxHbCmc0d6ZhxvHg+tnVz 8F+ZQ2bBx+rPPDJ9uXqHDEQJtQug/HzLl9RA9SHnHXyDNHlGYS4GXMzsWmLtvp7sG4aH Kx+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=Y+F6lLP+; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-213546-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213546-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb72d69d2si806947a12.129.2024.06.13.08.31.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 08:31:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213546-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=google header.b=Y+F6lLP+; arc=pass (i=1 spf=pass spfdomain=suse.com dkim=pass dkdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-213546-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213546-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.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 329BE1F21967 for ; Thu, 13 Jun 2024 15:31:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 74AA826AF0; Thu, 13 Jun 2024 15:30:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="Y+F6lLP+" Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 9CAB312D760 for ; Thu, 13 Jun 2024 15:30:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718292655; cv=none; b=RI6eWhAlaYnj+QlSuD+G7j8GBLI45woLUysF5wdZxdPHxCwD7Hs+ke9WHnzvjV2zZjZi3uic129G8xaF7sYVPeP0CeJfABDaOuUHfXY99jy4PlAsMAZ6mTRBcOBRJJLhfOWyhRkF/pAJEsrltPdwJoxWstCt5O/VB4JTUpJ7w/c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718292655; c=relaxed/simple; bh=J0YXcS0yVLMlNmLhiJtHAS5nLbSv266GlVGAB6y80OQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YrJuR/luGgpP5j+WSa5ouPjjr27zpeN3hGgyJN33eXI4lhGsuf52/n/QIa0XHWBQFGtJ1g8hb5029o4yaGiJEzMkKI+aQVHlXkUAqrw06TYoQUUCMrsnRqaMt3EXJjw+BNPi/dzgSMrAiGEAFzF3wcjd4AVDiuA6o6i7Q7/9akw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=Y+F6lLP+; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-42108856c33so14476345e9.1 for ; Thu, 13 Jun 2024 08:30:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1718292652; x=1718897452; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=pnKa8ZO6T2nbB0qZaG5vmw7Gy5VTMA26IvvfcD7IrPA=; b=Y+F6lLP+5YyXIdngfBKWGc+O9OfrEAlQ0zLuq0pAFY9H7mpx9jRxS38nf9AovDicg7 KEVxjTvvkY4RJA3HzM6lrJmreid0Mg+HF0Jc4lkDjN2l88JSZM7oIGNFUmTc7nVK5hG7 dlCEK5DjaO3JttQvM/7d0GXpGa9Am63ax++Gj7E5wvMTGDaPksQrI6pEg/BTQvsFhvHL 26s2YM410pjwHmOzxMf9vv6nnASR+iq/X61hW1AsazoIMaoSJAFg99kOYFaBDb+bSzBB JmAWasWFTjTyXRImQS32T+dbhUw/h3eawvYuUyxRhQJ5gSfM6YQm++m2vtPF3wS7osec j06A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718292652; x=1718897452; h=in-reply-to:content-transfer-encoding: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=pnKa8ZO6T2nbB0qZaG5vmw7Gy5VTMA26IvvfcD7IrPA=; b=sGVXE0uyYCUeNwdD1M/vTWvbM8KW93CXI0AvI+QzDMN9FEOMGX/n2OWKfftvLdkQqr 6+fhyiOubsQCtihFqQbAQDO5I5WAKrbMHETsSZjL2GFHdRprGuv5CFYzGs6zKEK6ILYK gJSeNiv8z47MQo3rymjNGxEomU0NcEJQPWKL7fivkOT08+roRQEFahG/x92OFsECplFz dPZT5yo559Lo4rcjfwbF84Lj3FxlRTb1gYMyvaPjXfqiukR+nXda5Ky50UaaUy3t0mLg pTmaWSESIAQWcmhS+3VxyzYtihYIYzbn1u+uX2vEdcPuapM54DBaX7BhsI3biXIw6Gzf nGeQ== X-Forwarded-Encrypted: i=1; AJvYcCXmJtPCNQP4uWQF0n+VQKtaiKRbGGA7vehQ9rsnFnceRvoz7oxPlz6jvcV/gug3hVniD4ESRMsyXdmr0D6sl522LYeH4vj7cS3iCOvy X-Gm-Message-State: AOJu0YxcbgAHT+TIVR/6bvaZMjTivjjRG+8u1B3W5o9+dQD5uXT9deh3 jsH4/SMYMz0OSD4Hznk/5hcEAO8m3UoUEdPCZq+wiBmdJ2kVHGBVBXCt1mOzwJBWqPb3jhQcWbu H X-Received: by 2002:adf:f24d:0:b0:35f:3145:a097 with SMTP id ffacd0b85a97d-36071901378mr3135403f8f.23.1718292651885; Thu, 13 Jun 2024 08:30:51 -0700 (PDT) Received: from u94a (61-227-71-100.dynamic-ip.hinet.net. [61.227.71.100]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4b956a21836sm389708173.136.2024.06.13.08.30.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 08:30:51 -0700 (PDT) Date: Thu, 13 Jun 2024 23:30:42 +0800 From: Shung-Hsi Yu To: Maciej =?utf-8?Q?=C5=BBenczykowski?= Cc: Maciej =?utf-8?Q?=C5=BBenczykowski?= , Linux Network Development Mailing List , Linux Kernel Mailing List , BPF Mailing List , Andrii Nakryiko , John Fastabend , Alexei Starovoitov Subject: Re: [PATCH bpf] bpf: fix UML x86_64 compile failure Message-ID: References: <20240613112520.1526350-1-maze@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240613112520.1526350-1-maze@google.com> On Thu, Jun 13, 2024 at 04:25:20AM GMT, Maciej Żenczykowski wrote: > Cc: Andrii Nakryiko > Cc: John Fastabend > Cc: Alexei Starovoitov > Fixes: 1ae6921009e5 ("bpf: inline bpf_get_smp_processor_id() helper") > Signed-off-by: Maciej Żenczykowski > --- > 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_env *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 == 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: https://www.kernel.org/doc/html/latest/process/submitting-patches.html#describe-your-changes