From patchwork Sat Feb 19 01:24:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Collingbourne X-Patchwork-Id: 12752122 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6496AC433EF for ; Sat, 19 Feb 2022 01:24:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A58706B0074; Fri, 18 Feb 2022 20:24:45 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A080D6B0075; Fri, 18 Feb 2022 20:24:45 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8A80A6B0078; Fri, 18 Feb 2022 20:24:45 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0235.hostedemail.com [216.40.44.235]) by kanga.kvack.org (Postfix) with ESMTP id 7AE736B0074 for ; Fri, 18 Feb 2022 20:24:45 -0500 (EST) Received: from smtpin11.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 26DC9181B048C for ; Sat, 19 Feb 2022 01:24:45 +0000 (UTC) X-FDA: 79157784930.11.3CB56DF Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) by imf15.hostedemail.com (Postfix) with ESMTP id A95C4A0004 for ; Sat, 19 Feb 2022 01:24:44 +0000 (UTC) Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-2d6baed6aafso41128397b3.3 for ; Fri, 18 Feb 2022 17:24:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:message-id:mime-version:subject:from:to:cc; bh=jLxqiMpKiU6uitpCFUbFos6W1d6pOQuQyCIO56bjd+8=; b=pGjFCNZq3NsFpMywMfp0R5D663fHCBixnrF4ppOsAGG1M+KQ0VTy/nuxPSGJXDL0ep dRRkk38yccPDh4n4gZAvsyfAu3GNrzri2ObKpUQxAliyfoZhNGlZvfWM+Ox7btW7Jz90 l5+56wU21Cjm1OgaXCClHvumUIuZUCDCF+rF+iOyhhqKAK2eWJRbajWfjQqNOPBr4VjL O1Nrm6mYRr1iMhxYfe6o3wq+M7srOqFpYAiHveSmL03PTmhvHxnkwGHdwtkdMM9sWER6 7UTYk0dpkudjk5vW4J5hf79n0INxzgkWUldGEanzgaLbMDmcHhB+y6WAx4Z9cl977cwg 8xlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=jLxqiMpKiU6uitpCFUbFos6W1d6pOQuQyCIO56bjd+8=; b=vi6qohhkAjCdPJuuM19IzCN2NIqYJD0PuOX7FBzWUO+pcceO4ChGn2Z1Iwk98ofBGV ShigsbUzhILKfsTy2f8gzLYDS98PGPbI3/sNkI2Sa/AZUCUzGglCbUI3rtTMAT17AWCX aD6Yuu57BUg6VM4o4b/6hNG6C1haNG0CyNrOc+tctKLCgIL0uSnrAvQjdrth4UUraZ0p xYvSTwg4miYPTfkhhYwE6kIH1nwFAmP1oiYg/QLf3WRaG676t7uD2zfHgDHJwxAjLuzP sEu8LAMXGMmzNlNJObgq52fyrQC15NVRe7ibu8Gym26jf0Wqc0dkeWb+Jbkf06A91vT3 8gOw== X-Gm-Message-State: AOAM531g1k4aAcMUuX1AtDlUdWFHrrCFiljS41SRLIdypn2kXjxR4NX2 Twa9sguoTQbNQ/edUi7fH7AMV4o= X-Google-Smtp-Source: ABdhPJzGiGyznedk5RWmRU3wxcmgEgSYJTDrOQvkM5VM6uJBDIIGlkcWlu7sTXXNW1kLfCADNNSA6Xs= X-Received: from pcc-desktop.svl.corp.google.com ([2620:15c:2ce:200:4926:4660:7cdf:2d]) (user=pcc job=sendgmr) by 2002:a25:86c9:0:b0:61e:188a:d71f with SMTP id y9-20020a2586c9000000b0061e188ad71fmr9832044ybm.14.1645233883661; Fri, 18 Feb 2022 17:24:43 -0800 (PST) Date: Fri, 18 Feb 2022 17:24:33 -0800 Message-Id: <20220219012433.890941-1-pcc@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.35.1.473.g83b2b277ed-goog Subject: [PATCH] kasan: update function name in comments From: Peter Collingbourne To: Andrey Konovalov , Marco Elver Cc: Peter Collingbourne , Andrew Morton , linux-mm@kvack.org Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=pGjFCNZq; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf15.hostedemail.com: domain of 320YQYgMKCMAviimuumrk.iusrot03-ssq1giq.uxm@flex--pcc.bounces.google.com designates 209.85.128.202 as permitted sender) smtp.mailfrom=320YQYgMKCMAviimuumrk.iusrot03-ssq1giq.uxm@flex--pcc.bounces.google.com X-Rspam-User: X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: A95C4A0004 X-Stat-Signature: qhgr77d99inx3fekcukkgi5s86pk9hnb X-HE-Tag: 1645233884-674118 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: The function kasan_global_oob was renamed to kasan_global_oob_right, but the comments referring to it were not updated. Do so. Link: https://linux-review.googlesource.com/id/I20faa90126937bbee77d9d44709556c3dd4b40be Signed-off-by: Peter Collingbourne Fixes: e5f4728767d2 ("kasan: test: add globals left-out-of-bounds test") Reviewed-by: Miaohe Lin Reviewed-by: Marco Elver Reviewed-by: Andrey Konovalov --- lib/test_kasan.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/test_kasan.c b/lib/test_kasan.c index 26a5c9007653..a8dfda9b9630 100644 --- a/lib/test_kasan.c +++ b/lib/test_kasan.c @@ -780,7 +780,7 @@ static void ksize_uaf(struct kunit *test) static void kasan_stack_oob(struct kunit *test) { char stack_array[10]; - /* See comment in kasan_global_oob. */ + /* See comment in kasan_global_oob_right. */ char *volatile array = stack_array; char *p = &array[ARRAY_SIZE(stack_array) + OOB_TAG_OFF]; @@ -793,7 +793,7 @@ static void kasan_alloca_oob_left(struct kunit *test) { volatile int i = 10; char alloca_array[i]; - /* See comment in kasan_global_oob. */ + /* See comment in kasan_global_oob_right. */ char *volatile array = alloca_array; char *p = array - 1; @@ -808,7 +808,7 @@ static void kasan_alloca_oob_right(struct kunit *test) { volatile int i = 10; char alloca_array[i]; - /* See comment in kasan_global_oob. */ + /* See comment in kasan_global_oob_right. */ char *volatile array = alloca_array; char *p = array + i;