Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp73931lqs; Thu, 13 Jun 2024 04:25:51 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX0Fl6SPu1vs+CuxGt4SWDXd5gKEsQwm1XjJFnm7KzBQFcX4/a1AvMvz5wl9K86FX79iV7+1hry6WCxcTsU9uuXafF5T9A0S/5UZIBTfw== X-Google-Smtp-Source: AGHT+IHhSIhCiMEcM5iEk6EokrHkJRLH6vahvCYYs/ZukfAjdCLhzmgnqvjRO2MPLBTWA4HUIE8c X-Received: by 2002:a92:ca4d:0:b0:375:adcd:e6db with SMTP id e9e14a558f8ab-375cd0606e1mr49054435ab.9.1718277951377; Thu, 13 Jun 2024 04:25:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718277951; cv=pass; d=google.com; s=arc-20160816; b=D+EarPZUHSZXpcG/n5Jkapwy9Ciw71mQjzcaaIWbt44LxDax6ztQQWS3C9W3NA38r4 nwxQaNUkb2n/R4Xo5DRG8M6tZRhS8jVwUTuazZd1XtDZUBxr0s109sOXlQ2q8iSIxTKT mSYvEfsqXECB0u1wVBs4WrZZ785RH4lj4+zLQJYKg0Ah0tv/Y73zqIEbZsSqveu/CuUQ IcWV8dghP2bx3FYCdgIK6OACuZm0A2tKlD4LL3tIYRwlR8bYfGNRvMPKob8oELpQ6wdd vjdcMUzWG9EuQdn7tuH8ZkbxrjjPOpBXNBtLnFCbn9fgb/YHpWuyprqLBQDp2vnhPSCX cwhg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:from:subject:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:dkim-signature; bh=lYU5Qi8biKRQ+V307T1KahsI7+1YeIx8/OH0uEw2Xw0=; fh=qWR+7h8soq1i5m+f3zIVHAQi0WjIaxlcUjTxEFh9FaE=; b=LZFGQVMI85FgiZHTwPvswsAAOk0CNv0otg1uuB7hQgL5ThKKqCJM4t6uLkYRoByh5d HGk6JPrxf5wnu+dVzg6IUbBo5IxTIW+kw8CZE0wmkIDhEcHNe2gQWgw8iTZDm3OqkMXp 580RI97fwMyYvVgLHV1QeoEOw1lfa78V2r7iJ9LVSqQSryEfbjXolWIl5dqo2O6LK1rl sPuz7R7OP3Fcx4C1dGTc5SulwnR6rl0DzwyzdP2g9Um1eLfP1T+ZO59oMCsROpPEEVHJ b9MJpNUe6gN5GJOoG0M95FtUDm3nuFSBFKBxIGO8O7zUif4wfGW7kUQp+sAYoD3R+54B A/FQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=oJooeywx; arc=pass (i=1 spf=pass spfdomain=flex--maze.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-213090-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213090-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fedd4f453fsi1155251a12.96.2024.06.13.04.25.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 04:25:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213090-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=oJooeywx; arc=pass (i=1 spf=pass spfdomain=flex--maze.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-213090-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213090-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 544F3285EB0 for ; Thu, 13 Jun 2024 11:25:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CFF96143733; Thu, 13 Jun 2024 11:25:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="oJooeywx" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (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 A57B35BACF for ; Thu, 13 Jun 2024 11:25:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718277942; cv=none; b=qikWTX2isKX/R6EXGisLQH2azT9CMSATcLEYMwBRCcsrE0UpRNwTLZT07ayI3b7Li0m1mfR8X6ljaw1R7QbjGPZyJo17f5lPxc+ldl9uBV5W1Bw7Kpz1rSEPbS60L28wnQSbe0tC1/hHMaqGLeJqTQ28fJdps+vBFl9Mci69E1Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718277942; c=relaxed/simple; bh=dIEuACjsltwpJD0V+bskvqcb6UYaTtASIQDE9vOPI5Q=; h=Date:Mime-Version:Message-ID:Subject:From:To:Cc:Content-Type; b=mxPhDCsZXeleMagden/YygCXgmXpM+Zkr9NiZSJQFbypP/DPv8mLjZfoGTVj3bIvS8HVys0B/i36wGp7oppQJE92P16+VcZokkmCm/j4+0frX+WFSn+pDyf0mB6OCaPwFzHg9ON+oujtWfNLak0GzUDsRrY34yQgKhaMgHBtEs4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--maze.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=oJooeywx; arc=none smtp.client-ip=209.85.219.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--maze.bounces.google.com Received: by mail-yb1-f201.google.com with SMTP id 3f1490d57ef6-dfdfe3d9fc8so1682504276.3 for ; Thu, 13 Jun 2024 04:25:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1718277939; x=1718882739; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id :mime-version:date:from:to:cc:subject:date:message-id:reply-to; bh=lYU5Qi8biKRQ+V307T1KahsI7+1YeIx8/OH0uEw2Xw0=; b=oJooeywxkO0d4Pj61kKsLrSQs1B3a1Tss9sQOUwYGjbxN7OGgVbqr5mA1/xQIyCyz5 S51ISzftTY8juze5o5YpEJSHgRGyfoPFhLM5EXukrM8F/8LsTGYHuebR32fIIuROY8BU Kbe/oH7otdcUh8PxEgBL3mEcZV/xO9qk+dd2/xLXUw5humWzrs5A0T2GFAZrcN5LxgV4 KIOYZpDUl2d5QqCJ3YzmpzrTtm+1o20q9dMQaUeXFibm57f28s5Eu5o9sWkwlV2/tSMb uxaGeU+M2MXdXEVKNXS8EI9SDNDEApRGHG5QluX6j/qYAmadGKs7lqDuWBTDxWpn/1OP ANJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718277939; x=1718882739; h=content-transfer-encoding:cc:to:from:subject:message-id :mime-version:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lYU5Qi8biKRQ+V307T1KahsI7+1YeIx8/OH0uEw2Xw0=; b=FF+VZmvitn6A39qwxPJEgnZMY9Ii27NL+wSkNa5JMvI21JF1tmqM5ATxuofCOYVKmk 1sZ4We1/NHdgZ0d0ys2r7hX1EuK3WfQVY6dN1DjfioyFaGg/+UScjo2Z4CZpcyx+UMwO enon8fmYKi8V6LCcs26A2sxdYVAXPFWKDo+kI5DumBfyyuChEGAZg9qxtOYYKRCpoVCj vWeKr6ZKnua7UWM/UEkvvs0j14Ts07MbY7pm2qZad6TfS2XKLmiJdEPM3RBWWcrLTeLk KzhRdlOMtUFl9Bt4sa7/tLvh4VhziMX4NDSr0+XORT3Lr3mGZDUcJlbkW158bBFhpMtQ uThQ== X-Forwarded-Encrypted: i=1; AJvYcCXGJdDP3iD2ywYrj4n1xS7OjE5Bo9FgONst7PPQKi1a9WOD825YfdiksQnvWqYDO3wVArOHaSsRdPprtdbiYSDFi9Isc4h7WqGcll76 X-Gm-Message-State: AOJu0Yx4TlKRUxbH3UVKwcFcMevnTKu/Z3tsSqY+srh9IVw7JXBikbQY SSmdDeUArHlNvpsh6hTnvMfugbk8f7HVfV/ZDmMAY/XNfH08G3yNGwLxI7ditH4KeZIMcA== X-Received: from varda.mtv.corp.google.com ([2620:15c:211:200:39d0:ab84:9864:b0c6]) (user=maze job=sendgmr) by 2002:a05:6902:706:b0:dff:4a3:2def with SMTP id 3f1490d57ef6-dff04a333edmr496451276.10.1718277939510; Thu, 13 Jun 2024 04:25:39 -0700 (PDT) Date: Thu, 13 Jun 2024 04:25:20 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.45.2.505.gda0bf45e8d-goog Message-ID: <20240613112520.1526350-1-maze@google.com> Subject: [PATCH bpf] bpf: fix UML x86_64 compile failure From: "=?UTF-8?q?Maciej=20=C5=BBenczykowski?=" To: "=?UTF-8?q?Maciej=20=C5=BBenczykowski?=" Cc: Linux Network Development Mailing List , Linux Kernel Mailing List , BPF Mailing List , "=?UTF-8?q?Maciej=20=C5=BBenczykowski?=" , Andrii Nakryiko , John Fastabend , Alexei Starovoitov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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_env *= env) goto next_insn; } =20 -#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()) { --=20 2.45.2.505.gda0bf45e8d-goog