Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6143074rwb; Mon, 5 Dec 2022 08:28:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Vrzh7XBeZz6BVKsp/F3yYCsQFSxK0SfYyEdbRj6plD2yrPZXe/ygvB6f3tzc2y5GuEGPW X-Received: by 2002:a17:906:36d2:b0:7ae:9c7b:4d5c with SMTP id b18-20020a17090636d200b007ae9c7b4d5cmr68254260ejc.598.1670257735117; Mon, 05 Dec 2022 08:28:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670257735; cv=none; d=google.com; s=arc-20160816; b=TxsNNNMhcPajOyyoQeqSf14BLKKw6xq+KapbA/UD9jYaDS+iU86Sa8yc0XtYzyHOkF ANWCM11nRmTnLAq92tzYd8ssqHg//cHX17gk+5sTjvSroYrU81q/9ncH7EmwfEZ1H/Pz DKY3csgFnuJFTsGhr95yyPhOAX4M0uXXEVxE306FekKK+3cj52sjHQSp7ZUlbmZAPTAS CqjPsLJYPqmXkIce6qnXNnOG6YpOslb2C1Q98q/fPmgX9EGB8yn95iuEYDP2s9LZqksW oedn7LbOyGoiYkVSPX1uaw3kadNwVxZ6/ZCNHh89EMi00lm9YhCCZdbv/9i1PSkjHqQG BjDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=dQw8nLHO9Z+HXxG62Pa8y5S9eUY0MNtk+YOjr6XMakY=; b=mOo0wwtCynaHywuc7XV1Mu+xaztyWyWCdBS1f8Q8173wP0JDQySm78Y9Nc5lNBcPtc yFTmIav84JR+ReRBClASaSpC1AbpM/j0V4l84Uh2hYgvk0T8iZZNAt3rlgYCOcolsD3f 5/pWZwZhg5uU4nPFFV86Bk+d3M0VCn3YaMYbZojCoYv0/EfBaFBSTk8DX1vWSCEC9HuN 4ZZy6eDkX16JfBCWLfhEQ6luV/YsvcjN0nA8FCsj+LIfOwocMTJxiCHdrA6hazKFgJuw gUdAWJPRMcJg6Ixewk+FAGeXlm92LLXp9ecfeW5AEppUAe2bi2JhcdN3ujgJsSmZCyi/ kV/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rvm7ORve; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020a056402268800b004616acd9cbcsi2866172edd.360.2022.12.05.08.28.35; Mon, 05 Dec 2022 08:28:55 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=rvm7ORve; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232752AbiLEPnW (ORCPT + 81 others); Mon, 5 Dec 2022 10:43:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232113AbiLEPnP (ORCPT ); Mon, 5 Dec 2022 10:43:15 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F40F82AE6 for ; Mon, 5 Dec 2022 07:43:14 -0800 (PST) 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 90D41611B1 for ; Mon, 5 Dec 2022 15:43:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEDF3C43470; Mon, 5 Dec 2022 15:43:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1670254994; bh=6Jkpcbz2+lmt6R4sfmgb60TXELGrckoMvdie+pxdwac=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rvm7ORve90+o4kTA1XNBtbQdrwhckcIgIoClFecJWIeYppqGWyvah0WcQ+l6b+sVS efMvtMmYTp+9b7y6wiKelnxhk31t+K76aaD2OMDfLhefoLXIqH3SydbTpMFrZfGTiP t9h7MSobO05sroySfBt7PLuQwjqk/kfiazMN2oHBLOqUP1mvef1rVJB/BczYnVenXi uDaHcAqnMiEXElohAZexTTlrEZ11ne3l82hNzi2tbgvz7AImYD+5rusoD+t8MnwC4U Qfoo1pwrjg6Jp1ok+yOb/x6Jzmurbkj/Dz61cLHxuqdvnOv5bJsDu9dn7CIbgr9qCB w0sDtVe5Z0H3Q== From: Will Deacon To: "Masami Hiramatsu (Google)" , Catalin Marinas Cc: kernel-team@android.com, Will Deacon , Mark Brown , Sandeepa Prabhu , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Mark Rutland , Kalesh Singh , Marc Zyngier Subject: Re: [PATCH v2 0/3] arm64: kprobes: Fix bugs in kprobes for arm64 Date: Mon, 5 Dec 2022 15:43:04 +0000 Message-Id: <167025000853.271112.9111364887989842067.b4-ty@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <166994750386.439920.1754385804350980158.stgit@devnote3> References: <166994750386.439920.1754385804350980158.stgit@devnote3> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 Fri, 2 Dec 2022 11:18:23 +0900, Masami Hiramatsu (Google) wrote: > Here is the 2nd version of the kprobe bugfixes on arm64. The previous > series is here; > > https://lore.kernel.org/all/166990553243.253128.13594802750635478633.stgit@devnote3/T/#u > > The first one is a critical issue, which will cause a kernel crach > easily with lockdep[1/3]. Others are minor issues and rare cases. > The [2/3] let do_page_fault() fixup the page fault in kprobes user > handler, and [3/3] is more like code cleanup and returns > DBG_HOOK_ERROR if it can not handle kprobe's BRK (but that > should not happen.) > > [...] Applied to arm64 (for-next/kprobes), thanks! [1/3] arm64: Prohibit instrumentation on arch_stack_walk() https://git.kernel.org/arm64/c/0fbcd8abf337 [2/3] arm64: kprobes: Let arch do_page_fault() fix up page fault in user handler https://git.kernel.org/arm64/c/30a421552373 [3/3] arm64: kprobes: Return DBG_HOOK_ERROR if kprobes can not handle a BRK https://git.kernel.org/arm64/c/3b84efc066f8 Cheers, -- Will https://fixes.arm64.dev https://next.arm64.dev https://will.arm64.dev