lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <rbppxnzk5qcb3xn3gexennv3erveqdndxljytqe7bsbnfa4hd4@6zvjav6iuzhi>
Date: Fri, 22 Aug 2025 09:36:40 +0200
From: Maciej Wieczor-Retman <maciej.wieczor-retman@...el.com>
To: Ada Couprie Diaz <ada.coupriediaz@....com>
CC: <nathan@...nel.org>, <arnd@...db.de>, <broonie@...nel.org>,
	<Liam.Howlett@...cle.com>, <urezki@...il.com>, <will@...nel.org>,
	<kaleshsingh@...gle.com>, <rppt@...nel.org>, <leitao@...ian.org>,
	<coxu@...hat.com>, <surenb@...gle.com>, <akpm@...ux-foundation.org>,
	<luto@...nel.org>, <jpoimboe@...nel.org>, <changyuanl@...gle.com>,
	<hpa@...or.com>, <dvyukov@...gle.com>, <kas@...nel.org>, <corbet@....net>,
	<vincenzo.frascino@....com>, <smostafa@...gle.com>,
	<nick.desaulniers+lkml@...il.com>, <morbo@...gle.com>,
	<andreyknvl@...il.com>, <alexander.shishkin@...ux.intel.com>,
	<thiago.bauermann@...aro.org>, <catalin.marinas@....com>,
	<ryabinin.a.a@...il.com>, <jan.kiszka@...mens.com>, <jbohac@...e.cz>,
	<dan.j.williams@...el.com>, <joel.granados@...nel.org>, <baohua@...nel.org>,
	<kevin.brodsky@....com>, <nicolas.schier@...ux.dev>, <pcc@...gle.com>,
	<andriy.shevchenko@...ux.intel.com>, <wei.liu@...nel.org>, <bp@...en8.de>,
	<xin@...or.com>, <pankaj.gupta@....com>, <vbabka@...e.cz>,
	<glider@...gle.com>, <jgross@...e.com>, <kees@...nel.org>,
	<jhubbard@...dia.com>, <joey.gouly@....com>, <ardb@...nel.org>,
	<thuth@...hat.com>, <pasha.tatashin@...een.com>,
	<kristina.martsenko@....com>, <bigeasy@...utronix.de>,
	<lorenzo.stoakes@...cle.com>, <jason.andryuk@....com>, <david@...hat.com>,
	<graf@...zon.com>, <wangkefeng.wang@...wei.com>, <ziy@...dia.com>,
	<mark.rutland@....com>, <dave.hansen@...ux.intel.com>,
	<samuel.holland@...ive.com>, <kbingham@...nel.org>,
	<trintaeoitogc@...il.com>, <scott@...amperecomputing.com>,
	<justinstitt@...gle.com>, <kuan-ying.lee@...onical.com>, <maz@...nel.org>,
	<tglx@...utronix.de>, <samitolvanen@...gle.com>, <mhocko@...e.com>,
	<nunodasneves@...ux.microsoft.com>, <brgerst@...il.com>,
	<willy@...radead.org>, <ubizjak@...il.com>, <peterz@...radead.org>,
	<mingo@...hat.com>, <sohil.mehta@...el.com>, <linux-mm@...ck.org>,
	<linux-kbuild@...r.kernel.org>, <linux-arm-kernel@...ts.infradead.org>,
	<x86@...nel.org>, <llvm@...ts.linux.dev>, <kasan-dev@...glegroups.com>,
	<linux-doc@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v4 00/18] kasan: x86: arm64: KASAN tag-based mode for x86

Hello, and thanks for testing the series!

On 2025-08-21 at 13:30:28 +0100, Ada Couprie Diaz wrote:
>Hi,
>
>On 12/08/2025 14:23, Maciej Wieczor-Retman wrote:
>> [...]
>> ======= Testing
>> Checked all the kunits for both software tags and generic KASAN after
>> making changes.
>> 
>> In generic mode the results were:
>> 
>> kasan: pass:59 fail:0 skip:13 total:72
>> Totals: pass:59 fail:0 skip:13 total:72
>> ok 1 kasan
>> 
>> and for software tags:
>> 
>> kasan: pass:63 fail:0 skip:9 total:72
>> Totals: pass:63 fail:0 skip:9 total:72
>> ok 1 kasan
>I tested the series on arm64 and after fixing the build issues mentioned
>I was able to boot without issues and did not observe any regressions
>in the KASAN KUnit tests with either generic or software tags.
>
>So this is Tested-by: Ada Couprie Diaz <ada.coupriediaz@....com> (For arm64)

Thank you! I'll try to send the fixed series on monday/tuesday.

>I will note that the tests `kmalloc_memmove_negative_size` and
>`kmalloc_memmove_invalid_size` seem to be able to corrupt memory
>and lead to kernel crashes if `memmove()` is not properly instrumented,
>which I discovered while investigating [0].

What do you mean by 'properly instrumented'? Is it the intrinsic prefix thing
for gcc that you mentioned?

>> [...]
>> ======= Compilation
>> Clang was used to compile the series (make LLVM=1) since gcc doesn't
>> seem to have support for KASAN tag-based compiler instrumentation on
>> x86.
>
>Interestingly, while investigating [0], this comment slipped by me and
>I managed to compile your series for x86 with software tags using GCC,
>though it is a bit hacky.
>You need to update the CC_HAS_KASAN_SW_TAGS to pass `-mlam=u48`
>or `-mlam=u57`, as it is disabled by default, and pass `-march=arrowlake`
>for compilation (the support for software tags depends on the arch).
>You could then test with GCC (though the issue in [0] also applies to x86).

Thanks! I'll try it out :)

>
>Best,
>Ada

-- 
Kind regards
Maciej Wieczór-Retman

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ