Thread (9 messages) 9 messages, 4 authors, 2014-07-29

Re: [PATCH] regulatory: add NULL to alpha2

From: Luis R. Rodriguez <hidden>
Date: 2014-06-11 08:30:32

On Wed, Jun 11, 2014 at 12:23 AM, Arik Nemtsov [off-list ref] wrote:
From: Eliad Peller <redacted>

alpha2 is defined as 2-chars array, but is used in multiple
places as string (e.g. with nla_put_string calls), which
might leak kernel data.

Solve it by simply adding an extra char for the NULL
terminator, making such operations safe.

Signed-off-by: Eliad Peller <redacted>
Reviewed-by: Johannes Berg <redacted>
Acked-by: Luis R. Rodriguez <redacted>

Thanks for the patch ! Curious how you ended up down finding the issue though.

  Luis
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help