Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2039644imm; Thu, 24 May 2018 04:58:42 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpmA2GCX8+jswNnt8oFRXrbp4C3Khi0Cnae82EYKv4H6wWGPWZMQulc1ifDhcoJwRLeFy4d X-Received: by 2002:a17:902:a585:: with SMTP id az5-v6mr7022939plb.79.1527163122416; Thu, 24 May 2018 04:58:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527163122; cv=none; d=google.com; s=arc-20160816; b=pQbUq5SYIVXGFaU+yJnmyecUIbiT+uvpDNeh30sn13waoH7nLOC5C24Mq/u3dWCv8n OHISKz8MPZ/hnMh3jUpNAgC1c1YgI2lwcxldm1i+cl86cFW91HfVY0gsuY2TPqPTSADJ OvJkxai7IofUk5buXuOtmvJwkvfzXd760U5TXASOGpM4odWDhyhBsOLNFU4Fvi+ZT1YN H42Hnfv8JGpl942mnStdXBVqbLM9bVEiv+7MLtCS+jVobB5y5ZSYmB3GGU9ZFhxy72rT hHSR/Lepyl50tOgE9cYzKvI1IibROu9KXJBIx1vtwttNeyiqxqLnlGBaNO+uhkppYvkv kLDw== 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=G18aIivzeO+GvHfvi+jzlpZOx31eIGrWSMehWOo40fU=; b=l7kx/b5gPJBtWL1n44kB5MXaSyaBVOxgolmmIp7xqkUboC8PAKYVS+aOfkPw8GFw4t xmsRKZtDJ5goLtojIxb8/cnQqG+vilqlt4ro2g5IZnic40Ezc6PZM4VVQQUnCtEb/WAd HoiYSlfaejRQvyDMWGhUDnIfFrxyxpk3NdvBaBo8bD+X5YxkefPFNZy5vPxEoCXmByW6 fMDoqfz6kF4hg7DC0K1yvRv6kMKogMMUxloiAHQgow0rDtqsLtFrIm6W8wYgxPYb/Ajx Vo/YHpQdQ9cJQVMQHV4r0ltg/lH+N/mK4JwYG7L7MGlWqDvbKTIoflZ4rXHIH/pBGWRw e9ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cc1g39kA; 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 e12-v6si17000598pgn.155.2018.05.24.04.58.27; Thu, 24 May 2018 04:58:42 -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=cc1g39kA; 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 S969472AbeEXL5u (ORCPT + 99 others); Thu, 24 May 2018 07:57:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:56716 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966787AbeEXJpc (ORCPT ); Thu, 24 May 2018 05:45:32 -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 211FB208CB; Thu, 24 May 2018 09:45:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155131; bh=aWY0EpXx3okW66uWmo4Y53DzZzyTQJpLEeDR8cBbSK4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cc1g39kAespORngGgVIACCx6DHcrHAm0yDHUeC0f5F9TtXdzLchwwfYrf2VYWOd0u Jmz/OsneVsUmcZM8YnFe+SZtJaVVvdJ4l8j1XmWJ/G1kRkVGXtdI4vJv/asxOqwQCY DVxgNwcQx51eziRfcQLpx6HBSv32r1XImOxiq5dU= 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.4 66/92] ARM: 8770/1: kprobes: Prohibit probing on optimized_callback Date: Thu, 24 May 2018 11:38:43 +0200 Message-Id: <20180524093205.621904100@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093159.286472249@linuxfoundation.org> References: <20180524093159.286472249@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.4-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) {