HomeFreeBSD

kasan: fix false-positive kasan_report upon thread reuse

Description

kasan: fix false-positive kasan_report upon thread reuse

In fork1(), if a thread is reused and thread_alloc_stack() is not
called, mark the reused thread's kstack pages clean in the KASAN shadow
buffer.

Sponsored by: Juniper Networks, Inc.
MFC after: 3 days
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D44875

(cherry picked from commit 68a3a7fc94833020403190c20bd9be186c6156ce)

Details

Provenance
khngAuthored on Apr 19 2024, 7:18 PM
Reviewer
markj
Differential Revision
D44875: kasan: fix false-positive kasan_report upon thread reuse
Parents
rG2dff504999f5: share/mk/bsd.cpu.mk: add F16C feature for i386 and amd64 architectures
Branches
Unknown
Tags
Unknown