Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EB081C433DF for ; Tue, 23 Jun 2020 13:26:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B960320738 for ; Tue, 23 Jun 2020 13:26:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592918790; bh=ZDGwJLe81XKEYdccsxZshQmKzBG+Teh10gIWfv/5hrc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=RWfgZ4Q5Nv3e//o1kepUGI5u92SfBxTQiqKe+pRTCu6OwAH9mQXCeMhKs9FKSFeFj tOrab0d49cNIR+vd/h5tJhly4D0kx7XceWcmaOduzC5HxS56SAHa0UqcOvUW6oIJck juY7cRkTyUOxGGkOKALg6tcewYAuTkmAY9M8VFC0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732594AbgFWN0a (ORCPT ); Tue, 23 Jun 2020 09:26:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:49288 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729629AbgFWN0a (ORCPT ); Tue, 23 Jun 2020 09:26:30 -0400 Received: from localhost (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (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 53E7E20724; Tue, 23 Jun 2020 13:26:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1592918789; bh=ZDGwJLe81XKEYdccsxZshQmKzBG+Teh10gIWfv/5hrc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JbFSLECnrHHIep+Fexh7umX6OeaIyGWGGvp+EDEMe91adeD3NOe4MSWAyqsSkDWcG VEMeiJnUI3Xy0eUPK0xmJVgA3ulN0Q1RAQ0L2IfZjtUz1Btfh0TlaDB3v3yNBz6vjS VWkxUs74K9SkuDijkWT0Rb6/VGhW23GbrnJhNgVM= Date: Tue, 23 Jun 2020 09:26:28 -0400 From: Sasha Levin To: gregkh@linuxfoundation.org Cc: mhiramat@kernel.org, anders.roxell@linaro.org, anil.s.keshavamurthy@intel.com, davem@davemloft.net, gustavoars@kernel.org, mingo@elte.hu, mingo@kernel.org, naveen.n.rao@linux.ibm.com, peterz@infradead.org, rostedt@goodmis.org, zsun@redhat.com, stable@vger.kernel.org Subject: Re: FAILED: patch "[PATCH] kprobes: Fix to protect kick_kprobe_optimizer() by" failed to apply to 4.9-stable tree Message-ID: <20200623132628.GX1931@sasha-vm> References: <159291344624382@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <159291344624382@kroah.com> Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Tue, Jun 23, 2020 at 01:57:26PM +0200, gregkh@linuxfoundation.org wrote: > >The patch below does not apply to the 4.9-stable tree. >If someone wants it applied there, or to any other stable or longterm >tree, then please email the backport, including the original git commit >id to . > >thanks, > >greg k-h > >------------------ original commit in Linus's tree ------------------ > >From 1a0aa991a6274161c95a844c58cfb801d681eb59 Mon Sep 17 00:00:00 2001 >From: Masami Hiramatsu >Date: Tue, 12 May 2020 17:02:56 +0900 >Subject: [PATCH] kprobes: Fix to protect kick_kprobe_optimizer() by > kprobe_mutex > >In kprobe_optimizer() kick_kprobe_optimizer() is called >without kprobe_mutex, but this can race with other caller >which is protected by kprobe_mutex. > >To fix that, expand kprobe_mutex protected area to protect >kick_kprobe_optimizer() call. > >Link: http://lkml.kernel.org/r/158927057586.27680.5036330063955940456.stgit@devnote2 > >Fixes: cd7ebe2298ff ("kprobes: Use text_poke_smp_batch for optimizing") >Cc: Ingo Molnar >Cc: "Gustavo A . R . Silva" >Cc: Anders Roxell >Cc: "Naveen N . Rao" >Cc: Anil S Keshavamurthy >Cc: David Miller >Cc: Ingo Molnar >Cc: Peter Zijlstra >Cc: Ziqian SUN >Cc: stable@vger.kernel.org >Signed-off-by: Masami Hiramatsu >Signed-off-by: Steven Rostedt (VMware) The conflict happened because we don't have 2d1e38f56622 ("kprobes: Cure hotplug lock ordering issues") on 4.9 and 4.4. I've fixed it up and queued for both branches. -- Thanks, Sasha