From patchwork Tue Nov 10 22:20:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 11895671 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 68DC9138B for ; Tue, 10 Nov 2020 22:21:14 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 3030D20674 for ; Tue, 10 Nov 2020 22:21:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="wL8k50M1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3030D20674 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id C02146B00AE; Tue, 10 Nov 2020 17:21:12 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id AA1836B00AF; Tue, 10 Nov 2020 17:21:12 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 82AAB6B00B0; Tue, 10 Nov 2020 17:21:12 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0225.hostedemail.com [216.40.44.225]) by kanga.kvack.org (Postfix) with ESMTP id 535026B00AE for ; Tue, 10 Nov 2020 17:21:12 -0500 (EST) Received: from smtpin04.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id F1CFA8249980 for ; Tue, 10 Nov 2020 22:21:11 +0000 (UTC) X-FDA: 77469930342.04.milk95_1c0c397272f8 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin04.hostedemail.com (Postfix) with ESMTP id CB6E18006433 for ; Tue, 10 Nov 2020 22:21:11 +0000 (UTC) X-Spam-Summary: 1,0,0,0f5c7bff46d7c171,d41d8cd98f00b204,3vhkrxwokccshukylfrucsnvvnsl.jvtspube-ttrchjr.vyn@flex--andreyknvl.bounces.google.com,,RULES_HIT:41:152:355:379:541:800:960:965:966:967:973:988:989:1260:1277:1313:1314:1345:1359:1431:1437:1516:1518:1534:1540:1593:1594:1711:1714:1730:1747:1777:1792:2196:2199:2393:2525:2559:2563:2682:2685:2693:2859:2902:2911:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3152:3351:3865:3872:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4321:4385:4390:4395:4425:5007:6119:6261:6653:6742:7903:9025:9969:10004:10400:11026:11658:11914:12043:12296:12297:12438:12555:12679:12895:13069:13311:13357:14096:14097:14181:14394:14659:14721:21080:21365:21444:21451:21627:21939:30012:30054,0,RBL:209.85.221.73:@flex--andreyknvl.bounces.google.com:.lbl8.mailshell.net-62.18.0.100 66.100.201.100;04y8uf1g7isozejj1dguafut8sh4bopcq6tp6bjk9i88dur6e3j45f1bptqboxe.3drfjjtqu9mrpdumycsqjq4muqwmge9dz1e466sbyqgeupc8t8wne4wssz6d9xk.y-lbl8.mai lshell.n X-HE-Tag: milk95_1c0c397272f8 X-Filterd-Recvd-Size: 4235 Received: from mail-wr1-f73.google.com (mail-wr1-f73.google.com [209.85.221.73]) by imf34.hostedemail.com (Postfix) with ESMTP for ; Tue, 10 Nov 2020 22:21:11 +0000 (UTC) Received: by mail-wr1-f73.google.com with SMTP id w6so6201729wrk.1 for ; Tue, 10 Nov 2020 14:21:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=MgiGs2FK0RQ4JNcJFnsxjsC4BWa7qeyNid6Uf5IWwBE=; b=wL8k50M1AQHx0VbQL3xi2XuIKzEGXDqvuUVrYzcIQ94olxXzgz0KX0q6k1f4qHRqNr llatx03+5CGH/foSZCzS8+mbo9AsyH1v/WHAAFQvSGtKVFIsW7M2JVSL/RY77Ni7+UKv FEqOLEs61nCxCIKEpESSzhVsL4LPWnOcrnfbp/V6bK7D8N8vSYSVH1Vn1WBuBPKz1Xto AJ3cdtZ2Uum98aAUASzeWGCdAOuYczsaP5Ke24OgbosVmgCMZ6eufONNfo/5pI4knmaW 5ez6cUJOUeYVfi5WRIAL3JvIxyUF+UP4ZCh+C3+BgUUsOc/4Liwv6fER/rLna14Yiuni 6Jfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=MgiGs2FK0RQ4JNcJFnsxjsC4BWa7qeyNid6Uf5IWwBE=; b=KoelnWYs8RrThiqV201OYfZfAwaEfRuImJr8PQAHC+hNtfaYQwmZG59kwV4TPSfAgr oSSBtFTFc2jJEPzCjS5o0AS9H+oIksAAwcSckTWGtDdWzx5AVt/MHM2oSd7GWWjdjcV1 dEb3+SHhVu0FZQfD+cYXuRMMUWTC6fAdoIDGoMfFYack+GxLMfTcCWNUZnGG6ezmbiAj bZgxCq8z73MKCCvY5XFSMVXlvgSf4p5XVMeWqNWj4IMuFnCGbq9j2Fw5cY8v/uh00lBt gKSdEmXLWBYcnUGFAHAV3rj53s/z1qa6VZJnJCjQ62rrcSU4xp81xP5q6PJJ0HYxZoSC Bebw== X-Gm-Message-State: AOAM533q9d2I/bWxJlB2MR01RU6uDzXCHlfshuCo9aza9tEdQ7eqwdZV 0+N+98xGWZT/zRaBszi92hiZ7eIyMJWJd3VC X-Google-Smtp-Source: ABdhPJz8cb5hUXqbVxJ0PZ94Oo4nqDbSIaKQRp5eSLyEzi5Tgzn73vxMVKemqTEYC3dSSCt7/YBWoWzIAj4/5hyP X-Received: from andreyknvl3.muc.corp.google.com ([2a00:79e0:15:13:7220:84ff:fe09:7e9d]) (user=andreyknvl job=sendgmr) by 2002:a05:600c:210a:: with SMTP id u10mr304573wml.98.1605046870141; Tue, 10 Nov 2020 14:21:10 -0800 (PST) Date: Tue, 10 Nov 2020 23:20:21 +0100 In-Reply-To: Message-Id: Mime-Version: 1.0 References: X-Mailer: git-send-email 2.29.2.222.g5d2a92d10f8-goog Subject: [PATCH v2 17/20] kasan: clarify comment in __kasan_kfree_large From: Andrey Konovalov To: Dmitry Vyukov , Alexander Potapenko , Marco Elver Cc: Catalin Marinas , Will Deacon , Vincenzo Frascino , Evgenii Stepanov , Andrey Ryabinin , Branislav Rankov , Kevin Brodsky , Andrew Morton , kasan-dev@googlegroups.com, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrey Konovalov 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: Currently it says that the memory gets poisoned by page_alloc code. Clarify this by mentioning the specific callback that poisons the memory. Signed-off-by: Andrey Konovalov Reviewed-by: Dmitry Vyukov Link: https://linux-review.googlesource.com/id/I1334dffb69b87d7986fab88a1a039cc3ea764725 Reviewed-by: Marco Elver --- mm/kasan/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/kasan/common.c b/mm/kasan/common.c index 40ff3ce07a76..4360292ad7f3 100644 --- a/mm/kasan/common.c +++ b/mm/kasan/common.c @@ -436,5 +436,5 @@ void __kasan_kfree_large(void *ptr, unsigned long ip) { if (ptr != page_address(virt_to_head_page(ptr))) kasan_report_invalid_free(ptr, ip); - /* The object will be poisoned by page_alloc. */ + /* The object will be poisoned by kasan_free_pages(). */ }