From 8fa5e7c58ac08fdb2432a4791595278d69827fb0 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Tue, 8 Nov 2016 14:29:14 -0800 Subject: gpu: nvgpu: Remove IOCTL FREE_OBJ_CTX We have never used the IOCTL FREE_OBJ_CTX. Using it leads to context being only partially available, and can lead to use-after-free. Bug 1834225 Change-Id: I9d2b632ab79760f8186d02e0f35861b3a6aae649 Signed-off-by: Terje Bergstrom Reviewed-on: http://git-master/r/1250004 Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/uapi/linux/nvgpu.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'include/uapi/linux/nvgpu.h') diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index a8ba2189..e4f94c16 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h @@ -973,10 +973,6 @@ struct nvgpu_alloc_obj_ctx_args { __u64 obj_id; /* output, used to free later */ }; -struct nvgpu_free_obj_ctx_args { - __u64 obj_id; /* obj ctx to free */ -}; - struct nvgpu_alloc_gpfifo_args { __u32 num_entries; #define NVGPU_ALLOC_GPFIFO_FLAGS_VPR_ENABLED (1 << 0) /* set owner channel of this gpfifo as a vpr channel */ @@ -1216,8 +1212,6 @@ struct nvgpu_preemption_mode_args { _IOWR(NVGPU_IOCTL_MAGIC, 107, struct nvgpu_submit_gpfifo_args) #define NVGPU_IOCTL_CHANNEL_ALLOC_OBJ_CTX \ _IOWR(NVGPU_IOCTL_MAGIC, 108, struct nvgpu_alloc_obj_ctx_args) -#define NVGPU_IOCTL_CHANNEL_FREE_OBJ_CTX \ - _IOR(NVGPU_IOCTL_MAGIC, 109, struct nvgpu_free_obj_ctx_args) #define NVGPU_IOCTL_CHANNEL_ZCULL_BIND \ _IOWR(NVGPU_IOCTL_MAGIC, 110, struct nvgpu_zcull_bind_args) #define NVGPU_IOCTL_CHANNEL_SET_ERROR_NOTIFIER \ -- cgit v1.2.2