Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30504070rwd; Thu, 6 Jul 2023 06:57:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlHdi8mEitdF9mn/fWs4Z2z+DEVr53SQEMgwwpf3ddurHzR8CC+XtQtBRqsZkCxK/oNOTdw+ X-Received: by 2002:a05:6a20:938f:b0:12e:caac:f252 with SMTP id x15-20020a056a20938f00b0012ecaacf252mr1807250pzh.1.1688651826606; Thu, 06 Jul 2023 06:57:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688651826; cv=none; d=google.com; s=arc-20160816; b=bvaOYpN4jYuMGULfiFotffwRLJZvTsKH12Knu0zYLYRLA2V3ybxP6C7cYRAvvBBqUE yufBSLLwyCjE2+VaocboIFCAyzWxCC49DpvJvh1DqWGKGOppWdoaVeMYovXfpEqsBd4m IAwymeJoGm543SVv5rrzPGI3QNRk5bMCk+KQLJCDNlmQESCAMGlVDg002WzwgVZi/akR dkFU+cUzmNaD9ohF+HD6GawSLa1oOhhRjW7/4o0kr0febKts+aLxg+jA8BZqB5fVkhpD cIfiF22tYh7Jvu7UhU9lHQJdbgYQMkY0zxumHeVWsrEWFNfGebWT8LldDrTzD97QT4w7 2SgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=He2g+30xyEXUAsc0IhSQ0KmMW3l5kJwNI4olpNqUVJI=; fh=hs2HfzOR89UMZpvCgZFPS/qZMzOILH/w54J6AiKY4dY=; b=sadUfPROvclVaZc7g8ndJVQ3vtbvsdqhOhIv1wwB0H2uQFI9RhhzAUr7pzjZjp1xv5 FI6xcaB9XQPEkmJsT5/AruExjCqkJxSZe+TOJn/vrkiIkzscJk9azE7M1ctWYN+H5Fhm cgC03T2kBMTDgvEZqgnkG+8ybKWWqaOYfAg4HJTb16RVq+dBi0CItkB25dagag0a362l g/XagJTCRFh3FtPGlMyYOuzs3ZNV0XhVqMrtKkBxEfIhPP/TzXzoR6m+kJzBEY4q2SQ/ +m/tXD41uuYjSH6i63krn2Rwt9zVwMRChwk1VwQHOJUzF6gggFeFnmw0Kbsu0/Cr5bXO /LcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MsNYZj5T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b1-20020a6567c1000000b0055b635f28b6si1498791pgs.881.2023.07.06.06.56.53; Thu, 06 Jul 2023 06:57:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MsNYZj5T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232468AbjGFNis (ORCPT + 99 others); Thu, 6 Jul 2023 09:38:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232454AbjGFNiq (ORCPT ); Thu, 6 Jul 2023 09:38:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BEE991BC8; Thu, 6 Jul 2023 06:38:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4D71B6194B; Thu, 6 Jul 2023 13:38:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31BB2C433C7; Thu, 6 Jul 2023 13:38:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688650708; bh=PEkRhv1COHtz8x54hPw4xiGamOn/+BE55P4s5TpOgcI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=MsNYZj5TEZvgLuORchg6awRz5nUDhNVxV8lGOGDJQ8mulpC8STRLln6uNidO8mloy ULu0ghqNjLQ/d1IRyj59RMPEUvVTwMgBS4Yn9E0B6oXh2opVsod626QQtjaNG1YoTB O+8Q9kDc033DBa0Oi76NnY4dZx7DI9dd+jci0szZwb82Y0L8lPduoVjXmZvkT4GP2w JOgkrjSf0p1DpT+1UYiBbHkpNBMO7YQCuRay+bV0qdnySCopIl49yntKAQajorxW7m UyDcRcB/DoRRlNoIH9T9LHwii1trLNDerdKWEJn5k37Zjd8rTyU0Nb3aEU7T9aVA+B fG+baaxsdsGxw== Date: Thu, 6 Jul 2023 22:38:24 +0900 From: Masami Hiramatsu (Google) To: Li zeming Cc: naveen.n.rao@linux.ibm.com, anil.s.keshavamurthy@intel.com, davem@davemloft.net, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org Subject: Re: [PATCH] kprobes: Remove unnecessary =?UTF-8?B?4oCYTlVMTA==?= =?UTF-8?B?4oCZ?= values from correct_ret_addr Message-Id: <20230706223824.f1eee3b3e5448dc3555c275d@kernel.org> In-Reply-To: <20230704194359.3124-1-zeming@nfschina.com> References: <20230704194359.3124-1-zeming@nfschina.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 5 Jul 2023 03:43:59 +0800 Li zeming wrote: > The 'correct_ret_addr' pointer is always set in the later code, no need > to initialize it at definition time. Indeed. Thanks! Acked-by: Masami Hiramatsu (Google) > > Signed-off-by: Li zeming > --- > kernel/kprobes.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/kernel/kprobes.c b/kernel/kprobes.c > index db8a3aa53cf6..ec50f9f380c1 100644 > --- a/kernel/kprobes.c > +++ b/kernel/kprobes.c > @@ -2007,9 +2007,9 @@ void __weak arch_kretprobe_fixup_return(struct pt_regs *regs, > unsigned long __kretprobe_trampoline_handler(struct pt_regs *regs, > void *frame_pointer) > { > - kprobe_opcode_t *correct_ret_addr = NULL; > struct kretprobe_instance *ri = NULL; > struct llist_node *first, *node = NULL; > + kprobe_opcode_t *correct_ret_addr; > struct kretprobe *rp; > > /* Find correct address and all nodes for this frame. */ > -- > 2.18.2 > -- Masami Hiramatsu (Google)