Re: [PATCH v2 56/63] RDMA/mlx5: Use struct_group() to zero struct mlx5_ib_mr

From
Jason Gunthorpe <jgg@ziepe.ca>
Date
2021-08-20 12:34:09
Also in
dri-devel, linux-hardening, linux-kbuild, linux-rdma, linux-staging, linux-wireless, lkml, netdev
Reply to
Kees Cook, 2021-08-19
On Thu, Aug 19, 2021 at 11:14:37AM -0700, Kees Cook wrote:
Which do you mean? When doing the conversions I tended to opt for
struct_group() since it provides more robust "intentionality". Strictly
speaking, the new memset helpers are doing field-spanning writes, but the
"clear to the end" pattern was so common it made sense to add the helpers,
as they're a bit less disruptive. It's totally up to you! :)
Well, of the patches you cc'd to me only this one used the struct
group..

Jason 
Thread (108 messages) 108 messages, 22 authors, last reply 2021-11-24
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help