* Re: [PATCH RESEND] mfd: wm831x-auxadc: Prevent use after free in wm831x_auxadc_read_irq() [not found] <20210129143724.GX20820@kadam> @ 2021-02-04 10:37 ` Lee Jones 2021-02-04 10:58 ` Dan Carpenter 0 siblings, 1 reply; 2+ messages in thread From: Lee Jones @ 2021-02-04 10:37 UTC (permalink / raw) To: Dan Carpenter Cc: Mark Brown, Samuel Ortiz, patches, linux-kernel, kernel-janitors On Fri, 29 Jan 2021, Dan Carpenter wrote: > The "req" struct is always added to the "wm831x->auxadc_pending" list, > but it's only removed from the list on the success path. If a failure > occurs then the "req" struct is freed but it's still on the list, > leading to a use after free. > > Fixes: 78bb3688ea18 ("mfd: Support multiple active WM831x AUXADC conversions") > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> > Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> > --- > drivers/mfd/wm831x-auxadc.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Patchwork still can't find this. I've applied it manually, thanks. -- Lee Jones [李琼斯] Senior Technical Lead - Developer Services Linaro.org │ Open source software for Arm SoCs Follow Linaro: Facebook | Twitter | Blog ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH RESEND] mfd: wm831x-auxadc: Prevent use after free in wm831x_auxadc_read_irq() 2021-02-04 10:37 ` [PATCH RESEND] mfd: wm831x-auxadc: Prevent use after free in wm831x_auxadc_read_irq() Lee Jones @ 2021-02-04 10:58 ` Dan Carpenter 0 siblings, 0 replies; 2+ messages in thread From: Dan Carpenter @ 2021-02-04 10:58 UTC (permalink / raw) To: Lee Jones Cc: Mark Brown, Samuel Ortiz, patches, linux-kernel, kernel-janitors On Thu, Feb 04, 2021 at 10:37:24AM +0000, Lee Jones wrote: > On Fri, 29 Jan 2021, Dan Carpenter wrote: > > > The "req" struct is always added to the "wm831x->auxadc_pending" list, > > but it's only removed from the list on the success path. If a failure > > occurs then the "req" struct is freed but it's still on the list, > > leading to a use after free. > > > > Fixes: 78bb3688ea18 ("mfd: Support multiple active WM831x AUXADC conversions") > > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> > > Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com> > > --- > > drivers/mfd/wm831x-auxadc.c | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > Patchwork still can't find this. > > I've applied it manually, thanks. Ah... You know what it is? I normally use Mutt instead of git-send-email. Some of the patchworks have been hacked a bit to only accept patches from git-send-email as a spam filtering method. What I do is my patch scripts add a header: X-Mailer: git-send-email haha only kidding But because this was a resend, I didn't use my normal patch scripts and just resent it from Mutt so it didn't have the header. Something for me to remember for next time I guess. regards, dan carpenter ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-04 11:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20210129143724.GX20820@kadam>
2021-02-04 10:37 ` [PATCH RESEND] mfd: wm831x-auxadc: Prevent use after free in wm831x_auxadc_read_irq() Lee Jones
2021-02-04 10:58 ` Dan Carpenter
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox