apparmor: do not expose kernel stack
commit f4ee2def2d70692ccff0d55353df4ee594fd0017 upstream. Do not copy uninitalized fields th.td_hilen, th.td_data. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: John Johansen <john.johansen@canonical.com> Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Willy Tarreau <w@1wt.eu>
This commit is contained in:
committed by
Willy Tarreau
parent
a078d77fb0
commit
f466ca6552
@@ -61,7 +61,9 @@ static struct table_header *unpack_table(char *blob, size_t bsize)
|
||||
|
||||
table = kvmalloc(tsize);
|
||||
if (table) {
|
||||
*table = th;
|
||||
table->td_id = th.td_id;
|
||||
table->td_flags = th.td_flags;
|
||||
table->td_lolen = th.td_lolen;
|
||||
if (th.td_flags == YYTD_DATA8)
|
||||
UNPACK_ARRAY(table->td_data, blob, th.td_lolen,
|
||||
u8, byte_to_byte);
|
||||
|
||||
Reference in New Issue
Block a user