Changeset 962c89af in mainline for kernel/generic/include/proc/task.h

Timestamp:
2019-06-20T14:51:57Z (5 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Parents:
5acf533
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-20 14:48:53)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-20 14:51:57)
Message:

Prevent leaking kernel stack bytes via sys_as_area_get_info()

The compiler will try to avoid initializing the padding bytes if it
doesn't have to, so copying the whole structure would copy whatever
bytes were on the stack before. We prevent that by clearing the whole
structure using memset().

(No files)

Note: See TracChangeset for help on using the changeset viewer.