Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1551927
| From | Hanjun Guo <guohanjun@huawei.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] Drop reference added by grab_header |
| Date | 2017-01-05 13:00 +0100 |
| Message-ID | <sWeS6-2ug-31@gated-at.bofh.it> (permalink) |
| References | <sWeyK-2mW-41@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 2017/1/5 19:33, Zhou Chengming wrote: > Fixes CVE-2016-9191. CVE-2016-9191 says that it's cgroup bug but turns out it's not, I think you need to add more commit message to explain it? For example, we got different calltrace stack but all of them point to drop_sysctl_table() and it turns out a reference count bug. Thanks Hanjun > > Reported-by: CAI Qian <caiqian@redhat.com> > Tested-by: Yang Shukui <yangshukui@huawei.com> > Signed-off-by: Zhou Chengming <zhouchengming1@huawei.com> > --- > fs/proc/proc_sysctl.c | 3 ++- > 1 files changed, 2 insertions(+), 1 deletions(-) > > diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c > index 5d931bf..c4c90bd 100644 > --- a/fs/proc/proc_sysctl.c > +++ b/fs/proc/proc_sysctl.c > @@ -718,7 +718,7 @@ static int proc_sys_readdir(struct file *file, struct dir_context *ctx) > ctl_dir = container_of(head, struct ctl_dir, header); > > if (!dir_emit_dots(file, ctx)) > - return 0; > + goto out; > > pos = 2; > > @@ -728,6 +728,7 @@ static int proc_sys_readdir(struct file *file, struct dir_context *ctx) > break; > } > } > +out: > sysctl_head_finish(head); > return 0; > }
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] Drop reference added by grab_header Zhou Chengming <zhouchengming1@huawei.com> - 2017-01-05 12:40 +0100
Re: [PATCH] Drop reference added by grab_header Hanjun Guo <guohanjun@huawei.com> - 2017-01-05 13:00 +0100
Re: [PATCH] Drop reference added by grab_header zhouchengming <zhouchengming1@huawei.com> - 2017-01-05 13:20 +0100
csiph-web