Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4552064pxf; Tue, 16 Mar 2021 17:11:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUbLL1QC8d4JRzAQs9OX9pA/d+Rvja4AOvU5270zM+dY4kcvjn4DrxTM1q4vTFc/pSJG22 X-Received: by 2002:a17:906:8a6e:: with SMTP id hy14mr33056904ejc.356.1615939888952; Tue, 16 Mar 2021 17:11:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615939888; cv=none; d=google.com; s=arc-20160816; b=JYziqtbabaCLENXgb5spAybBrn8q57L8zSuRe2zND32zd3nBY4waJRRvB4gYMOiyZT r+Mk9z8x4z+jeYTNZX+cDf4WNy9huIya1PLULhgMTUSAHAINawxCeaKfrGi/vLQitbWn oV+7ieacSRUnNYI43GEG9bFybyHhRd/soAdh9771VygL1aEaSMEZKxP+U3QrgHtidU2n qr/G5YdB1+pPxFmhUk9s4iqYh745eqHoptDeNBGVUhhDKD5c6SjwLgWgWOXeVOQMiUoR J8uNsLYYxIx1nnwr1z0d8KujzS5eb/qnOD3vPsnT65u+cbbtGNffpaasTk/gQTV6OiD+ IW4g== 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=JO839ZLukP7m08c719PKPfR5i9gGjBxuhPu7WLHnGr0=; b=OQCa2J7PY5PAL4NuxpBC2eKkhDHspoZTNLNqeOGmay4CeIPbPm8gjLYwYnAe9DpVuo GPy7V8UgmVVfM1H5fV113X9pi1EK7LPFYxRjZXqWDbISjVdMLHIJRb63iUhEewWamuDx qK7wdxD50AsypA9ckcLVWiSk/e287jx4wQUd3LJ3v8YomuGQJ0AkVRYc0HetyFimoi5p H46wVazxsVNdme26WlxrgHsMkNNr5wai9+TVo7UvL0V+hy6HOCxzVsIm9BiFxWfz0192 cYV0IX5jgJqCvMonrNWpTQsYcHsAUA6umXvPFTVauhp7Tof3qUzCRVbwwS4Ez/hV0HqE YpFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IBpBGOkz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w26si14994057edx.572.2021.03.16.17.11.05; Tue, 16 Mar 2021 17:11:28 -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=k20201202 header.b=IBpBGOkz; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229866AbhCQACN (ORCPT + 99 others); Tue, 16 Mar 2021 20:02:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:47372 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229469AbhCQAB7 (ORCPT ); Tue, 16 Mar 2021 20:01:59 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2581464F38; Wed, 17 Mar 2021 00:01:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615939318; bh=6jN7ZF2FOHtclliC68HU01PlBZ8L+9xblvhPgm1xFyQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=IBpBGOkz8ULooiEJ7TfR6214zuBRm7H9kd5M0WrgBx76xfCyCBvgxu+Ml4XEO5CZJ EjpW4LNSl4avXXtkjiLQyN6DcvcAVpHIwIW7M/vOpKXrVpmSPl7TiUEZ51AYE2UbKv ZjVd2LqBCEIKOKX/q9NjXOjdPCtN/oOy4yi9gZtJqLnS+/U/pT+RjpQ/dLiCqDOK6N SU1w7ZT6p0HTU6LLth3jWGWK8IaVh7UfrZ1rT/Obz8FlFblCiV8Ii0BJyVjeDgXyw0 lbUnsy2wn4DrtufqMu4GzW1f0LvZuyDdrAPTbmcW6rDQHIWYanc+o6RffqGX+LOOoe xR5t4FL33/dMw== Date: Wed, 17 Mar 2021 09:01:54 +0900 From: Masami Hiramatsu To: Xiaofeng Cao Cc: naveen.n.rao@linux.ibm.com, anil.s.keshavamurthy@intel.com, davem@davemloft.net, linux-kernel@vger.kernel.org, Xiaofeng Cao Subject: Re: [PATCH] kernel:kprobe: Fix typo issue Message-Id: <20210317090154.70aaf7e8c21eda290fc13d4e@kernel.org> In-Reply-To: <20210316125751.11023-1-caoxiaofeng@yulong.com> References: <20210316125751.11023-1-caoxiaofeng@yulong.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Xiaofeng, On Tue, 16 Mar 2021 20:57:51 +0800 Xiaofeng Cao wrote: > change 'immmediately' to 'immediately' > change 'quiesence' to 'quiescence' > change 'unneed' to 'unneeded' > change 'sinec' to 'since > change 'sefe' to 'safe'' > change 'And' to 'At the' > change 'buy' to 'but' Thanks for the fix! Acked-by: Masami Hiramatsu > > Signed-off-by: Xiaofeng Cao > --- > kernel/kprobes.c | 18 +++++++++--------- > 1 file changed, 9 insertions(+), 9 deletions(-) > > diff --git a/kernel/kprobes.c b/kernel/kprobes.c > index 745f08fdd7a6..ae3a22d2099b 100644 > --- a/kernel/kprobes.c > +++ b/kernel/kprobes.c > @@ -506,7 +506,7 @@ static void do_optimize_kprobes(void) > /* > * The optimization/unoptimization refers online_cpus via > * stop_machine() and cpu-hotplug modifies online_cpus. > - * And same time, text_mutex will be held in cpu-hotplug and here. > + * At the same time, text_mutex will be held in cpu-hotplug and here. > * This combination can cause a deadlock (cpu-hotplug try to lock > * text_mutex but stop_machine can not be done because online_cpus > * has been changed) > @@ -592,12 +592,12 @@ static void kprobe_optimizer(struct work_struct *work) > > /* > * Step 1: Unoptimize kprobes and collect cleaned (unused and disarmed) > - * kprobes before waiting for quiesence period. > + * kprobes before waiting for quiescence period. > */ > do_unoptimize_kprobes(); > > /* > - * Step 2: Wait for quiesence period to ensure all potentially > + * Step 2: Wait for quiescence period to ensure all potentially > * preempted tasks to have normally scheduled. Because optprobe > * may modify multiple instructions, there is a chance that Nth > * instruction is preempted. In that case, such tasks can return > @@ -607,10 +607,10 @@ static void kprobe_optimizer(struct work_struct *work) > */ > synchronize_rcu_tasks(); > > - /* Step 3: Optimize kprobes after quiesence period */ > + /* Step 3: Optimize kprobes after quiescence period */ > do_optimize_kprobes(); > > - /* Step 4: Free cleaned kprobes after quiesence period */ > + /* Step 4: Free cleaned kprobes after quiescence period */ > do_free_cleaned_kprobes(); > > mutex_unlock(&text_mutex); > @@ -631,7 +631,7 @@ void wait_for_kprobe_optimizer(void) > while (!list_empty(&optimizing_list) || !list_empty(&unoptimizing_list)) { > mutex_unlock(&kprobe_mutex); > > - /* this will also make optimizing_work execute immmediately */ > + /* this will also make optimizing_work execute immediately */ > flush_delayed_work(&optimizing_work); > /* @optimizing_work might not have been queued yet, relax */ > cpu_relax(); > @@ -1057,7 +1057,7 @@ static int __arm_kprobe_ftrace(struct kprobe *p, struct ftrace_ops *ops, > > err_ftrace: > /* > - * At this point, sinec ops is not registered, we should be sefe from > + * At this point, since ops is not registered, we should be safe from > * registering empty filter. > */ > ftrace_set_filter_ip(ops, (unsigned long)p->addr, 1, 0); > @@ -1712,7 +1712,7 @@ static struct kprobe *__disable_kprobe(struct kprobe *p) > /* > * If kprobes_all_disarmed is set, orig_p > * should have already been disarmed, so > - * skip unneed disarming process. > + * skip unneeded disarming process. > */ > if (!kprobes_all_disarmed) { > ret = disarm_kprobe(orig_p, true); > @@ -2424,7 +2424,7 @@ static int kprobes_module_callback(struct notifier_block *nb, > within_module_core((unsigned long)p->addr, mod))) { > /* > * The vaddr this probe is installed will soon > - * be vfreed buy not synced to disk. Hence, > + * be vfreed but not synced to disk. Hence, > * disarming the breakpoint isn't needed. > * > * Note, this will also move any optimized probes > -- > 2.25.1 > -- Masami Hiramatsu