答复: [PATCH] audit: fix a memleak caused by auditing load module

2019-03-05 Thread Li,Rongqing
> -邮件原件- > 发件人: Paul Moore [mailto:p...@paul-moore.com] > 发送时间: 2019年3月5日 22:18 > 收件人: Li,Rongqing > 抄送: Eric Paris ; linux-au...@redhat.com; > linux-kernel@vger.kernel.org > 主题: Re: [PATCH] audit: fix a memleak caused by auditing load module > > On Tue

Re: [PATCH] audit: fix a memleak caused by auditing load module

2019-03-05 Thread Paul Moore
On Tue, Mar 5, 2019 at 6:14 AM Li RongQing wrote: > we should always free context->module.name, since it will be > allocated unconditionally and audit_log_start() can fail with > other reasons, and audit_log_exit maybe not called > > unreferenced object 0x88af90837d20 (size 8): > comm "modpr

[PATCH] audit: fix a memleak caused by auditing load module

2019-03-05 Thread Li RongQing
we should always free context->module.name, since it will be allocated unconditionally and audit_log_start() can fail with other reasons, and audit_log_exit maybe not called unreferenced object 0x88af90837d20 (size 8): comm "modprobe", pid 1036, jiffies 4294704867 (age 3069.138s) hex dump