Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp29783ybc; Fri, 22 Nov 2019 01:29:45 -0800 (PST) X-Google-Smtp-Source: APXvYqwFzgxwVtDKFXnU+EYyPUH57Kx44nZWGVexCaXkxfTWeMTiLxtCZuG64VYJM7HQB/miYh9o X-Received: by 2002:a17:906:600b:: with SMTP id o11mr20630607ejj.175.1574414985338; Fri, 22 Nov 2019 01:29:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574414985; cv=none; d=google.com; s=arc-20160816; b=ShRPk1OXVaj+L+lXkgu43BNvB3pghL05QVM9R8tyJdgwWXk9wccou2cMMF8hcCdjn0 S46dspfOcI9ltKXifg1SJ1M/i/zCUTJKxAOF+en8OgTyhMIWkmw3crBJfbmf4VMs+0JN GhKwL8vDy0Uy8ptUWZ3jb/KdRzTlj/kS058A2YnlkXi0/ep50NsxSvZJEzo9EDP3l8dx w5wfe/p291R7/DMhPvhommMGxE+AM6KbPRUKGlwRNV80rtn+N6ZXVjEo+AGnysYCz07/ a6c4Z6/vVB2jIII/z+hA4Cw5k0c5cMPLjj2NQUJwmzSkiv8x6bYJuyEnhTc/eks44RIm zjBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=ZWKo15elkH1FQvG8vyxGP4up8J7H9p9RE89l0vbIdPU=; b=t2NlIdBNtEK01E6UMUF2Jkwr/TeGL5qdjH53VW6msVYq00YuAdXURmJfFj0++CvpVy pxRPdiTGkR8pw78DUNsmFTjLX0guHssJREVliNWtrIfUq85K2cpqcqhMiEaJsMjjTcvh U50UYzQSgvjhbzCO/00NF+xtBvLruRgoOc5hDj86QMHTvRQjhvGtQfq+Wbhse2lTyXfN LB+iBqjc6t9UpuolmT+9J+02ZO0zcS+zE8O7HrFMJCpazqFXN9UZHA7CATOybKMEkXgr 1TRWhEYBdM7cgwsz7ak/oSITtRSVwdqWM5/DwYwIRAobaNwRtB796yreerHzt4cbcbny Suag== 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 g3si3663444ejf.345.2019.11.22.01.29.07; Fri, 22 Nov 2019 01:29:45 -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 S1726655AbfKVJ2K (ORCPT + 99 others); Fri, 22 Nov 2019 04:28:10 -0500 Received: from mx2.suse.de ([195.135.220.15]:42546 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726417AbfKVJ2J (ORCPT ); Fri, 22 Nov 2019 04:28:09 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 5628FB2DF; Fri, 22 Nov 2019 09:28:08 +0000 (UTC) Date: Fri, 22 Nov 2019 10:27:54 +0100 From: Torsten Duwe To: Mark Rutland Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Steven Rostedt , Ingo Molnar Subject: Re: KASAN_INLINE && patchable-function-entry Message-ID: <20191122102754.5a007f66@blackhole> In-Reply-To: <20191121183630.GA3668@lakrids.cambridge.arm.com> References: <20191121183630.GA3668@lakrids.cambridge.arm.com> Organization: Suse Linux GmbH X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark! On Thu, 21 Nov 2019 18:36:32 +0000 Mark Rutland wrote: [...] > Was it intended that -fpatachable-function-entry behaved differently > from -pg in this regard? No way! I tried to model it as closely as possible along the established instrumentation mechanism(s). > Is this likely to be problematic for other users? I don't think "likely" is the right word here. "rare" would be even worse. One corner case is more than enough. > Are there other implicitly-generated functions we need to look out for > here, for which this would be a problem? > > It looks like this also applies to __attribute__((naked)) on ARM, IMHO gcc should instrument neither implicitly-generated nor naked functions in this way. Anybody with reasonable objections please speak up now. I'd call it a gcc bug; but it may take a few days... Torsten