Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp3552562pxp; Tue, 15 Mar 2022 00:33:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwlBIWXQQWJ07/UaFarzU08I6fJV6RKOKP6lxWwrhGAo2tHQgh1GghHoELR50EIyZibU9A X-Received: by 2002:a17:907:968f:b0:6db:a3c5:ae3e with SMTP id hd15-20020a170907968f00b006dba3c5ae3emr15892479ejc.770.1647329625388; Tue, 15 Mar 2022 00:33:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647329625; cv=none; d=google.com; s=arc-20160816; b=NhIzlqVI40k8H364NH0cReIX4uE3WgQ+t0fSdy+iJabW/X3HxcpSZDiya9FZkMWW6a DJFgmbW1y+fo7jWalaI9QNnGWIuMKQXCYpDfb8mkFHP428y7dZbss6V4Ujxf0HMY3nWB rDaBi/XyGB5VVedaftoazNY5WgtBC2lIK6J9GhLqiSp4oZ1HKAC6KHm5Omc8xBZM2qAS JQV9qqrbJW3Dx3bMV/Zrr8D7aHD8B32BwOjMN8GziaU2Ja3wEaohgYY5nWKEHowzbC/E MoAgUC+ylHUqBZuevSwPRLz2m1dnEJN1g9f3SA4271dDL8d2Q/0jeJHyuKTbXoGmph07 TN/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=eHa8uBo2dOC/GF+D9znnombschZWnVMuqBcTJw3T+WM=; b=VxvB2QG80XkrFoRskYnmWQ8I2syobctB7UGyV2CtTcPCs+FkZjqrrZv7tMTLZ6nYdg jqrrDYKAPvQr6eFwx6zydwKQ9vVBUIW5s/Wja1fBqwQ5TM/N4+MZmn8dqltEgTLUwyc2 UG6h2tjTxiW3upEF5/yXbXV0fJ+irrMA7rtvUHdh+D67BqXAugJSXy6IGSn8jVZIJdjd Rqh90mI0Gs6Sc47jKe0dHNuXvUYpFkeNnRTahKM6+E2pqigDRF7KdSBKTowLpCYTHvdp ezxYY5qq7k+XRf7gsnuB4iDSWY+2/bcdRY/BsWWVQMyO4QVE66X4gX3wWvo3Y79cxfKM sYbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=DjsaTqrX; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id fj9-20020a1709069c8900b006dbab289ef7si5722984ejc.1004.2022.03.15.00.33.19; Tue, 15 Mar 2022 00:33:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=DjsaTqrX; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242759AbiCNPwH (ORCPT + 99 others); Mon, 14 Mar 2022 11:52:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242754AbiCNPwG (ORCPT ); Mon, 14 Mar 2022 11:52:06 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 197D841F94; Mon, 14 Mar 2022 08:50:55 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1647273052; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eHa8uBo2dOC/GF+D9znnombschZWnVMuqBcTJw3T+WM=; b=DjsaTqrXZ94+z7hKUrn/i5p2dKoprwNnph6knuv9/8OoD0WmioTvYQ1I8COlRSXpkn8zTc LBkUlypG+CB46tNXRvebDO8D6J3Up0OKH68DidAjEWh9Dup6Wdpu/cuH/hSXJevVqHRE7p 5KDyKSU1ah4EbZ66dW+MJp2nocTPeEYlTNvtQdMnU3yv0YE0/yzCigoObBn9hhR18fNAAn 1eI1A01LIXPTFGsvZeLGIr+1DggjByFLiAByuSUfnVcdhisXQkY2xm0v96H4E/iPPvDD33 f/6aKDJ/VYzyPrCQEjTt1A4SaxbV4gYh17BRHT/R/nPS++aXUAKR6sxGqPfkhw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1647273052; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eHa8uBo2dOC/GF+D9znnombschZWnVMuqBcTJw3T+WM=; b=Ym8kcXhUrvscVkKD3kpSpxEcykx13Nd0h+U9OGdQHERjo5nuSvtmHzI+f4Q0rdDsCPVfX+ fmMcEXR7Gk1BjwAg== To: Junaid Shahid , linux-kernel@vger.kernel.org Cc: kvm@vger.kernel.org, pbonzini@redhat.com, jmattson@google.com, pjt@google.com, oweisse@google.com, alexandre.chartre@oracle.com, rppt@linux.ibm.com, dave.hansen@linux.intel.com, peterz@infradead.org, luto@kernel.org, linux-mm@kvack.org Subject: Re: [RFC PATCH 04/47] mm: asi: ASI support in interrupts/exceptions In-Reply-To: <20220223052223.1202152-5-junaids@google.com> References: <20220223052223.1202152-1-junaids@google.com> <20220223052223.1202152-5-junaids@google.com> Date: Mon, 14 Mar 2022 16:50:52 +0100 Message-ID: <87pmmofs83.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 22 2022 at 21:21, Junaid Shahid wrote: > #define DEFINE_IDTENTRY_RAW(func) \ > -__visible noinstr void func(struct pt_regs *regs) > +static __always_inline void __##func(struct pt_regs *regs); \ > + \ > +__visible noinstr void func(struct pt_regs *regs) \ > +{ \ > + asi_intr_enter(); \ This is wrong. You cannot invoke arbitrary code within a noinstr section. Please enable CONFIG_VMLINUX_VALIDATION and watch the build result with and without your patches. Thanks, tglx