Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4190555pxb; Mon, 8 Feb 2021 10:01:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSE9DCDiuH4w6Y5+HglRCyBYUCAw/tnkpTihaa4zWxnLfFIAosFFKk8K63An/cfBaKvNSk X-Received: by 2002:a2e:9b16:: with SMTP id u22mr11820139lji.416.1612807306888; Mon, 08 Feb 2021 10:01:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612807306; cv=none; d=google.com; s=arc-20160816; b=toXNeixvaJPecBnDRyNp8/VELYYci3X/1AEfx8RiVQyjx8TGN1/sRWYe70sQNznjz6 S+61kdkfCEIcA+KTX21KMl6uqqBvrJpLfmx39t4QNjdOpiDl4qGktO1a+XpQJUR014sZ +E3z8s0Ng3Z9WDzNemzA0HPfzCeW17Fs+QtVn4mpEDuD3Vl1X4+Yx4cFRrT7lazpTaKK 3KpqX6wM+DxrBYj9M0U9nDlvRe8vtzNSAsvdYIGysjnawncd6dOQWTgnYb3TAvNNt7yu i+7waVLAs8aqMbDPsXB+d4LmbNfFnbOp+by9V85P1j2XxU1z0/DI9xeWOfQKNvJ3BRXn isjw== 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=gg+S9OF2FeNhBwYh2FsUw8uSn6rQJ+TaKCRN/fl/paY=; b=CO9n9YW5NfCEwr8nj7XXfKX3mbdB8cgQiA19cUgoSYy584TGAGqOhpH6aOdqNpUPdz tfW0xN6TA1eYLYQYU+7HxOG2qyk1wIiGblJ/SxBLnUKW3Ohn+HgPOKWfjMXFtFwOcwhr F54WXdec+Qcy3kJI9vA17D66gmbvsZlbFX5JdOJJwzPziyLl+xY3kA783FsVxFGcfssj 5oqPC1lslOF+yh8ZXBaFE/609rtaVazea/EBjMJWyI0OweWq8wYZw27wGAxErpj6ASXw hjpfkqkr84wVD3KtIEK6eCrSxg4KNbJjYBC2Nb/6rnJajAv7dZAK05QmlQGLh4sSWh/0 ex1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=W8iq84zh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp6si11136213ejc.532.2021.02.08.10.00.56; Mon, 08 Feb 2021 10:01:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=W8iq84zh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235227AbhBHR6C (ORCPT + 99 others); Mon, 8 Feb 2021 12:58:02 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:51949 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233439AbhBHPef (ORCPT ); Mon, 8 Feb 2021 10:34:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612798388; 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=gg+S9OF2FeNhBwYh2FsUw8uSn6rQJ+TaKCRN/fl/paY=; b=W8iq84zhFkXlyJPvuLqA0zP8RDJhfHt96e+boMez5yOCCPphBkTdVatoq10Q/GHs9TuP6i Fef6DECBHu3hbkHdz3FsJ5X5PMWss0Iq30m3vuByIFx7QWrGUisu7bK/ZvIEmFuLaMiiuj IZXuqFxt1wCwzy4FULTpvA2lx1YEHcE= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-100-cDQmanLKO2ibwJ3RVV6koA-1; Mon, 08 Feb 2021 10:33:04 -0500 X-MC-Unique: cDQmanLKO2ibwJ3RVV6koA-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5458180196E; Mon, 8 Feb 2021 15:33:03 +0000 (UTC) Received: from treble (ovpn-113-27.rdu2.redhat.com [10.10.113.27]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 368765C1D0; Mon, 8 Feb 2021 15:33:02 +0000 (UTC) Date: Mon, 8 Feb 2021 09:33:00 -0600 From: Josh Poimboeuf To: Steven Rostedt Cc: Linus Torvalds , Borislav Petkov , Dave Hansen , x86-ml , lkml , Alexei Starovoitov , live-patching@vger.kernel.org Subject: Re: [GIT PULL] x86/urgent for v5.11-rc7 Message-ID: <20210208153300.m5skwcxxrdpo37iz@treble> References: <20210207104022.GA32127@zn.tnic> <20210207175814.GF32127@zn.tnic> <20210207224540.ercf5657pftibyaw@treble> <20210208100206.3b74891e@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210208100206.3b74891e@gandalf.local.home> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 08, 2021 at 10:02:06AM -0500, Steven Rostedt wrote: > On Sun, 7 Feb 2021 16:45:40 -0600 > Josh Poimboeuf wrote: > > > > I do suspect involved people should start thinking about how they want > > > to deal with functions starting with > > > > > > endbr64 > > > call __fentry__ > > > > > > instead of the call being at the very top of the function. > > > > FWIW, objtool's already fine with it (otherwise we would have discovered > > the need to disable fcf-protection much sooner). > > And this doesn't really affect tracing (note, another user that might be > affected is live kernel patching). Good point, livepatch is indeed affected. Is there a better way to get the "call __fentry__" address for a given function? /* * Convert a function address into the appropriate ftrace location. * * Usually this is just the address of the function, but on some architectures * it's more complicated so allow them to provide a custom behaviour. */ #ifndef klp_get_ftrace_location static unsigned long klp_get_ftrace_location(unsigned long faddr) { return faddr; } #endif -- Josh