Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp125278rdg; Tue, 10 Oct 2023 06:11:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG83b3mX/+Cg3VjJKed4QcWj/+Ur1VB4ts+mJimdwH384OOJwAHBzztxtGVvHKD3wpon06j X-Received: by 2002:a05:6a20:da9d:b0:16c:b5be:5f6c with SMTP id iy29-20020a056a20da9d00b0016cb5be5f6cmr10430194pzb.54.1696943507921; Tue, 10 Oct 2023 06:11:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696943507; cv=none; d=google.com; s=arc-20160816; b=Wm995Vr1dFrNWyXJnxp9hl5z8mFTXjA+Nhgx7ZVDpQS40SwtJ5T4rQdM4/H5mG+yYo +YSS/LCBpRw7hs5sU+Nah38IyOHssHKRcnMTF8IZAeLJeZ4ULoN4fmtwOB2cKnLip3in 1ClqzDEgDbR7IoBrczWrYYd23btTKfDjD4zQOVZKNEhRaSXp2VpzTuiKeL1SXkV97kkD YU2Hnlr5Y1WMC7uJreWv9DdeFWnnd8aGmd43s9clf7WMBtPsHY11hIjozwTYacFYE1vz JOsNjkBHyS03dq5rH8nBG3jvCwrZ1hZWZZxgBhY07boeVZ4BS+to7hsA5lkosP1kgs4R OfKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=s6hwso6prMDxVtqqxwRgLVjr6kJJ/eMt+5h8SrEfaZI=; fh=uLtpt4hgt+ZRjN9FuFmSixD7HUfoX26DL4bVEdLCqYI=; b=P4Gl7P48eTa30w3Y6LUnavkKmr+YhTeMZoeqHbUWf3TdIL914AzTGPcm2RpD9izJ7t tbQ5GhgexhgusR4RzQqXBnWztgaL6T/b2lJPRgxL5gxU8o/Sha7+3ABC+nwzJynvJpgC En8w648mHLATBx2ZuxuZeo4AGL4qPB7edJXqQXg8b8+Ee/TlcuXlY20gvayJnO8IfDSP 8GQnKys4TsHtJHoA/eEkvYivGcAlGa0gGxVCrWsKWvrjtJK2wbFBTODUcCKt5FRMoLUK mel89ZiDyLzPEOX6Exi8nVJU0l+EH5Tdt7Ex2I0RmxdxwumCHdkqZjuPxcjOvjO438jW 5ElA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=D7Hjwvga; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id t19-20020a63b253000000b0059cc8d682dfsi943675pgo.814.2023.10.10.06.11.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 06:11:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=D7Hjwvga; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 3D682801C23A; Tue, 10 Oct 2023 06:11:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231788AbjJJNLY (ORCPT + 99 others); Tue, 10 Oct 2023 09:11:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231792AbjJJNLX (ORCPT ); Tue, 10 Oct 2023 09:11:23 -0400 Received: from mail.alien8.de (mail.alien8.de [IPv6:2a01:4f9:3051:3f93::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 682619E for ; Tue, 10 Oct 2023 06:11:20 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id EE53540E014B; Tue, 10 Oct 2023 13:11:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id WjwUpLhPDHOh; Tue, 10 Oct 2023 13:11:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1696943476; bh=s6hwso6prMDxVtqqxwRgLVjr6kJJ/eMt+5h8SrEfaZI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=D7HjwvgaEuwNjby0WAPT/Le2DYgCXACPXm21ti5Srgr9Ml+u0PjDZHRqbPkYvrItm xAd1Af4xlme+kQEvI2rPtAQW6RNQVeZRXyVpop5IH96Mo15BAKIgccKqCIdKXojtYI 6hYIa5IsOwwJhim39J3YpLSjdCjk91B48N0udOEzmHVZIAcWrUqasV6CJcvc947KnG e2ZTyhKPwckfHPaLAeREr57FJrunRTGLTiLrfJkVpLCMqfTMvzAjYElR5iWt/DvHv8 vsseuS0KqGQV9makU16QKEu+6NmumZc2rGT8D5T12pY/z6Pg2+vCRQo1PftJtMsyl+ 3Qd2BLfFN42UAj/7c/uOE2YNnfwfouZC3aKotFWlDBwlhRqDFfOtAAJj9jwirV7gt2 mF+VRJkIyRS9ULEJvWYlF6R0MjCGcNb54g8hlpCxNh79y/mX2oWly5MLAYhrfRdMbd xR5S/MWhdQuFXTrift2BcgcAkc6w4bgKVIHIA1jJBNQgyJZS9Md9HAeVgM1OqJPuVp xOFFm81+ZEws8Os9u7aVu71cnZNERL0JjAe02qF+O45DnZlBwJHtXTj12PvO9QDn8a cBo9lD7sKEE184oNMFZUoj+mwH1RL0/yXCrNvxUiL/gqEkGnIo0+T7H3i4Q5T+J4ZP E/d1mmRBiy69wibl71K1BJEs= Received: from zn.tnic (pd953036a.dip0.t-ipconnect.de [217.83.3.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 1931340E01AE; Tue, 10 Oct 2023 13:11:00 +0000 (UTC) Date: Tue, 10 Oct 2023 15:10:54 +0200 From: Borislav Petkov To: Peter Zijlstra Cc: "Kirill A. Shutemov" , Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Andrey Ryabinin , Alexander Potapenko , Andrey Konovalov , Dmitry Vyukov , Vincenzo Frascino , kasan-dev@googlegroups.com, linux-kernel@vger.kernel.org, Fei Yang , stable@vger.kernel.org Subject: Re: [PATCH] x86/alternatives: Disable KASAN on text_poke_early() in apply_alternatives() Message-ID: <20231010131054.GHZSVNXhruJIx0iCzq@fat_crate.local> References: <20231010053716.2481-1-kirill.shutemov@linux.intel.com> <20231010081938.GBZSUJGlSvEkFIDnES@fat_crate.local> <20231010101056.GF377@noisy.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231010101056.GF377@noisy.programming.kicks-ass.net> X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 10 Oct 2023 06:11:33 -0700 (PDT) X-Spam-Level: ** On Tue, Oct 10, 2023 at 12:10:56PM +0200, Peter Zijlstra wrote: > Now, obviously you really don't want boot_cpu_has() in > __VIRTUAL_MASK_SHIFT, that would be really bad (Linus recently > complained about how horrible the code-gen is around this already, must > not make it far worse). You mean a MOV (%rip) and a TEST are so horrible there because it is a mask? I'd experiment with it when I get a chance... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette