Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp800512imm; Mon, 21 May 2018 14:43:38 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpqNxe0D1tzAKVCsO5zXCthtW6VtmOJ5umJI0rqdNH2UcUdq51QP45kPjTfbZ/d2wGU/4gC X-Received: by 2002:a62:1fc8:: with SMTP id l69-v6mr21651735pfj.49.1526939018928; Mon, 21 May 2018 14:43:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526939018; cv=none; d=google.com; s=arc-20160816; b=UBeucC/+Er79wvKSvJ6v++wNks6W/LwQlqJ6b5HETZ6yS2killULExHb+u+7LdpSGn JYqe3nKXetsNxAJc0lKo0cN/v1n1ss5Dgf/xb3sXgpZxOLBgplXqNNQzJOEnwW7dJopR TUs3MSGSzvnu7XL8dcMQU9i7twTbMt0oRnKEfjPA6pFoi9gXjEi05R3Z0FjHnUW/RfGU hCCqjDSppidWMG2YQHaYiHO+DGFEq5lXDWUptUGIE6GfT7uF1MlM5N4DTcRFBYYfrJdl SDzQkfN//edWoK4qIui8z6GEVrlzVOxk8pkwsVnax/KuXfs4uEgg+ZaoDG7nAMEOZJZR YWiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=WkbeheK6R0/WTnlf1hTdjev+eWZQNby88WyzgGNxXjY=; b=ec/WZZXeAwieiZ/Tmlj5hklA8N8nENasKHhDwUh+q2FwoxsYMzU+9/F6oXs4/rgJGP jVEMXwmo9jNKH/BK5Li6j14luaNrIOmntA38pIHIcPJCFuI52GPAjhKMlGsiIr1mtks1 h9DLuYT/RLUC+zvu3QlZZcld3xq7gu1BprF7Wqqvcbe4JxTyeQamieurIdUSlHqFiL0L OfmRMEIcUrBsTdih7VlyjidcmDANhpORq4X1sn/mSrQnYqBivhjGlyegLkW9mEFqQZxK +5dKQbbiPd1fwB4Uwzt1QFGzoeZ+RW92Q5Uab4wjDRHn+BTwT/Y2F1CV83YlUzVXikbZ vzvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Co33qg4Y; 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 h10-v6si8905104pgq.131.2018.05.21.14.43.24; Mon, 21 May 2018 14:43:38 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=Co33qg4Y; 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 S932284AbeEUVY2 (ORCPT + 99 others); Mon, 21 May 2018 17:24:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:39304 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932255AbeEUVYY (ORCPT ); Mon, 21 May 2018 17:24:24 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C023C20872; Mon, 21 May 2018 21:24:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1526937864; bh=pnLyjD5mcL1nboxAQ5W7dXklbffutDR9xYBCAAqfq/M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Co33qg4YU5RiHZ5PDgQ0moaKoJGKNKjjcxQOxglUtVavjT152uSd5dcaqn1kaOJNF tXTxQ07sAc/IeDMkFMwEhnSoagLosEHyVFME6VbX9hSZPwZzoluTkQur0oKJDLalCQ Bf6HkGDLDqwVgD6+1eRxPUglDliEn33iAVXR8GuQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masami Hiramatsu , Russell King Subject: [PATCH 4.16 053/110] ARM: 8770/1: kprobes: Prohibit probing on optimized_callback Date: Mon, 21 May 2018 23:11:50 +0200 Message-Id: <20180521210510.067746444@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180521210503.823249477@linuxfoundation.org> References: <20180521210503.823249477@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Masami Hiramatsu commit 70948c05fdde0aac32f9667856a88725c192fa40 upstream. Prohibit probing on optimized_callback() because it is called from kprobes itself. If we put a kprobes on it, that will cause a recursive call loop. Mark it NOKPROBE_SYMBOL. Fixes: 0dc016dbd820 ("ARM: kprobes: enable OPTPROBES for ARM 32") Signed-off-by: Masami Hiramatsu Cc: stable@vger.kernel.org Signed-off-by: Russell King Signed-off-by: Greg Kroah-Hartman --- arch/arm/probes/kprobes/opt-arm.c | 1 + 1 file changed, 1 insertion(+) --- a/arch/arm/probes/kprobes/opt-arm.c +++ b/arch/arm/probes/kprobes/opt-arm.c @@ -192,6 +192,7 @@ optimized_callback(struct optimized_kpro local_irq_restore(flags); } +NOKPROBE_SYMBOL(optimized_callback) int arch_prepare_optimized_kprobe(struct optimized_kprobe *op, struct kprobe *orig) {