user_data: using a user supplied offset into an known array give safe data
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 15 Apr 2013 08:02:03 +0000 (11:02 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Mon, 15 Apr 2013 08:02:03 +0000 (11:02 +0300)
commit585dcf941862452a588b459845f99ca72a09727b
tree621560cfc75d8197d1123f0643b370a121a49083
parent758190c748b87d139dfe5ad8bce44b9f8ea8c7cc
user_data: using a user supplied offset into an known array give safe data

The situation here is:

x = trusted_kernel_array[untrusted_user_offset];

At the end then x is trusted kernel data.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
check_user_data.c