diff options
author | Kees Cook <keescook@chromium.org> | 2017-05-25 21:40:22 -0700 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2017-06-22 16:21:42 -0700 |
commit | 802762cdfff256b6bf3fdb624ac2c56ec043c4f0 (patch) | |
tree | 4a05dac3288791da1aefc191f6fe8da1e2e0c56e /drivers | |
parent | b07b65846ba33a4deba03eb6e39043c8bc70903b (diff) | |
download | linux-802762cdfff256b6bf3fdb624ac2c56ec043c4f0.tar.gz linux-802762cdfff256b6bf3fdb624ac2c56ec043c4f0.tar.bz2 linux-802762cdfff256b6bf3fdb624ac2c56ec043c4f0.zip |
randstruct: Whitelist big_key path struct overloading
The big_key payload structure intentionally stores a struct path in
two void pointers to avoid header soup. Whitelist this case:
security/keys/big_key.c: In function ‘big_key_read’:
security/keys/big_key.c:293:16: note: found mismatched rhs struct pointer types: ‘struct path’ and ‘void *’
struct path *path = (struct path *)&key->payload.data[big_key_path];
^~~~
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions