Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2366070rdb; Mon, 5 Feb 2024 04:35:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IErixAUKpl+3v1+nPkgh3j9Md9K9pvDYN9tV1eNeBAGVqwJJKY9Ju2h7ekjiI30uah0wAJK X-Received: by 2002:a17:906:344e:b0:a37:aedd:589 with SMTP id d14-20020a170906344e00b00a37aedd0589mr2027055ejb.32.1707136546467; Mon, 05 Feb 2024 04:35:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707136546; cv=pass; d=google.com; s=arc-20160816; b=JF444qPd9QVatWJrjf3ubZGkW8FU+d2x17fX4/RC3s5gQpUotL+hSr6EFoK6GDUUeh TKBpw4pNAoinB2RHzHR7eWwHcpUKoYeN0mJw+jpFynWoQr/FT86NlhYxkpnyt3KL6F0m OTg/PZ3vbtasmTf7BTR/gS23kVcwsEDPBKjXsKYce6xlrLRBwLJ2QDDI7LuKmDfIC9Hx mSDQsL7JX7lRfGTlcJ/zHzLC2t9o1uWZFIFBKjyVBBOktxpnqqA9FSIUcBo5L+zxGfrP CvCGeiGhnyWPJnX2UKCqFd0XDrXWWFEdPmFxT7tbCOIW8CYx14otNswqvgdgHXIi88d/ zYww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=l8CVvdF5Aiu8bbnGwIPzuUGttJIlOEds+fQB4E+B8Xc=; fh=LxLKzqlPCifxwxz6rnJpSk85wjOd+gL22A2baLRR7gw=; b=sGm8wloycVe23K/x3IjSDHEGmph5vsq/TXtFvtwBmVk1paZ6qy3ezlgD9cGIQQiW73 VdP2xzUDjBwWLKT49GCjqsb0W9Jzt7pcu1JJM8Oc4Uak8kvu6DY3fxC6ATss9tE1QkKM IamAQ7JvAaKCvx7o5FB/q5h5+jTC7P/J/gE1p/wxCEj5Dy4MfAfpn+PCKBt+D6QnSOqj qtfgXqp3VRKx7wp4IvNrNCJtL/fIvkOsLo8Rf3u9ldjdMg1I38nfJM60vjxf4IthY0ym x6mmbaA2Yq4drJOzFhhApKvo0qacEE617wRXrFWknJaWrrczlTdPYkcd93OpKBNlThRE +opA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=WckYd0ar; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-52611-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=1; AJvYcCXRwTHjoQD1VwTzsFt9XMzcSb6uPZrTNb3otGB2xyxe0bPB+K4FOwfwH0Sah5YOMrmiVbVxpmgEeUst78H1dl6vfmT8YzdWQj8fWCct4Q== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w23-20020a17090633d700b00a36c68dbbd1si4035738eja.214.2024.02.05.04.35.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 04:35:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52611-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=WckYd0ar; arc=pass (i=1 spf=pass spfdomain=google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-52611-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52611-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0FF431F2107C for ; Mon, 5 Feb 2024 12:35:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F1A6249F7; Mon, 5 Feb 2024 12:34:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="WckYd0ar" Received: from mail-vk1-f178.google.com (mail-vk1-f178.google.com [209.85.221.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 097DF22F0E for ; Mon, 5 Feb 2024 12:34:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707136490; cv=none; b=Kh93ChjIC5zKY4mBdWTRFC537TocaALATGhS9c/xwc0wigisjAa2r26VqNMDwJWHixBSepP0x7gmPbPRUvg2+4ehOMW0xyQ1TzJHFP7K606aCQN0rC1L1ed0C8+eewkJUzGNI+46KoaC+AdzT8yPjBgjYPlmbI2xdirqj6+qnN0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707136490; c=relaxed/simple; bh=YFKCDxOTrfCEqeCqwK+UAtJTnsXbF15e+Xu2FPUWoHU=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=V1cyGeyM5/RT8tHBg1Yb+wpErYZxYrkx3wrBa8IunQFuxsmV1aREVRsfx5knRTConsz8iB7wu1KxZj+Co5JhuyQ7TWy9MQaArToG+hfZfkhmdPOXKOwnQZTIARK8MeZ733qhunJgKXphdlmtW1iiZq+Dco8KO0TB6B7gfsE6CFA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=WckYd0ar; arc=none smtp.client-ip=209.85.221.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Received: by mail-vk1-f178.google.com with SMTP id 71dfb90a1353d-4c022adaa88so195602e0c.0 for ; Mon, 05 Feb 2024 04:34:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707136488; x=1707741288; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=l8CVvdF5Aiu8bbnGwIPzuUGttJIlOEds+fQB4E+B8Xc=; b=WckYd0arlpNK/JjnrlKQgutjjyxllq2RXZm2ZfcAe4farjLjWwcfAxCOhsrNviWkI1 QzagXJHN9oSbFTLBBB8/d4OPiX2qw02NskaE0vMYwwQ5ft3FKhDv9NfRfvWngqEze9nE JzeyExmGw1YchqN884d6zi8b8BRgSP5nsH+AtFLuvLtPN4DPdgcLvZBlbJtM00687zpg KXZ/gepu6+YCGoxDQgwd+TLRlXrbcIrAtDUxlSUJ3vp8K4xjs4Fon1XIR+kBtHI/xfzF 9TYvm2VNHDim8CAEqGtRyI6qeR1m/DL9VI60C0fhWgUQ7Am5uodKwnqfGz9uGSRK1n+J 4RlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707136488; x=1707741288; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=l8CVvdF5Aiu8bbnGwIPzuUGttJIlOEds+fQB4E+B8Xc=; b=Ffq65YRRCbPFjun+hVgXAVO9XX+Yh6aOZQ1sgMYtgvN9vFhuyVyjYreFuBXi86Xe+q jQc1KVZAjegBhiFIuGmT9IAY82wfMDgnt9JV9C8iRNOxYE0rEzbJNvDuaiWosFUWx0mH ZG1JJ8fluobt665qaWaIXlKWTjkEdTTBgj+M88wMHh9CxBC2n/DOkSy0K9mS2djkioGp G5zYj/3awwwuUYfX8Zqqr356PCRoKlVdO3VLZVYuGYRhcGALLTEKaevd6UJ5/BYrfQaF 9W4PuUndn2ReOQPSEAjqynRM6vi+CoO0/8o/zU2YyzYSC8/iMgZH3V083xnGtTyvEbyu e6Ag== X-Gm-Message-State: AOJu0Yy10sxZ779lcP4otM/ayUwfGHIHYE7epidHXXkykqMO+5Kj5MnK 78BsImbGRXuW8ekuEAuy3oiENZyk1E+pw/f+Ze7D75udS+ueprx4MbiVuAo3rt4Z4U2kjFnao75 L201SC4ZH4XIEqR1ixGnyzgSpdg2GwsH1cwZc X-Received: by 2002:a05:6122:16a6:b0:4c0:328d:c4f9 with SMTP id 38-20020a05612216a600b004c0328dc4f9mr1108119vkl.0.1707136487476; Mon, 05 Feb 2024 04:34:47 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240205060925.15594-1-yangtiezhu@loongson.cn> <20240205060925.15594-2-yangtiezhu@loongson.cn> In-Reply-To: <20240205060925.15594-2-yangtiezhu@loongson.cn> From: Marco Elver Date: Mon, 5 Feb 2024 13:34:10 +0100 Message-ID: Subject: Re: [PATCH 1/2] kasan: docs: Update descriptions about test file and module To: Tiezhu Yang Cc: Andrew Morton , Jonathan Corbet , Andrey Ryabinin , Andrey Konovalov , kasan-dev@googlegroups.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, 5 Feb 2024 at 07:09, Tiezhu Yang wrote: > > After commit f7e01ab828fd ("kasan: move tests to mm/kasan/"), the test > file is renamed to mm/kasan/kasan_test.c and the test module is renamed > to kasan_test.ko, so update the descriptions in the document. > > While at it, update the line number and testcase number when the tests > kmalloc_large_oob_right and kmalloc_double_kzfree failed to sync with > the current code in mm/kasan/kasan_test.c. > > Signed-off-by: Tiezhu Yang Acked-by: Marco Elver Thanks for cleaning this up. > --- > Documentation/dev-tools/kasan.rst | 20 +++++++++---------- > .../translations/zh_CN/dev-tools/kasan.rst | 20 +++++++++---------- > .../translations/zh_TW/dev-tools/kasan.rst | 20 +++++++++---------- > 3 files changed, 30 insertions(+), 30 deletions(-) > > diff --git a/Documentation/dev-tools/kasan.rst b/Documentation/dev-tools/= kasan.rst > index 858c77fe7dc4..a5a6dbe9029f 100644 > --- a/Documentation/dev-tools/kasan.rst > +++ b/Documentation/dev-tools/kasan.rst > @@ -169,7 +169,7 @@ Error reports > A typical KASAN report looks like this:: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > - BUG: KASAN: slab-out-of-bounds in kmalloc_oob_right+0xa8/0xbc [test_= kasan] > + BUG: KASAN: slab-out-of-bounds in kmalloc_oob_right+0xa8/0xbc [kasan= _test] > Write of size 1 at addr ffff8801f44ec37b by task insmod/2760 > > CPU: 1 PID: 2760 Comm: insmod Not tainted 4.19.0-rc3+ #698 > @@ -179,8 +179,8 @@ A typical KASAN report looks like this:: > print_address_description+0x73/0x280 > kasan_report+0x144/0x187 > __asan_report_store1_noabort+0x17/0x20 > - kmalloc_oob_right+0xa8/0xbc [test_kasan] > - kmalloc_tests_init+0x16/0x700 [test_kasan] > + kmalloc_oob_right+0xa8/0xbc [kasan_test] > + kmalloc_tests_init+0x16/0x700 [kasan_test] > do_one_initcall+0xa5/0x3ae > do_init_module+0x1b6/0x547 > load_module+0x75df/0x8070 > @@ -200,8 +200,8 @@ A typical KASAN report looks like this:: > save_stack+0x43/0xd0 > kasan_kmalloc+0xa7/0xd0 > kmem_cache_alloc_trace+0xe1/0x1b0 > - kmalloc_oob_right+0x56/0xbc [test_kasan] > - kmalloc_tests_init+0x16/0x700 [test_kasan] > + kmalloc_oob_right+0x56/0xbc [kasan_test] > + kmalloc_tests_init+0x16/0x700 [kasan_test] > do_one_initcall+0xa5/0x3ae > do_init_module+0x1b6/0x547 > load_module+0x75df/0x8070 > @@ -510,15 +510,15 @@ When a test passes:: > > When a test fails due to a failed ``kmalloc``:: > > - # kmalloc_large_oob_right: ASSERTION FAILED at lib/test_kasan.c:= 163 > + # kmalloc_large_oob_right: ASSERTION FAILED at mm/kasan/kasan_te= st.c:245 > Expected ptr is not null, but is > - not ok 4 - kmalloc_large_oob_right > + not ok 5 - kmalloc_large_oob_right > > When a test fails due to a missing KASAN report:: > > - # kmalloc_double_kzfree: EXPECTATION FAILED at lib/test_kasan.c:= 974 > + # kmalloc_double_kzfree: EXPECTATION FAILED at mm/kasan/kasan_te= st.c:709 > KASAN failure expected in "kfree_sensitive(ptr)", but none occur= red > - not ok 44 - kmalloc_double_kzfree > + not ok 28 - kmalloc_double_kzfree > > > At the end the cumulative status of all KASAN tests is printed. On succe= ss:: > @@ -534,7 +534,7 @@ There are a few ways to run KUnit-compatible KASAN te= sts. > 1. Loadable module > > With ``CONFIG_KUNIT`` enabled, KASAN-KUnit tests can be built as a lo= adable > - module and run by loading ``test_kasan.ko`` with ``insmod`` or ``modp= robe``. > + module and run by loading ``kasan_test.ko`` with ``insmod`` or ``modp= robe``. > > 2. Built-In > > diff --git a/Documentation/translations/zh_CN/dev-tools/kasan.rst b/Docum= entation/translations/zh_CN/dev-tools/kasan.rst > index 8fdb20c9665b..2b1e8f74904b 100644 > --- a/Documentation/translations/zh_CN/dev-tools/kasan.rst > +++ b/Documentation/translations/zh_CN/dev-tools/kasan.rst > @@ -137,7 +137,7 @@ KASAN=E5=8F=97=E5=88=B0=E9=80=9A=E7=94=A8 ``panic_on_= warn`` =E5=91=BD=E4=BB=A4=E8=A1=8C=E5=8F=82=E6=95=B0=E7=9A=84=E5=BD=B1=E5= =93=8D=E3=80=82=E5=BD=93=E5=AE=83=E8=A2=AB=E5=90=AF=E7=94=A8 > =E5=85=B8=E5=9E=8B=E7=9A=84KASAN=E6=8A=A5=E5=91=8A=E5=A6=82=E4=B8=8B=E6= =89=80=E7=A4=BA:: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > - BUG: KASAN: slab-out-of-bounds in kmalloc_oob_right+0xa8/0xbc [test_= kasan] > + BUG: KASAN: slab-out-of-bounds in kmalloc_oob_right+0xa8/0xbc [kasan= _test] > Write of size 1 at addr ffff8801f44ec37b by task insmod/2760 > > CPU: 1 PID: 2760 Comm: insmod Not tainted 4.19.0-rc3+ #698 > @@ -147,8 +147,8 @@ KASAN=E5=8F=97=E5=88=B0=E9=80=9A=E7=94=A8 ``panic_on_= warn`` =E5=91=BD=E4=BB=A4=E8=A1=8C=E5=8F=82=E6=95=B0=E7=9A=84=E5=BD=B1=E5= =93=8D=E3=80=82=E5=BD=93=E5=AE=83=E8=A2=AB=E5=90=AF=E7=94=A8 > print_address_description+0x73/0x280 > kasan_report+0x144/0x187 > __asan_report_store1_noabort+0x17/0x20 > - kmalloc_oob_right+0xa8/0xbc [test_kasan] > - kmalloc_tests_init+0x16/0x700 [test_kasan] > + kmalloc_oob_right+0xa8/0xbc [kasan_test] > + kmalloc_tests_init+0x16/0x700 [kasan_test] > do_one_initcall+0xa5/0x3ae > do_init_module+0x1b6/0x547 > load_module+0x75df/0x8070 > @@ -168,8 +168,8 @@ KASAN=E5=8F=97=E5=88=B0=E9=80=9A=E7=94=A8 ``panic_on_= warn`` =E5=91=BD=E4=BB=A4=E8=A1=8C=E5=8F=82=E6=95=B0=E7=9A=84=E5=BD=B1=E5= =93=8D=E3=80=82=E5=BD=93=E5=AE=83=E8=A2=AB=E5=90=AF=E7=94=A8 > save_stack+0x43/0xd0 > kasan_kmalloc+0xa7/0xd0 > kmem_cache_alloc_trace+0xe1/0x1b0 > - kmalloc_oob_right+0x56/0xbc [test_kasan] > - kmalloc_tests_init+0x16/0x700 [test_kasan] > + kmalloc_oob_right+0x56/0xbc [kasan_test] > + kmalloc_tests_init+0x16/0x700 [kasan_test] > do_one_initcall+0xa5/0x3ae > do_init_module+0x1b6/0x547 > load_module+0x75df/0x8070 > @@ -421,15 +421,15 @@ KASAN=E8=BF=9E=E6=8E=A5=E5=88=B0vmap=E5=9F=BA=E7=A1= =80=E6=9E=B6=E6=9E=84=E4=BB=A5=E6=87=92=E6=B8=85=E7=90=86=E6=9C=AA=E4=BD=BF= =E7=94=A8=E7=9A=84=E5=BD=B1=E5=AD=90=E5=86=85=E5=AD=98=E3=80=82 > > =E5=BD=93=E7=94=B1=E4=BA=8E ``kmalloc`` =E5=A4=B1=E8=B4=A5=E8=80=8C=E5= =AF=BC=E8=87=B4=E6=B5=8B=E8=AF=95=E5=A4=B1=E8=B4=A5=E6=97=B6:: > > - # kmalloc_large_oob_right: ASSERTION FAILED at lib/test_kasan.c:= 163 > + # kmalloc_large_oob_right: ASSERTION FAILED at mm/kasan/kasan_te= st.c:245 > Expected ptr is not null, but is > - not ok 4 - kmalloc_large_oob_right > + not ok 5 - kmalloc_large_oob_right > > =E5=BD=93=E7=94=B1=E4=BA=8E=E7=BC=BA=E5=B0=91KASAN=E6=8A=A5=E5=91=8A=E8= =80=8C=E5=AF=BC=E8=87=B4=E6=B5=8B=E8=AF=95=E5=A4=B1=E8=B4=A5=E6=97=B6:: > > - # kmalloc_double_kzfree: EXPECTATION FAILED at lib/test_kasan.c:= 974 > + # kmalloc_double_kzfree: EXPECTATION FAILED at mm/kasan/kasan_te= st.c:709 > KASAN failure expected in "kfree_sensitive(ptr)", but none occur= red > - not ok 44 - kmalloc_double_kzfree > + not ok 28 - kmalloc_double_kzfree > > > =E6=9C=80=E5=90=8E=E6=89=93=E5=8D=B0=E6=89=80=E6=9C=89KASAN=E6=B5=8B=E8= =AF=95=E7=9A=84=E7=B4=AF=E7=A7=AF=E7=8A=B6=E6=80=81=E3=80=82=E6=88=90=E5=8A= =9F:: > @@ -445,7 +445,7 @@ KASAN=E8=BF=9E=E6=8E=A5=E5=88=B0vmap=E5=9F=BA=E7=A1= =80=E6=9E=B6=E6=9E=84=E4=BB=A5=E6=87=92=E6=B8=85=E7=90=86=E6=9C=AA=E4=BD=BF= =E7=94=A8=E7=9A=84=E5=BD=B1=E5=AD=90=E5=86=85=E5=AD=98=E3=80=82 > 1. =E5=8F=AF=E5=8A=A0=E8=BD=BD=E6=A8=A1=E5=9D=97 > > =E5=90=AF=E7=94=A8 ``CONFIG_KUNIT`` =E5=90=8E=EF=BC=8CKASAN-KUnit=E6= =B5=8B=E8=AF=95=E5=8F=AF=E4=BB=A5=E6=9E=84=E5=BB=BA=E4=B8=BA=E5=8F=AF=E5=8A= =A0=E8=BD=BD=E6=A8=A1=E5=9D=97=EF=BC=8C=E5=B9=B6=E9=80=9A=E8=BF=87=E4=BD=BF= =E7=94=A8 > - ``insmod`` =E6=88=96 ``modprobe`` =E5=8A=A0=E8=BD=BD ``test_kasan.ko`= ` =E6=9D=A5=E8=BF=90=E8=A1=8C=E3=80=82 > + ``insmod`` =E6=88=96 ``modprobe`` =E5=8A=A0=E8=BD=BD ``kasan_test.ko`= ` =E6=9D=A5=E8=BF=90=E8=A1=8C=E3=80=82 > > 2. =E5=86=85=E7=BD=AE > > diff --git a/Documentation/translations/zh_TW/dev-tools/kasan.rst b/Docum= entation/translations/zh_TW/dev-tools/kasan.rst > index 979eb84bc58f..ed342e67d8ed 100644 > --- a/Documentation/translations/zh_TW/dev-tools/kasan.rst > +++ b/Documentation/translations/zh_TW/dev-tools/kasan.rst > @@ -137,7 +137,7 @@ KASAN=E5=8F=97=E5=88=B0=E9=80=9A=E7=94=A8 ``panic_on_= warn`` =E5=91=BD=E4=BB=A4=E8=A1=8C=E5=8F=83=E6=95=B8=E7=9A=84=E5=BD=B1=E9= =9F=BF=E3=80=82=E7=95=B6=E5=AE=83=E8=A2=AB=E5=95=93=E7=94=A8 > =E5=85=B8=E5=9E=8B=E7=9A=84KASAN=E5=A0=B1=E5=91=8A=E5=A6=82=E4=B8=8B=E6= =89=80=E7=A4=BA:: > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > - BUG: KASAN: slab-out-of-bounds in kmalloc_oob_right+0xa8/0xbc [test_= kasan] > + BUG: KASAN: slab-out-of-bounds in kmalloc_oob_right+0xa8/0xbc [kasan= _test] > Write of size 1 at addr ffff8801f44ec37b by task insmod/2760 > > CPU: 1 PID: 2760 Comm: insmod Not tainted 4.19.0-rc3+ #698 > @@ -147,8 +147,8 @@ KASAN=E5=8F=97=E5=88=B0=E9=80=9A=E7=94=A8 ``panic_on_= warn`` =E5=91=BD=E4=BB=A4=E8=A1=8C=E5=8F=83=E6=95=B8=E7=9A=84=E5=BD=B1=E9= =9F=BF=E3=80=82=E7=95=B6=E5=AE=83=E8=A2=AB=E5=95=93=E7=94=A8 > print_address_description+0x73/0x280 > kasan_report+0x144/0x187 > __asan_report_store1_noabort+0x17/0x20 > - kmalloc_oob_right+0xa8/0xbc [test_kasan] > - kmalloc_tests_init+0x16/0x700 [test_kasan] > + kmalloc_oob_right+0xa8/0xbc [kasan_test] > + kmalloc_tests_init+0x16/0x700 [kasan_test] > do_one_initcall+0xa5/0x3ae > do_init_module+0x1b6/0x547 > load_module+0x75df/0x8070 > @@ -168,8 +168,8 @@ KASAN=E5=8F=97=E5=88=B0=E9=80=9A=E7=94=A8 ``panic_on_= warn`` =E5=91=BD=E4=BB=A4=E8=A1=8C=E5=8F=83=E6=95=B8=E7=9A=84=E5=BD=B1=E9= =9F=BF=E3=80=82=E7=95=B6=E5=AE=83=E8=A2=AB=E5=95=93=E7=94=A8 > save_stack+0x43/0xd0 > kasan_kmalloc+0xa7/0xd0 > kmem_cache_alloc_trace+0xe1/0x1b0 > - kmalloc_oob_right+0x56/0xbc [test_kasan] > - kmalloc_tests_init+0x16/0x700 [test_kasan] > + kmalloc_oob_right+0x56/0xbc [kasan_test] > + kmalloc_tests_init+0x16/0x700 [kasan_test] > do_one_initcall+0xa5/0x3ae > do_init_module+0x1b6/0x547 > load_module+0x75df/0x8070 > @@ -421,15 +421,15 @@ KASAN=E9=80=A3=E6=8E=A5=E5=88=B0vmap=E5=9F=BA=E7=A4= =8E=E6=9E=B6=E6=A7=8B=E4=BB=A5=E6=87=B6=E6=B8=85=E7=90=86=E6=9C=AA=E4=BD=BF= =E7=94=A8=E7=9A=84=E5=BD=B1=E5=AD=90=E5=85=A7=E5=AD=98=E3=80=82 > > =E7=95=B6=E7=94=B1=E6=96=BC ``kmalloc`` =E5=A4=B1=E6=95=97=E8=80=8C=E5= =B0=8E=E8=87=B4=E6=B8=AC=E8=A9=A6=E5=A4=B1=E6=95=97=E6=99=82:: > > - # kmalloc_large_oob_right: ASSERTION FAILED at lib/test_kasan.c:= 163 > + # kmalloc_large_oob_right: ASSERTION FAILED at mm/kasan/kasan_te= st.c:245 > Expected ptr is not null, but is > - not ok 4 - kmalloc_large_oob_right > + not ok 5 - kmalloc_large_oob_right > > =E7=95=B6=E7=94=B1=E6=96=BC=E7=BC=BA=E5=B0=91KASAN=E5=A0=B1=E5=91=8A=E8= =80=8C=E5=B0=8E=E8=87=B4=E6=B8=AC=E8=A9=A6=E5=A4=B1=E6=95=97=E6=99=82:: > > - # kmalloc_double_kzfree: EXPECTATION FAILED at lib/test_kasan.c:= 974 > + # kmalloc_double_kzfree: EXPECTATION FAILED at mm/kasan/kasan_te= st.c:709 > KASAN failure expected in "kfree_sensitive(ptr)", but none occur= red > - not ok 44 - kmalloc_double_kzfree > + not ok 28 - kmalloc_double_kzfree > > > =E6=9C=80=E5=BE=8C=E6=89=93=E5=8D=B0=E6=89=80=E6=9C=89KASAN=E6=B8=AC=E8= =A9=A6=E7=9A=84=E7=B4=AF=E7=A9=8D=E7=8B=80=E6=85=8B=E3=80=82=E6=88=90=E5=8A= =9F:: > @@ -445,7 +445,7 @@ KASAN=E9=80=A3=E6=8E=A5=E5=88=B0vmap=E5=9F=BA=E7=A4= =8E=E6=9E=B6=E6=A7=8B=E4=BB=A5=E6=87=B6=E6=B8=85=E7=90=86=E6=9C=AA=E4=BD=BF= =E7=94=A8=E7=9A=84=E5=BD=B1=E5=AD=90=E5=85=A7=E5=AD=98=E3=80=82 > 1. =E5=8F=AF=E5=8A=A0=E8=BC=89=E6=A8=A1=E5=A1=8A > > =E5=95=93=E7=94=A8 ``CONFIG_KUNIT`` =E5=BE=8C=EF=BC=8CKASAN-KUnit=E6= =B8=AC=E8=A9=A6=E5=8F=AF=E4=BB=A5=E6=A7=8B=E5=BB=BA=E7=88=B2=E5=8F=AF=E5=8A= =A0=E8=BC=89=E6=A8=A1=E5=A1=8A=EF=BC=8C=E4=B8=A6=E9=80=9A=E9=81=8E=E4=BD=BF= =E7=94=A8 > - ``insmod`` =E6=88=96 ``modprobe`` =E5=8A=A0=E8=BC=89 ``test_kasan.ko`= ` =E4=BE=86=E9=81=8B=E8=A1=8C=E3=80=82 > + ``insmod`` =E6=88=96 ``modprobe`` =E5=8A=A0=E8=BC=89 ``kasan_test.ko`= ` =E4=BE=86=E9=81=8B=E8=A1=8C=E3=80=82 > > 2. =E5=85=A7=E7=BD=AE > > -- > 2.42.0 >