Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2384410rdb; Tue, 10 Oct 2023 02:13:23 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHGBP3/N5TI2An3/Em7jh3VDwu3j5RtnLCFSLdE6llLIgTCDYE9/TZ+eMrYhfaOIl9wSeUe X-Received: by 2002:a05:6a20:430e:b0:16b:8498:d9bc with SMTP id h14-20020a056a20430e00b0016b8498d9bcmr13100359pzk.62.1696929202914; Tue, 10 Oct 2023 02:13:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696929202; cv=none; d=google.com; s=arc-20160816; b=nkkfxF64uBLdLpwiWLpACwo33gqkfVFQbH9A3LbBm6c2QooArXHLR8aYsunIxARgGR CJmWW6mN06jWW2b/MEhUYMrb9/nKctk+edyjwPuc49pheok1+E8+C1tOTFDe0IOTjsB1 KYFjUAJNoLiTCPrlx0xq4Wge7bvgMcazj1JsguwwIEuM9elxFrpyXKpS5Nn4geVxw+qL XZzX2KmPwxi6kdFNtMb5qUE2icMWvmpl7UemYIb4CnTOl+vvbiJLY3yz8GLSCsBedoj9 sY43btrLZWvb+cLiFQRqop4TXG2FPzlrOtwBJTvnBzANEUjVCLNd9/Gi9JXnA5Ma+j2N edBw== 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=r19Pofs5YPEJUqm6xMsNDsii8MPrvf//VmD3Yjpm95U=; fh=tMvHKGT1+QcASgZQMJhW3iAjRPPaJkqDzc/tI8OKJZo=; b=ZUvg50BRj0YJPoYtbSaQxL3CjYfal/LRZZB4pYPkifip7G6FfcxXieUUNsaoiP3xt6 GDH3vDjatGXHjBGS+z0kdEFQ05eKLseBlj/g7FkJ4zacmFKpszUJ2eg0xFnFtZWzi5By JAmd6DOHnJkoZRKRVpsR3z6hfDO1k4Qm9MSMafFGB2eHBKmPGajqV9kabZe6lMzAmCz3 4+dwaiw0TM87EuNQxsm+klDxkjdQ752MhzqZr9JSmUNXvKhYVS0a8GqL8LmJrm+CdbgT ILgOULw7h/7FqGK6TqvJd7BjEWHj6+ulFQwxlR3yXzoI5Ht8LA+feLuR8OMsvoQKhDpZ bJ3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=Dm3EQFpf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id ay6-20020a1709028b8600b001c383a64ebesi10753039plb.319.2023.10.10.02.13.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 02:13:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=Dm3EQFpf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 4742F80293FF; Tue, 10 Oct 2023 02:13:20 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229787AbjJJJNI (ORCPT + 99 others); Tue, 10 Oct 2023 05:13:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56408 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229516AbjJJJNG (ORCPT ); Tue, 10 Oct 2023 05:13:06 -0400 Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31F8093; Tue, 10 Oct 2023 02:13:05 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 0420540E01A5; Tue, 10 Oct 2023 09:13:03 +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 zIxRtCHyP9KY; Tue, 10 Oct 2023 09:13:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1696929177; bh=r19Pofs5YPEJUqm6xMsNDsii8MPrvf//VmD3Yjpm95U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Dm3EQFpfNtri1vigfMJccC2yNJbZT6vhdQioD8q3IYIze751eDuMqvVDiZ+MrPpPg WkFFqZ1ghjebGRdhZzgSssger6VJDsuV3ITVEludS7a6b0/yxKkl+NvlIF3cwa9CPv OrmCnjFJw85mimCLrpzqEs5oyGMsBQMpWDARfBYOD+M6tPtf1DObiYYG+Lkke6LDhD pskfIp34JLZokB/2P3mBwzWzFeiWUNIXAlPsfFvztCOasxL1oW084EDtJHeL73EfjF GiDtM02o2bsB2D4CDz7LlKQQzmIpbcS/ZYCkWR8KF5RbLANUvPemWEytmIse8+X7qa aJeAZ9jIHp7nb8Nd2pNcGRB7OXOmfAFzslhpdJd457SGlWPLuKg9Z8rWOyCWdKja6z zG2FrWlPABRvCjw3IRNp/mKopIWLRtzpuccoJIAuEQK52OcJ44LKvL3opxPqVDx1Tj 8vElxElD/Xl+nZO2y56417G37ie1sOlSodtgxW9asZJOKTUt6BYOB/5Y2pXw4tmUPp FtOgkBYdcwpl38XsbuYU8loqJqPjUoAIAzbdWMPWnpaIDgprFcvV+/C/BV1ND/r1Ku AEVRVQKDpltaQXwe5m7KLGQ8jSjcBEydWvToyWCuLlOm1KmQGEzV62oqK4ITubTB9K rCydKoJLthx4FhKYXMBS3Tao= 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 2137E40E01AA; Tue, 10 Oct 2023 09:12:41 +0000 (UTC) Date: Tue, 10 Oct 2023 11:12:35 +0200 From: Borislav Petkov To: "Kirill A. Shutemov" Cc: Thomas Gleixner , Ingo Molnar , Dave Hansen , Peter Zijlstra , 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: <20231010091235.GFZSUVgzTetLj2K+s8@fat_crate.local> References: <20231010053716.2481-1-kirill.shutemov@linux.intel.com> <20231010081938.GBZSUJGlSvEkFIDnES@fat_crate.local> <20231010084041.ut5sshyrofh27yyx@box.shutemov.name> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231010084041.ut5sshyrofh27yyx@box.shutemov.name> 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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 10 Oct 2023 02:13:20 -0700 (PDT) X-Spam-Level: ** On Tue, Oct 10, 2023 at 11:40:41AM +0300, Kirill A. Shutemov wrote: > __VIRTUAL_MASK_SHIFT used in many places. I don't think it is good idea to > give up on patching completely. Have you even looked at boot_cpu_has()'s asm? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette