Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10937090ybi; Thu, 25 Jul 2019 07:19:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqxtMSbuB9+cAZ5/+/5d/nZk0owmvGXEZ2SsAqxX2WZ94Omx0DsLpuk3aakDVaGMsM1ig7rN X-Received: by 2002:a62:ae01:: with SMTP id q1mr16504303pff.219.1564064368889; Thu, 25 Jul 2019 07:19:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564064368; cv=none; d=google.com; s=arc-20160816; b=GrAPBUiaxz9riB6nsr+Xk/4TF6kv2Fwap2c/52/MIj4OTxFmSsCX1HnDMxXl9XnPAI qzOartV87ekNQIroeDR0aUUUhKPSnaLl6yZRWIsObggQD2/7N7lGqPKNtJTjnc9Tk8NG SFkgMEzvfIq7jRGNe2Ev2G3mGUEp4NabtsPQkWjYyI/veTFmHhKZn05ggJNTg1Yk0w+L PLszr6A4kF0AlEOiAoTbI0IXULbthb2WB3kwRgrBcy09hjOq2v/alMBhP8Pz2mXnlh94 iyuU/gPnoHZWrqhRDYzI8pGj1RsT/BueSFfXp6Zk1Qcpr/tGJ8ZROF2Bc64cxuwVyw8L kuoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=Tke8N3tAthNs7K/yRTaR2ihbkaEImlk2R0FtB+KXO5g=; b=O5B1BH4z20i5+naR0H6CXvb+ICG/zy7x1MOjWD6pqQunVn8WWTOEbbxjEh1Z82p1tT ST1Ggnc8Y6Be2DjmoM4PTw7GTqnMtW7I1JulP8mwakmjyCg4h+UbbLy7q0rkDyoZBte6 ufWBSwvRn/8QERhBXr+OFONQ2W4PBtsDfZcU/VrqsTDfGH/k9aLyO0nDWBFGYMB0Tmf6 pqHhDJQJ3xSvOyAE8CZKKUujyi+Vv78SPmFky4Zt+MtbGANFO5XEbRr/SCU/6ByLApO3 bHvqeNXrkOSlSmVQnnY1LBCkSefYoVxGNzD39ROZ8Lc0k0iCmNr9vmqbG+3Uk01aD7dP ESow== ARC-Authentication-Results: i=1; mx.google.com; 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 o2si17980369pfg.136.2019.07.25.07.19.13; Thu, 25 Jul 2019 07:19:28 -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; 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 S2388073AbfGYNd5 (ORCPT + 99 others); Thu, 25 Jul 2019 09:33:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:45598 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388009AbfGYNd5 (ORCPT ); Thu, 25 Jul 2019 09:33:57 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (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 246F12190F; Thu, 25 Jul 2019 13:33:55 +0000 (UTC) Date: Thu, 25 Jul 2019 09:33:53 -0400 From: Steven Rostedt To: Masami Hiramatsu Cc: Ingo Molnar , Joe Lawrence , Josh Poimboeuf , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, "Naveen N . Rao" , Anil S Keshavamurthy , "David S . Miller" Subject: Re: [PATCH] kprobes: Allow kprobes coexist with livepatch Message-ID: <20190725093353.6e4d561f@gandalf.local.home> In-Reply-To: <156403587671.30117.5233558741694155985.stgit@devnote2> References: <156403587671.30117.5233558741694155985.stgit@devnote2> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 25 Jul 2019 15:24:37 +0900 Masami Hiramatsu wrote: > Allow kprobes which do not modify regs->ip, coexist with livepatch > by dropping FTRACE_OPS_FL_IPMODIFY from ftrace_ops. > > User who wants to modify regs->ip (e.g. function fault injection) > must set a dummy post_handler to its kprobes when registering. > However, if such regs->ip modifying kprobes is set on a function, > that function can not be livepatched. > > Signed-off-by: Masami Hiramatsu Looks good! I applied it. Thanks Masami! -- Steve