From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 82052C4332F for ; Sun, 11 Dec 2022 03:32:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Mime-Version:References:In-Reply-To: Message-Id:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=fA1S4PTbZfarLNTkl0YPLSMAfX//x7IypeAqyh/TYXc=; b=GfbFLdU3WqU64q QOC/2tuschx5jl8XmrKm+JFTMOwfiLPcKNpQ2B44SiKNAI7iIemV+4HIUt0dgyQ6x7encDU6Dm1Lm jSSI51PA0MF1edS3C0xoiayv5Wn+RYtJFgHAYAzwQ/kdILwS6uw9GQ2JKlhUjMUoFojH9JMGxOb1n su7rbY20DPIhXHlnUUfLyr6RR/1X1IXr4sE9ew5eXclIYz5SvZqqX2khIHoKtZG4Fm8Z1JAVwlleF tc0rTe7pAD0uASussWqtS9CA5CJvmHswBpjbz6YS1s521zMkEuGz5U1Vtas58c+b/hhhgV+ecFOpN 3QuunCavQw7ilQcQtjKg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p4D32-00BGEJ-FD; Sun, 11 Dec 2022 03:30:40 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p4D2w-00BGA2-U1 for linux-arm-kernel@lists.infradead.org; Sun, 11 Dec 2022 03:30:37 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B588D60C44; Sun, 11 Dec 2022 03:30:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93F97C433EF; Sun, 11 Dec 2022 03:30:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670729433; bh=wRIobwquSy08Tv0LJs3ziIB87YrLx/8nhlifA+ng4tI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=COwvuUMhLT1w595/Z62ZeDhM3fgXSsL9WJGnzmuog5Rd3DY87jZre81QsY0v9uRVQ atmFGugj0dHYz8J2FtejpBu+P0NVXRMh1sSrdatvYr5Mw5pzunI4qPNt47zqTDdg2+ YWL6kVhzgzXF0eiNblr8S+vBNyvWTA7epWJNG0EraOv7eOCtb1APygannpY7q2HwkG OAytKPRissF7j0Yq0j4Gi4LVzVcAQrVm9LtmqCWX8yrjyQ3wO3N5ju6sK8BQ2cMn+2 QmifXw1Kz2OSgRedSoS+iYO24QIxKlzvibIPiDMnsqN2nkgChaxmB2r8OWjiaklRGn DLPo1NuYFUGaA== Date: Sun, 11 Dec 2022 12:30:28 +0900 From: Masami Hiramatsu (Google) To: Mark Rutland Cc: Catalin Marinas , Will Deacon , Mark Brown , Kalesh Singh , Marc Zyngier , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Sandeepa Prabhu Subject: Re: [PATCH v2 1/3] arm64: Prohibit instrumentation on arch_stack_walk() Message-Id: <20221211123028.3b1aa794a1bcaf7f6dc92ac3@kernel.org> In-Reply-To: References: <166994750386.439920.1754385804350980158.stgit@devnote3> <166994751368.439920.3236636557520824664.stgit@devnote3> <20221206094137.389e4c374f4be060af19f33a@kernel.org> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221210_193036_372501_7C4E9CA7 X-CRM114-Status: GOOD ( 20.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, 9 Dec 2022 11:16:34 +0000 Mark Rutland wrote: > On Tue, Dec 06, 2022 at 09:41:37AM +0900, Masami Hiramatsu wrote: > > On Fri, 2 Dec 2022 13:17:30 +0000 > > Mark Rutland wrote: > > > I had a go at testing this patch, and it fixes the crash with the reproducer > > > above, but there are plenty of other instances in stacktrace.c that lead to the > > > same sort of crash, e.g. > > > > > > # echo p stackinfo_get_task >> ${TRACEFS}/kprobe_events > > > # echo 1 > ${TRACEFS}/events/kprobes/enable > > > > Oops, thanks for pointing! Hmm, I thought stackinfo_get_task() is an > > inlined function usually. Maybe we should make it nokprobe_inline. > > But this is just one case. I need to scan all symbols to trace... > > FWIW, due to other instrumentation issues I've started doing a larger noinstr > cleanup on arm64 which should address this, as fixing this properly involves > also modifying a bunch of underlying helpers (e.g. preempt_count()). > > I can Cc you when sending that out, if you'd like? That'll probably be in the > new year. Thanks Mark, yes, I'm interested in that work. Until that, I'll finish making a script for testing kprobes widely on kernel symbols. Thank you, > > Thanks, > Mark. -- Masami Hiramatsu (Google) _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel