Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp75232pja; Fri, 22 Nov 2019 03:40:38 -0800 (PST) X-Google-Smtp-Source: APXvYqzKwyYjUE9ltbdTxX1B5yjrGXrEak7G2wKmn0dEPn80N3grrAIQy0riMKjIxvzark5IfKPA X-Received: by 2002:a17:906:344c:: with SMTP id d12mr20800673ejb.227.1574422838294; Fri, 22 Nov 2019 03:40:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574422838; cv=none; d=google.com; s=arc-20160816; b=y34JWDQoKTu48Y2X0rl1AwAecf0ywG0rjAYs43nUeWg2RnI72fty2KBjpC/RIIDyRK P+bcVJ7bE9YuXzqPbpXQG8uoSLwpuyJJ0zcU7ruCeMQW7+vW4zJfuXdYIYuIFP1RmJqc q0DK+hlvUin/kbsoVBSZAuoGgpf5gwHCVSeVHp4AIyUw143FIm3x/xELRQvhA5HEREBh 5WAjHXsHZXPP7XtNUrmImMM8EvcHF45R3DnhTRcACOMeTeVyT1JJlJ/dMBICsAP/lAZU 98P5HIsmapjw3IqGBgXyYEYeA2/HxyzRgx5BK158F/KPWXBtZhvpmicYbNY3N+HTIarR +scA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=jivmBazQ0vKaLB6K35aoGUvXY+2Q90b82pYbSt2uki8=; b=yula/h+mGO8CDoBZuYTy6OtaggWp3mQQi0rVdSIx8vqLHu1pZiPk+3EYs8VH5pWm5x huXMHY+eJElhrv4ErEr+5VBeqr4QzXLcBZmPgtxlKYvQZKXgmbphtOVdO+IYnBefW6so 814YY2u+rcuH0g2XUuLw/4+8PJZJO+s5mghj68NcAvxDM4pCzTPS7BQs+IzMCHL3lLTE vT4Phj8vtpeo6ULXyR462OaGPPAPDq2kzGAD61mT32qY9/r8H1muNp49c0Gzk6194pkj xQ1VYDjbcpNTIDXj19BMVotqarJiKC85oeF30YnHFOF80R4MVKdYqXzj9sON0J4ZAglo j9uQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q25si4062641edw.222.2019.11.22.03.40.13; Fri, 22 Nov 2019 03:40:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727437AbfKVLgC (ORCPT + 99 others); Fri, 22 Nov 2019 06:36:02 -0500 Received: from foss.arm.com ([217.140.110.172]:46170 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726548AbfKVLgC (ORCPT ); Fri, 22 Nov 2019 06:36:02 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 82058328; Fri, 22 Nov 2019 03:36:01 -0800 (PST) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B71083F703; Fri, 22 Nov 2019 03:36:00 -0800 (PST) Date: Fri, 22 Nov 2019 11:35:53 +0000 From: Mark Rutland To: Steven Rostedt Cc: Torsten Duwe , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ingo Molnar Subject: Re: KASAN_INLINE && patchable-function-entry Message-ID: <20191122113553.GA16287@lakrids.cambridge.arm.com> References: <20191121183630.GA3668@lakrids.cambridge.arm.com> <20191121142737.69978ef9@oasis.local.home> <20191122113257.GB15749@lakrids.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191122113257.GB15749@lakrids.cambridge.arm.com> User-Agent: Mutt/1.11.1+11 (2f07cb52) (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 22, 2019 at 11:32:57AM +0000, Mark Rutland wrote: > Another option would be to have arm64's ftrace_adjust_addr() detect this > case and return NULL, given we don't need to perform any call site > initialization for the redundant NOPs. I'm just not sure if we have all > the necessary information at that point, though. Whoops; I meant ftrace_call_adjust() above. Mark.