From: Dan Carpenter Date: Wed, 16 Nov 2011 08:21:50 +0000 (+0100) Subject: paride: fix potential information leak in pg_read() X-Git-Tag: v3.2-rc3~39^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2c2a0e668e26e020731ce2a40e6474d1d37210a;p=pandora-kernel.git paride: fix potential information leak in pg_read() Smatch has a new check for Rosenberg type information leaks where structs are copied to the user with uninitialized stack data in them. i In this case, the pg_write_hdr struct has a hole in it. struct pg_write_hdr { char magic; /* 0 1 */ char func; /* 1 1 */ /* XXX 2 bytes hole, try to pack */ int dlen; /* 4 4 */ Signed-off-by: Dan Carpenter Cc: Tim Waugh Signed-off-by: Andrew Morton Signed-off-by: Jens Axboe --- Reading git-diff-tree failed