Re: [PATCH] pipe: Fix memory leaks in create_pipe_files()

2020-09-30 Thread Al Viro
On Wed, Sep 30, 2020 at 08:58:04PM -0400, Qian Cai wrote: > Fixes: c73be61cede5 ("pipe: Add general notification queue support") > Signed-off-by: Qian Cai > --- > fs/pipe.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/fs/pipe.c b/fs/pipe.c > index 60dbee457143..5184972cd9c0

[PATCH] pipe: Fix memory leaks in create_pipe_files()

2020-09-30 Thread Qian Cai
Calling pipe2() with O_NOTIFICATION_PIPE could results in memory leaks in an error path or CONFIG_WATCH_QUEUE=n. Plug them. unreferenced object 0xc0141114a0d8 (size 992): comm "trinity-c61", pid 1353192, jiffies 4296255779 (age 25989.560s) hex dump (first 32 bytes): 80 11 00 00 e8 03