Page MenuHomeFreeBSD

kasan: fix false-positive kasan_report upon thread reuse
ClosedPublic

Authored by khng on Fri, Apr 19, 7:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 26, 3:51 PM
Unknown Object (File)
Fri, Apr 26, 3:51 PM
Unknown Object (File)
Fri, Apr 26, 3:51 PM
Unknown Object (File)
Fri, Apr 26, 10:32 AM
Unknown Object (File)
Fri, Apr 26, 3:12 AM
Unknown Object (File)
Sun, Apr 21, 8:13 PM
Unknown Object (File)
Fri, Apr 19, 9:48 PM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 57231
Build 54119: arc lint + arc unit

Event Timeline

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

BTW, you could add

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