Re: [PATCH -next, v2] audit: use struct_size() helper in kmalloc()

From: Paul Moore
Date: Thu Dec 16 2021 - 17:45:49 EST


On Wed, Dec 15, 2021 at 9:05 PM xiujianfeng <xiujianfeng@xxxxxxxxxx> wrote:
> 在 2021/12/16 6:00, Gustavo A. R. Silva 写道:
> > On Wed, Dec 15, 2021 at 11:04:20AM +0800, Xiu Jianfeng wrote:
> >> Make use of struct_size() helper instead of an open-coded calculation.
> > I think you should also mention the flexible array transformation in
> > struct audit_rule_data.
>
> thanks, and due to the previous patch has been merged into linux-next,
> a diff patch about struct_size() and
>
> a seperate patch about flexible array will be send.

Please make sure to send it to the audit mailing list as well. I
don't like merging patches that haven't been sent to the mailing list,
it's a bad practice IMO.

--
paul moore
www.paul-moore.com