Re: [PATCH v3] usb: gadget: configfs: Fix KASAN use-after-free

2021-02-22 Thread Thadeu Lima de Souza Cascardo
On Tue, Jan 17, 2017 at 12:29:09PM +0200, Felipe Balbi wrote: > > Hi, > > Jim Lin writes: > > When gadget is disconnected, running sequence is like this. > > . composite_disconnect > > . Call trace: > > usb_string_copy+0xd0/0x128 > > gadget_config_name_configuration_store+0x4 > > gadget_co

Re: [PATCH v3] usb: gadget: configfs: Fix KASAN use-after-free

2017-02-09 Thread Macpaul Lin
Hi Jim, > Jim Lin writes: > > When gadget is disconnected, running sequence is like this. > > . composite_disconnect > > . Call trace: > > usb_string_copy+0xd0/0x128 > > gadget_config_name_configuration_store+0x4 > > gadget_config_name_attr_store+0x40/0x50 > > configfs_write_file+0x198/0x

Re: [PATCH v3] usb: gadget: configfs: Fix KASAN use-after-free

2017-01-17 Thread Felipe Balbi
Hi, Jim Lin writes: > When gadget is disconnected, running sequence is like this. > . composite_disconnect > . Call trace: > usb_string_copy+0xd0/0x128 > gadget_config_name_configuration_store+0x4 > gadget_config_name_attr_store+0x40/0x50 > configfs_write_file+0x198/0x1f4 > vfs_write+0

[PATCH v3] usb: gadget: configfs: Fix KASAN use-after-free

2017-01-17 Thread Jim Lin
When gadget is disconnected, running sequence is like this. . composite_disconnect . Call trace: usb_string_copy+0xd0/0x128 gadget_config_name_configuration_store+0x4 gadget_config_name_attr_store+0x40/0x50 configfs_write_file+0x198/0x1f4 vfs_write+0x100/0x220 SyS_write+0x58/0xa8 . conf