Deepak Nibade
9902a49b0b
gpu: nvgpu: fix use of untrusted scalar value
...
Kind value can be passed to API nvgpu_vm_map() from User
space (through IOCTL NVGPU_AS_IOCTL_MAP_BUFFER_EX)
But kind value is not checked for sane values
before storing it in bfr.kind_v
And then we use this kind value as array index
in gk20a_kind_is_supported() which is incorrect
Fix this by ensuring in nvgpu_vm_map() that the
kind value is well within range
Bug 200291879
Coverity id : 2567923
Coverity id : 2567924
Change-Id: Ic57395018727cbd2260c929581db256e427316c6
Signed-off-by: Deepak Nibade <dnibade@nvidia.com >
Reviewed-on: http://git-master/r/1496597
GVS: Gerrit_Virtual_Submit
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com >
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com >
2017-06-06 08:13:43 -07:00
..
2017-05-16 02:32:35 -07:00
2017-04-12 07:01:12 -07:00
2017-06-02 06:53:35 -07:00
2017-06-02 06:53:35 -07:00
2017-06-02 06:53:35 -07:00
2017-06-02 06:53:35 -07:00
2017-06-05 13:53:13 -07:00
2017-06-05 13:53:13 -07:00
2017-05-26 14:07:12 -07:00
2017-05-05 07:54:18 -07:00
2017-05-24 04:55:53 -07:00
2017-04-13 08:56:06 -07:00
2017-04-06 18:14:53 -07:00
2017-05-24 04:55:36 -07:00
2017-05-29 02:53:42 -07:00
2017-05-26 03:34:30 -07:00
2017-04-09 23:54:31 -07:00
2017-06-04 20:34:58 -07:00
2017-05-16 02:32:35 -07:00
2017-04-06 18:14:53 -07:00
2017-05-24 04:55:36 -07:00
2016-03-23 07:48:47 -07:00
2017-05-24 12:14:03 -07:00
2017-05-16 10:24:57 -07:00
2017-06-06 08:13:36 -07:00
2017-06-02 06:53:35 -07:00
2017-05-05 09:04:15 -07:00
2017-05-05 09:04:15 -07:00
2017-04-03 14:04:10 -07:00
2015-03-18 12:11:09 -07:00
2017-06-04 23:05:18 -07:00
2016-11-16 21:34:54 -08:00
2017-06-04 23:05:18 -07:00
2017-05-30 13:24:35 -07:00
2017-06-04 23:05:18 -07:00
2017-04-10 19:04:19 -07:00
2017-05-30 13:24:35 -07:00
2017-03-29 11:50:21 -07:00
2017-06-05 13:53:13 -07:00
2017-06-02 06:53:35 -07:00
2017-01-11 12:44:14 -08:00
2017-06-02 06:53:35 -07:00
2017-04-12 07:01:12 -07:00
2017-05-02 03:07:20 -07:00
2017-04-12 07:01:12 -07:00
2017-06-06 08:13:43 -07:00
2017-06-06 08:13:43 -07:00
2017-05-30 13:24:35 -07:00
2017-05-30 13:24:35 -07:00
2015-03-18 12:12:06 -07:00
2017-05-26 03:34:08 -07:00
2017-05-26 03:34:08 -07:00
2017-06-02 06:53:35 -07:00
2017-06-02 06:53:35 -07:00
2016-04-08 09:42:41 -07:00
2017-05-24 04:55:54 -07:00
2017-05-17 10:24:25 -07:00
2017-06-04 23:05:18 -07:00
2017-06-04 23:05:18 -07:00
2017-04-13 08:56:06 -07:00
2017-03-31 17:21:34 -07:00
2017-05-30 13:24:35 -07:00
2017-05-12 10:19:52 -07:00
2017-05-26 03:34:30 -07:00
2015-03-18 12:11:33 -07:00
2017-06-02 06:53:35 -07:00
2017-06-02 06:53:35 -07:00
2017-05-26 03:34:30 -07:00
2017-03-20 21:49:28 -07:00
2017-04-17 17:36:20 -07:00
2017-04-11 09:57:21 -07:00
2017-05-30 13:24:35 -07:00
2016-10-19 20:43:50 -07:00
2017-05-26 03:34:30 -07:00
2017-05-24 04:55:36 -07:00