ANDROID: check dir value of xfrm_userpolicy_id
authorSuren Baghdasaryan <surenb@google.com>
Tue, 15 Aug 2017 22:12:24 +0000 (15:12 -0700)
committerSuren Baghdasaryan <surenb@google.com>
Mon, 21 Aug 2017 16:04:45 +0000 (09:04 -0700)
commit34803e7c1c92f53603f6aa11235915afc2589290
treec7b680ed9bd156a97622c7a14335f743e5c3442c
parentc2e26216b788c939e995b08f82d24de6212f99fd
ANDROID: check dir value of xfrm_userpolicy_id

Check user provided dir value to prevent out-of-bound access
which may occur if dir is not less than XFRM_POLICY_MAX.

(url: http://seclists.org/bugtraq/2017/Jul/30)

Bug: 64257838
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I5bbdf95e14a61bdf5207977d9a5a4465bc848da0
net/xfrm/xfrm_user.c