From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (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 F05AA324B1F for ; Fri, 19 Dec 2025 11:45:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766144705; cv=none; b=axFFRfBcavsIfiBaS1TDjeIemdLMLBNcjVvz7kVGicH/jzm5p3MqXcFohhsnWfvFSKH9wsE8paJ3IdUT3Tj4HRC3wYXyflebiN/lks5xFSMoL5jsmc/9u4x7PjfBfQvUvXyHRApdLDV1x/TLAg0xNyMBiq3/f6HR3h4Q7h977NM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766144705; c=relaxed/simple; bh=ID4bQttFA8zqpsS/5nate7mn+oSQSb0sOs7DFgvHVT4=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=OMqCEB6EggyPe2Bp+d06MyikTkAZTU8dcXEpuIKCujf3kITTAc4DFD8ma46YDeTKHxPSP7RfDcvaFLM/7UCrISIjiq8O6gaTVinHFBi7tLPqCtAXPZCB2n1yKeEfaRTw13/ZCVSBWMMMgBHbHwQu1++zc+g+EMczh3yUwaBWuQ4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--jackmanb.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=U55Rd166; arc=none smtp.client-ip=209.85.128.74 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--jackmanb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="U55Rd166" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-477964c22e0so12865755e9.0 for ; Fri, 19 Dec 2025 03:45:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1766144702; x=1766749502; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=BA99OQkf8fASdQggxqsaHMpRUroLp5LCxZSxzPBRDSg=; b=U55Rd166UdbT+TRIlODy9eGJX3F/ZgHjlfCbdVmnS7MuOXLlf/g3BFuKcgHJbcDjco 5SLces/C29sPC1gGLcgokuQ5FMyHZeWOYxjoyk9Q3cGyvqM56PlY0tYCM7fiDv36fx6a nMB3/Bf6EZsutCpE05b5XQvigKlq4B5PwhTM7/AtyZ5lQeHvMWOZRbXeGPIZgv4vi4w5 UkvY1MHos98O4tq8HwWD8nUqKinxxVMc8GND20Eaytp3UEloljn7A3qNXDEmlhuGmseC 3FNESPzWrxj1rF3uzNXKV/bu6xk8vtURQaCjUv5tT9AIv0TTzODJVCql5yYWiWfDV/il WY1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766144702; x=1766749502; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BA99OQkf8fASdQggxqsaHMpRUroLp5LCxZSxzPBRDSg=; b=ni3lN5RlHYYpSt2h0fXqzUYlYhyotQTSagcsEhJBTCBy3mlMzFAD2wvK0MZucrgosk Fo1o/tVX9/bzALAXazRed1fShT3qKgL9O9PvsDPuYPyrgCCQ6+VLDRcVDaqRmv35ebZD L4SmSxwt045pd+tjQe8/S4rjknHNGe91GErt02osQxeF2PJ1rOMFYZJePv9acFmBjvuh oBxvO9Zf96eU2LBNqe3Y4/fe8cYjK4m8a31zo2FZQfbRykt47RBpIAaF2v6zU/kjg+fJ QlDoLIuTAUjNJz25iqTHnpFJzNJNbg7qLUCKlDDoL/kmWOdrpdqAYEpIE2AvXFDUjsyC CUcw== X-Forwarded-Encrypted: i=1; AJvYcCU6iNwa871Xvem1o+Z1KmuNuY3BIOQdb++sNGjPqOOCiZwjkUs4NhcXKi3uIQmrEqMn7nK01fqmi9nSI5A=@vger.kernel.org X-Gm-Message-State: AOJu0YwNfhIPv1LZKB+lkf1hI9EEzZYjDWm1cECom4d6+1g7gKNy4Jd7 YxJeJg4Og7iWLJgtK45rt6jCk/GD1UuM4+ihr9lLnCMgmxvWgKubPMLOGy/HzKAQuWeoQwpLJWy FGXHFtQ7a6WX+6g== X-Google-Smtp-Source: AGHT+IGtc7uhO57hf3FfKwyr39SXu+GjbYT//uhiOsPmrmuqZlo5zaUrtT9fGuX38gwDNjbsBjrG15h9xjaYqw== X-Received: from wmik22.prod.google.com ([2002:a7b:c416:0:b0:47b:e2d9:2e56]) (user=jackmanb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:4746:b0:477:9fa0:7495 with SMTP id 5b1f17b1804b1-47d18be144fmr25540095e9.14.1766144702311; Fri, 19 Dec 2025 03:45:02 -0800 (PST) Date: Fri, 19 Dec 2025 11:45:01 +0000 In-Reply-To: <20251218092439.GL3707891@noisy.programming.kicks-ass.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251216-gcov-inline-noinstr-v3-0-10244d154451@google.com> <20251216-gcov-inline-noinstr-v3-1-10244d154451@google.com> <20251216130155.GD3707891@noisy.programming.kicks-ass.net> <20251218092439.GL3707891@noisy.programming.kicks-ass.net> X-Mailer: aerc 0.21.0 Message-ID: Subject: Re: [PATCH v3 1/3] kasan: mark !__SANITIZE_ADDRESS__ stubs __always_inline From: Brendan Jackman To: Peter Zijlstra , Brendan Jackman Cc: Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino , Marco Elver , Ard Biesheuvel , Andrew Morton , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , , "H. Peter Anvin" , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , , , Content-Type: text/plain; charset="UTF-8" >> >> So in the meantime what's the cleanest fix? Going straight to the arch_* >> calls from SEV seems pretty yucky in its own right. > > This is what I would do (and have done in the past): > > 14d3b376b6c3 ("x86/entry, cpumask: Provide non-instrumented variant of cpu_is_offline()") > f5c54f77b07b ("cpumask: Add a x86-specific cpumask_clear_cpu() helper") OK, let's do it this way then. >> > For the short term, we could avoid this by using arch___set_bit() > > arch_set_bit(), right? I don't think so. Currently the GHCB accessors ar using __set_bit() i.e. the non-atomic version. Am I missing something?