From patchwork Thu Dec 21 18:06:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: andrey.konovalov@linux.dev X-Patchwork-Id: 182383 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp597529dyi; Thu, 21 Dec 2023 10:15:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IEj3Q5pUrTsjNBIBt+9hoBXSPJFco7oQsazwWH1ImyU09zzu9DqcyJRUy6FFNC3RmqogH79 X-Received: by 2002:a17:90b:1d83:b0:28c:25:8fa8 with SMTP id pf3-20020a17090b1d8300b0028c00258fa8mr138408pjb.80.1703182523328; Thu, 21 Dec 2023 10:15:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703182523; cv=none; d=google.com; s=arc-20160816; b=pTzWMyxK4bYCOoO/FpJNBgF9TKnV0NBd4vDRbWGHDr7rSgYlZ4egcljLCWeUXYbya4 Z5YTf04GOLb0w3TyEfBNQmy6iIOsSYKqI6fHk3EX1rb5ueC9u1XLrLG9RgSNRh9jjnem IGgWvNntv4IQXgXhSrxFqMhch0UrN1s9K6A+JX5blPvXMfdMKQWx1X+2lYZUyyC6mP2+ YfZyZvjye/Mr7An39l1sU3pordUxbnlC+v3xxgRUyBavN61WlLixktPyW7Ml3JsvzZIg dts8+8NhsvxzSla4hCVTBEhNFseI5smV9pSVMtjbq+J9fmoUhLVtzD+sChJaKZupzoCA +qpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=i0GLSbu+FVh1lkI5GuUWSCHjI1Tbl3xktQLpxtmlTZ0=; fh=YdJe40n1bQZ8Zp3iZn6I1d2ZUtlNbbOfpFd8CFgERIY=; b=SY6ftCe83qBKhdOQbiAUTMEtwbjq8y1dXBNkgktV6RlCfGGr1hWKhe5nRt19L3ZFgg XCVsmITza+fKqlI9vU8FigPZ7XeuRx0VEk3io4r2o/6ANLfKZxHD6SYzIxwV/Vu9ryDj gQIhle+zTdXGGgN7uW7jPk7+3iksYMo5jmmAJ/7j9Pq0NykiYD9jbSMWZfiMgUlKK5Lh 5W5k311jCia148AoKpVAPB3XlFrunuh8IVhKhrboUpg6hYGbZ8h6n+u1lEwE58Sf5C4+ 7F3ZNHGHYBCWczLB+fmwOITVcV9IZ2vip4qSWYjpHadyzdwGJbJibZyjji6fmUd/sStT cd/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=de36pMIh; spf=pass (google.com: domain of linux-kernel+bounces-8901-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8901-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id t5-20020a17090ad14500b00286530bddecsi5278308pjw.105.2023.12.21.10.15.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 10:15:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8901-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=de36pMIh; spf=pass (google.com: domain of linux-kernel+bounces-8901-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8901-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BDDA728CC7E for ; Thu, 21 Dec 2023 18:06:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C20D63517; Thu, 21 Dec 2023 18:06:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="de36pMIh" X-Original-To: linux-kernel@vger.kernel.org Received: from out-170.mta1.migadu.com (out-170.mta1.migadu.com [95.215.58.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F3D32627E2 for ; Thu, 21 Dec 2023 18:06:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1703181999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=i0GLSbu+FVh1lkI5GuUWSCHjI1Tbl3xktQLpxtmlTZ0=; b=de36pMIhG8dcEtDj1hZGl0phPdkCusN9KYUxUjLrW6Qo7MOPk83R1yaVV2uQEqBzQ9Yi+I YrcwyKMDU4VHAw2fGeiuG8vGwQh9gvchz92Kt9bLVQkBDV56hk2bCBHS9o+9voTcf8YRmx 25kNS+cuLp7JEOirxbMf5QL/HnObxa0= From: andrey.konovalov@linux.dev To: Andrew Morton Cc: Andrey Konovalov , Marco Elver , Alexander Potapenko , Dmitry Vyukov , Andrey Ryabinin , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov Subject: [PATCH mm] kasan: fix for "kasan: rename and document kasan_(un)poison_object_data" Date: Thu, 21 Dec 2023 19:06:37 +0100 Message-Id: <20231221180637.105098-1-andrey.konovalov@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1785916317126389670 X-GMAIL-MSGID: 1785916317126389670 From: Andrey Konovalov Update references to renamed functions in comments. Fixes: ac6b240e1ede ("kasan: rename and document kasan_(un)poison_object_data") Signed-off-by: Andrey Konovalov Reviewed-by: Marco Elver --- mm/kasan/shadow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mm/kasan/shadow.c b/mm/kasan/shadow.c index d687f09a7ae3..0154d200be40 100644 --- a/mm/kasan/shadow.c +++ b/mm/kasan/shadow.c @@ -130,7 +130,7 @@ void kasan_poison(const void *addr, size_t size, u8 value, bool init) /* * Perform shadow offset calculation based on untagged address, as - * some of the callers (e.g. kasan_poison_object_data) pass tagged + * some of the callers (e.g. kasan_poison_new_object) pass tagged * addresses to this function. */ addr = kasan_reset_tag(addr); @@ -170,7 +170,7 @@ void kasan_unpoison(const void *addr, size_t size, bool init) /* * Perform shadow offset calculation based on untagged address, as - * some of the callers (e.g. kasan_unpoison_object_data) pass tagged + * some of the callers (e.g. kasan_unpoison_new_object) pass tagged * addresses to this function. */ addr = kasan_reset_tag(addr);