linux_dsm_epyc7002/drivers/infiniband
Jason Gunthorpe da0f60df7b RDMA/uverbs: Prohibit write() calls with too small buffers
The size meta-data in the prior patch describes the smallest acceptable
buffer for the write() interface. Globally check this in the core code.

This is necessary in the case of write() methods that have a driver udata
to prevent computing a negative udata buffer length.

The return code of -ENOSPC is chosen here as some of the handlers already
use this code, however many other handler use EINVAL.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
2018-11-26 16:48:07 -07:00
..
core RDMA/uverbs: Prohibit write() calls with too small buffers 2018-11-26 16:48:07 -07:00
hw RDMA/uverbs: Do not pass ib_uverbs_file to ioctl methods 2018-11-26 16:48:07 -07:00
sw IB/rxe: make rxe_unregister_device void 2018-11-08 14:22:54 -07:00
ulp IB/core: Make function ib_fmr_pool_unmap return void 2018-11-21 16:13:02 -07:00
Kconfig RDMA: Fix building with CONFIG_MMU=n 2018-10-03 16:01:03 -06:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00