All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chunfeng Yun <chunfeng.yun@mediatek.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Matthias Brugger <matthias.bgg@gmail.com>,
	<linux-usb@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-mediatek@lists.infradead.org>,
	<linux-kernel@vger.kernel.org>,
	Eddie Hung <eddie.hung@mediatek.com>,
	"Yuwen Ng" <yuwen.ng@mediatek.com>
Subject: Re: [PATCH 3/3] usb: mtu3: fix list_head check warning
Date: Thu, 16 Dec 2021 16:43:19 +0800	[thread overview]
Message-ID: <09a2c51d7d71d0b6419b470224466efac4ab6afa.camel@mediatek.com> (raw)
In-Reply-To: <YbdWiYU+LJHWd4wQ@kroah.com>

On Mon, 2021-12-13 at 15:19 +0100, Greg Kroah-Hartman wrote:
> On Thu, Dec 09, 2021 at 11:14:24AM +0800, Chunfeng Yun wrote:
> > This is caused by uninitialization of list_head.
> > 
> > BUG: KASAN: use-after-free in __list_del_entry_valid+0x34/0xe4
> > 
> > Call trace:
> > dump_backtrace+0x0/0x298
> > show_stack+0x24/0x34
> > dump_stack+0x130/0x1a8
> > print_address_description+0x88/0x56c
> > __kasan_report+0x1b8/0x2a0
> > kasan_report+0x14/0x20
> > __asan_load8+0x9c/0xa0
> > __list_del_entry_valid+0x34/0xe4
> > mtu3_req_complete+0x4c/0x300 [mtu3]
> > mtu3_gadget_stop+0x168/0x448 [mtu3]
> > usb_gadget_unregister_driver+0x204/0x3a0
> > unregister_gadget_item+0x44/0xa4
> > 
> > Reported-by: Yuwen Ng <yuwen.ng@mediatek.com>
> > Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
> > ---
> >  drivers/usb/mtu3/mtu3_gadget.c | 1 +
> >  1 file changed, 1 insertion(+)
> 
> What commit does this fix?  Should it go to stable kernels?
I add it in next version, thanks
> 
> thanks,
> 
> greg k-h

WARNING: multiple messages have this Message-ID (diff)
From: Chunfeng Yun <chunfeng.yun@mediatek.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Matthias Brugger <matthias.bgg@gmail.com>,
	<linux-usb@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-mediatek@lists.infradead.org>,
	 <linux-kernel@vger.kernel.org>,
	Eddie Hung <eddie.hung@mediatek.com>,
	"Yuwen Ng" <yuwen.ng@mediatek.com>
Subject: Re: [PATCH 3/3] usb: mtu3: fix list_head check warning
Date: Thu, 16 Dec 2021 16:43:19 +0800	[thread overview]
Message-ID: <09a2c51d7d71d0b6419b470224466efac4ab6afa.camel@mediatek.com> (raw)
In-Reply-To: <YbdWiYU+LJHWd4wQ@kroah.com>

On Mon, 2021-12-13 at 15:19 +0100, Greg Kroah-Hartman wrote:
> On Thu, Dec 09, 2021 at 11:14:24AM +0800, Chunfeng Yun wrote:
> > This is caused by uninitialization of list_head.
> > 
> > BUG: KASAN: use-after-free in __list_del_entry_valid+0x34/0xe4
> > 
> > Call trace:
> > dump_backtrace+0x0/0x298
> > show_stack+0x24/0x34
> > dump_stack+0x130/0x1a8
> > print_address_description+0x88/0x56c
> > __kasan_report+0x1b8/0x2a0
> > kasan_report+0x14/0x20
> > __asan_load8+0x9c/0xa0
> > __list_del_entry_valid+0x34/0xe4
> > mtu3_req_complete+0x4c/0x300 [mtu3]
> > mtu3_gadget_stop+0x168/0x448 [mtu3]
> > usb_gadget_unregister_driver+0x204/0x3a0
> > unregister_gadget_item+0x44/0xa4
> > 
> > Reported-by: Yuwen Ng <yuwen.ng@mediatek.com>
> > Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
> > ---
> >  drivers/usb/mtu3/mtu3_gadget.c | 1 +
> >  1 file changed, 1 insertion(+)
> 
> What commit does this fix?  Should it go to stable kernels?
I add it in next version, thanks
> 
> thanks,
> 
> greg k-h
_______________________________________________
Linux-mediatek mailing list
Linux-mediatek@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-mediatek

WARNING: multiple messages have this Message-ID (diff)
From: Chunfeng Yun <chunfeng.yun@mediatek.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Matthias Brugger <matthias.bgg@gmail.com>,
	<linux-usb@vger.kernel.org>,
	<linux-arm-kernel@lists.infradead.org>,
	<linux-mediatek@lists.infradead.org>,
	 <linux-kernel@vger.kernel.org>,
	Eddie Hung <eddie.hung@mediatek.com>,
	"Yuwen Ng" <yuwen.ng@mediatek.com>
Subject: Re: [PATCH 3/3] usb: mtu3: fix list_head check warning
Date: Thu, 16 Dec 2021 16:43:19 +0800	[thread overview]
Message-ID: <09a2c51d7d71d0b6419b470224466efac4ab6afa.camel@mediatek.com> (raw)
In-Reply-To: <YbdWiYU+LJHWd4wQ@kroah.com>

On Mon, 2021-12-13 at 15:19 +0100, Greg Kroah-Hartman wrote:
> On Thu, Dec 09, 2021 at 11:14:24AM +0800, Chunfeng Yun wrote:
> > This is caused by uninitialization of list_head.
> > 
> > BUG: KASAN: use-after-free in __list_del_entry_valid+0x34/0xe4
> > 
> > Call trace:
> > dump_backtrace+0x0/0x298
> > show_stack+0x24/0x34
> > dump_stack+0x130/0x1a8
> > print_address_description+0x88/0x56c
> > __kasan_report+0x1b8/0x2a0
> > kasan_report+0x14/0x20
> > __asan_load8+0x9c/0xa0
> > __list_del_entry_valid+0x34/0xe4
> > mtu3_req_complete+0x4c/0x300 [mtu3]
> > mtu3_gadget_stop+0x168/0x448 [mtu3]
> > usb_gadget_unregister_driver+0x204/0x3a0
> > unregister_gadget_item+0x44/0xa4
> > 
> > Reported-by: Yuwen Ng <yuwen.ng@mediatek.com>
> > Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
> > ---
> >  drivers/usb/mtu3/mtu3_gadget.c | 1 +
> >  1 file changed, 1 insertion(+)
> 
> What commit does this fix?  Should it go to stable kernels?
I add it in next version, thanks
> 
> thanks,
> 
> greg k-h
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

  reply	other threads:[~2021-12-16  8:43 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-09  3:14 [PATCH 1/3] usb: mtu3: fix interval value for intr and isoc Chunfeng Yun
2021-12-09  3:14 ` Chunfeng Yun
2021-12-09  3:14 ` Chunfeng Yun
2021-12-09  3:14 ` [PATCH 2/3] usb: mtu3: add memory barrier before set GPD's HWO Chunfeng Yun
2021-12-09  3:14   ` Chunfeng Yun
2021-12-09  3:14   ` Chunfeng Yun
2021-12-13 14:18   ` Greg Kroah-Hartman
2021-12-13 14:18     ` Greg Kroah-Hartman
2021-12-13 14:18     ` Greg Kroah-Hartman
2021-12-16  8:32     ` Chunfeng Yun
2021-12-16  8:32       ` Chunfeng Yun
2021-12-16  8:32       ` Chunfeng Yun
2021-12-09  3:14 ` [PATCH 3/3] usb: mtu3: fix list_head check warning Chunfeng Yun
2021-12-09  3:14   ` Chunfeng Yun
2021-12-09  3:14   ` Chunfeng Yun
2021-12-09  9:10   ` Sergey Shtylyov
2021-12-09  9:10     ` Sergey Shtylyov
2021-12-09  9:10     ` Sergey Shtylyov
2021-12-10  1:19     ` Chunfeng Yun
2021-12-10  1:19       ` Chunfeng Yun
2021-12-10  1:19       ` Chunfeng Yun
2021-12-13 14:19   ` Greg Kroah-Hartman
2021-12-13 14:19     ` Greg Kroah-Hartman
2021-12-13 14:19     ` Greg Kroah-Hartman
2021-12-16  8:43     ` Chunfeng Yun [this message]
2021-12-16  8:43       ` Chunfeng Yun
2021-12-16  8:43       ` Chunfeng Yun
2021-12-13 14:20 ` [PATCH 1/3] usb: mtu3: fix interval value for intr and isoc Greg Kroah-Hartman
2021-12-13 14:20   ` Greg Kroah-Hartman
2021-12-13 14:20   ` Greg Kroah-Hartman
2021-12-16  8:45   ` Chunfeng Yun
2021-12-16  8:45     ` Chunfeng Yun
2021-12-16  8:45     ` Chunfeng Yun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=09a2c51d7d71d0b6419b470224466efac4ab6afa.camel@mediatek.com \
    --to=chunfeng.yun@mediatek.com \
    --cc=eddie.hung@mediatek.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mediatek@lists.infradead.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=matthias.bgg@gmail.com \
    --cc=yuwen.ng@mediatek.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.