[PATCH v3 0/2] string: Add load_unaligned_zeropad() code path to sized_strscpy()

Peter Collingbourne posted 2 patches 8 months, 3 weeks ago
There is a newer version of this series
lib/string.c            | 13 ++++++++++---
mm/kasan/kasan_test_c.c | 13 +++++++++++++
2 files changed, 23 insertions(+), 3 deletions(-)
[PATCH v3 0/2] string: Add load_unaligned_zeropad() code path to sized_strscpy()
Posted by Peter Collingbourne 8 months, 3 weeks ago
This series fixes an issue where strscpy() would sometimes trigger
a false positive KASAN report with MTE.

v3:
- simplify test case

Peter Collingbourne (1):
  string: Add load_unaligned_zeropad() code path to sized_strscpy()

Vincenzo Frascino (1):
  kasan: Add strscpy() test to trigger tag fault on arm64

 lib/string.c            | 13 ++++++++++---
 mm/kasan/kasan_test_c.c | 13 +++++++++++++
 2 files changed, 23 insertions(+), 3 deletions(-)

-- 
2.49.0.395.g12beb8f557-goog
Re: [PATCH v3 0/2] string: Add load_unaligned_zeropad() code path to sized_strscpy()
Posted by Kees Cook 8 months, 3 weeks ago
On Mon, Mar 24, 2025 at 06:56:13PM -0700, Peter Collingbourne wrote:
> This series fixes an issue where strscpy() would sometimes trigger
> a false positive KASAN report with MTE.

Thanks! Should this go via string API (me) or KASAN?

-Kees

-- 
Kees Cook
Re: [PATCH v3 0/2] string: Add load_unaligned_zeropad() code path to sized_strscpy()
Posted by Peter Collingbourne 8 months, 3 weeks ago
On Tue, Mar 25, 2025 at 12:43 PM Kees Cook <kees@kernel.org> wrote:
>
> On Mon, Mar 24, 2025 at 06:56:13PM -0700, Peter Collingbourne wrote:
> > This series fixes an issue where strscpy() would sometimes trigger
> > a false positive KASAN report with MTE.
>
> Thanks! Should this go via string API (me) or KASAN?

Let's take this via string API.

Peter