mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 18:19:28 +09:00
27f2d59a4a5cf87a06f32f021efe24ceae931fa6
[ Upstream commit1c0ca9cd17] For ib_copy_from_user(), the length of udata may not be the same as that of cmd. For ib_copy_to_user(), the length of udata may not be the same as that of resp. So limit the length to prevent out-of-bounds read and write operations from ib_copy_from_user() and ib_copy_to_user(). Fixes:de77503a59("RDMA/hns: RDMA/hns: Assign rq head pointer when enable rq record db") Fixes:633fb4d9fd("RDMA/hns: Use structs to describe the uABI instead of opencoding") Fixes:ae85bf92ef("RDMA/hns: Optimize qp param setup flow") Fixes:6fd610c573("RDMA/hns: Support 0 hop addressing for SRQ buffer") Fixes:9d9d4ff788("RDMA/hns: Update the kernel header file of hns") Link: https://lore.kernel.org/r/1607650657-35992-2-git-send-email-liweihang@huawei.com Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com> Signed-off-by: Weihang Li <liweihang@huawei.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Linux kernel
============
There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.
In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``. The formatted documentation can also be read online at:
https://www.kernel.org/doc/html/latest/
There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.
Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
Description
Languages
C
97.7%
Assembly
1.6%
Makefile
0.3%
Perl
0.1%