Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3572799pxk; Mon, 28 Sep 2020 23:54:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw8M8L6sI7GX48AyGXDSy/is+2Jg2c5ZqJ+9CrVHa9ND+sde4gZ+YMXwJs935Xy0t6j+sUE X-Received: by 2002:a17:906:ca8f:: with SMTP id js15mr2503727ejb.175.1601362446563; Mon, 28 Sep 2020 23:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601362446; cv=none; d=google.com; s=arc-20160816; b=ylqWiKu0R2wceSIpjYrZdaUZ1S2DUTLKum43VqYuXmE+MTLaGhC8khAsijjOqL1gEc p1v/3RR8IRRDQW7sRebMnM6fkqvTDN/yi8Hq8yG2oUfsT+0r/tL0ErToG0QBYgRFSTLC 79zIeOFIrP6uqr38VaJmLHKAr4nG7aNelOveyNGZwjMmKNzL/bOP8pM64OtrHbNwmPg6 mvtN1rdglYCmBYEdSjzAHG7nzoVWFHf6KurABFpaxKIZfbxk5T0adkzxYP/hf9aCQu+i F/mRyjNFa53hl5nk4344eQJeCcwDvaMxoo0b+vCHF8SJ5XmU0qs1b7HA/AUFdYG+C/DZ irMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=10yhI4u1mI26Rp4GZhx9B/pVFF0GIqF1IlJFfIt7SMc=; b=FbVQ5KUPbZ1GmUDwZpwJjvekF3aezw8MsF+Yoou1l7mk8kGMebcXCfXGcShx8LByl0 T7pzdEU4M9FZ/r8vY+hC9o5W3jZhLLCjByZ83zk09XZiYL7mZiak9LjqvV7aGS7S1y+N x6pcY42Pm5e1zQCGYd4jR6iwFk0eLs+uMjwjhimI/XZCTCuMcISKD1TdF+kCyyw2upwN MON7Amz/0h+QEsFITrERA+jnjoq3Bd8UyQQGxZC/j8ZEG/wJIVzJZCEdlGVojWXzAwln gXGHqKooHvZcaewQP1No1OcmELytquItVODQ+0/3rA2HNqNOKdPzrK7+ySUN9sTHfjPl Mk/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yhT7FELK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b29si2130107ejl.385.2020.09.28.23.53.42; Mon, 28 Sep 2020 23:54:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=yhT7FELK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725827AbgI2Gwl (ORCPT + 99 others); Tue, 29 Sep 2020 02:52:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:59440 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725306AbgI2Gwl (ORCPT ); Tue, 29 Sep 2020 02:52:41 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 72184206B7; Tue, 29 Sep 2020 06:52:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601362361; bh=6KqVFDoYR/Ej4IVjg3AKvUD6uYoOzhctINwi+ieMatQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yhT7FELKUxc9KgxZ0qhglyD6nQB2+kKuq+NjurV4NqUrwHMpecx+oCwslztPLEM5Z kj3sSG7tYf7NPd4QbX/EEj8/lt4FpmJzWOfxlDmkE6S8WMO5duTvFb7VXOlqR9e2ls ZvX5SVevYQ7DLpDKkevFqpCfu/8lesk5ZL3jUYKk= Date: Tue, 29 Sep 2020 08:52:47 +0200 From: Greg Kroah-Hartman To: Masami Hiramatsu Cc: Steven Rostedt , Naresh Kamboju , open list , linux- stable , Muchun Song , Chengming Zhou Subject: Re: [PATCH 4.19 38/92] kprobes: Fix NULL pointer dereference at kprobe_ftrace_handler Message-ID: <20200929065247.GB2439787@kroah.com> References: <20200820091537.490965042@linuxfoundation.org> <20200820091539.592290034@linuxfoundation.org> <20200928180942.100aa6c8@oasis.local.home> <20200928181535.56d7b2cb@oasis.local.home> <20200929144954.56090c5eeb5a36e1f552b315@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200929144954.56090c5eeb5a36e1f552b315@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 29, 2020 at 02:49:54PM +0900, Masami Hiramatsu wrote: > Hi, > > On Mon, 28 Sep 2020 18:15:35 -0400 > Steven Rostedt wrote: > > > On Mon, 28 Sep 2020 18:09:42 -0400 > > Steven Rostedt wrote: > > > > > On Tue, 29 Sep 2020 01:32:59 +0530 > > > Naresh Kamboju wrote: > > > > > > > stable rc branch 4.19 build warning on arm64. > > > > > > > > ../kernel/kprobes.c: In function ‘kill_kprobe’: > > > > ../kernel/kprobes.c:1070:33: warning: statement with no effect [-Wunused-value] > > > > 1070 | #define disarm_kprobe_ftrace(p) (-ENODEV) > > > > | ^ > > > > ../kernel/kprobes.c:2090:3: note: in expansion of macro ‘disarm_kprobe_ftrace’ > > > > 2090 | disarm_kprobe_ftrace(p); > > > > | ^~~~~~~~~~~~~~~~~~~~ > > > > > > Seems to affect upstream as well. > > > > > > > Bah, no (tested the wrong kernel). > > > > You want this commit too: > > > > 10de795a5addd ("kprobes: Fix compiler warning for !CONFIG_KPROBES_ON_FTRACE") > > It seems that this commit's Fixes tag is wrong. > > ae6aa16fdc163 (Masami Hiramatsu 2012-06-05 19:28:32 +0900 1079) #define prepare_kprobe(p) arch_prepare_kprobe(p) > 12310e3437554 (Jessica Yu 2018-01-10 00:51:23 +0100 1080) #define arm_kprobe_ftrace(p) (-ENODEV) > 297f9233b53a0 (Jessica Yu 2018-01-10 00:51:24 +0100 1081) #define disarm_kprobe_ftrace(p) (-ENODEV) > > Thus, it should have "Fixes: 297f9233b53a ("kprobes: Propagate error from disarm_kprobe_ftrace()")" > > $ git tag -l --contains 297f9233b53a | grep "^v[[:digit:].]*$" | cut -f1-2 -d. | uniq > v4.16 > v4.17 > v4.18 > v4.19 > v4.20 > v5.0 > v5.1 > v5.2 > v5.3 > v5.4 > v5.5 > v5.6 > v5.7 > v5.8 > > So the commit 10de795a5addd must be backported to 4.19.y and 5.4.y. Now queued up, thanks. greg k-h