From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752245AbdGaNik (ORCPT ); Mon, 31 Jul 2017 09:38:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:51396 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751827AbdGaNij (ORCPT ); Mon, 31 Jul 2017 09:38:39 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E506F22B5D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=mhiramat@kernel.org From: Masami Hiramatsu To: Ingo Molnar Cc: Ingo Molnar , "H . Peter Anvin" , x86@kernel.org, Masami Hiramatsu , Ananth N Mavinakayanahalli , Anil S Keshavamurthy , "David S . Miller" , linux-kernel@vger.kernel.org Subject: [PATCH -tip 0/2] kprobes/x86: RO text code bugfix and cleanup Date: Mon, 31 Jul 2017 22:37:49 +0900 Message-Id: <150150825899.31981.16898805685027748636.stgit@devbox> X-Mailer: git-send-email 2.13.3 User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This series fixes a kprobe-x86 bug related to RO text and cleans up addressof operators. The first one is an obvious bug that misses to set memory RO when the function fails. I've just add set_memory_ro() on error exit. And the second one is just a cleanup patch to remove addressof operators ("&") since it is meaningless anymore. Please apply these, since this series is independent from another bugfix related to optprobe discussing in other thread. Thanks, --- Masami Hiramatsu (2): kprobes/x86: Don't forget to set memory back to RO on failure kprobes/x86: Remove addressof operators arch/x86/include/asm/kprobes.h | 4 ++-- arch/x86/kernel/kprobes/core.c | 4 +++- arch/x86/kernel/kprobes/opt.c | 9 +++++---- 3 files changed, 10 insertions(+), 7 deletions(-) -- Masami Hiramatsu