Skip to content

string: Add load_unaligned_zeropad() code path to sized_strscpy()

Peter Collingbourne linux-arm-kernel linux-fsdevel linux-hardening lkml stable 4 versions – Applied

Status from this message: Applied to for-next/hardening, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 3 repliesApplied
  2. v42 patches 4 repliesSuperseded
  3. v32 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v22 patches4 repliesSuperseded

Changes in v5 from the cover letter

- add test for unreadable first byte of strscpy() source

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/2string: Add load_unaligned_zeropad() code path to sized_strscpy()lib/string.c+10 -31 reply
2/2kasan: Add strscpy() test to trigger tag fault on arm64mm/kasan/kasan_test_c.c+20 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAndrey KonovalovCatalin Marinas
1/2R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

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

This series fixes an issue where strscpy() would sometimes trigger a false positive KASAN report with MTE.

v5:
- add test for unreadable first byte of strscpy() source

v4:
- clarify commit message
- improve comment

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 | 20 ++++++++++++++++++++
 2 files changed, 30 insertions(+), 3 deletions(-)
Signature · 1 line
2.49.0.472.ge94155a9ec-goog