Page MenuHomeFreeBSD

kasan: fix false-positive kasan_report upon thread reuse
ClosedPublic

Authored by khng on Apr 19 2024, 7:15 PM.
Tags
None
Referenced Files
F175304888: D44875.id137413.diff
Fri, Oct 9, 7:50 PM
Unknown Object (File)
Mon, Oct 5, 10:28 PM
Unknown Object (File)
Sun, Sep 27, 9:54 AM
Unknown Object (File)
Thu, Sep 24, 3:25 PM
Unknown Object (File)
Wed, Sep 23, 7:16 AM
Unknown Object (File)
Fri, Sep 18, 10:21 PM
Unknown Object (File)
Sun, Sep 13, 5:47 PM
Unknown Object (File)
Sat, Sep 12, 8:03 AM
Subscribers

Details

Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

khng requested review of this revision.Apr 19 2024, 7:15 PM
This revision is now accepted and ready to land.Apr 19 2024, 7:17 PM

BTW, you could add

Reported by: syzbot+7841eb438247e5a7f6b0@syzkaller.appspotmail.com
Reported by: syzbot+d35497494d68b4859367@syzkaller.appspotmail.com