lkml.org 
[lkml]   [2023]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] IB/rdmavt: Fix target union member for rvt_post_one_wr()
Date

On Sat, 18 Feb 2023 10:57:05 -0800, Kees Cook wrote:
> The "cplen" result used by the memcpy() into struct rvt_swqe "wqe" may
> be sized to 80 for struct rvt_ud_wr (which is member "ud_wr", not "wr"
> which is only 40 bytes in size). Change the destination union member so
> the compiler can use the correct bounds check.
>
> struct rvt_swqe {
> union {
> struct ib_send_wr wr; /* don't use wr.sg_list */
> struct rvt_ud_wr ud_wr;
> ...
> };
> ...
> };
>
> [...]

Applied, thanks!

[1/1] IB/rdmavt: Fix target union member for rvt_post_one_wr()
https://git.kernel.org/rdma/rdma/c/f2f6e1661d38fb

Best regards,
--
Leon Romanovsky <leon@kernel.org>

\
 
 \ /
  Last update: 2023-03-27 00:56    [W:0.061 / U:2.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site