Re: [PATCH] Drivers: hv: vmbus: Use after free in __vmbus_open()

2021-04-16 Thread Wei Liu
On Tue, Apr 13, 2021 at 05:42:21PM +0200, Andrea Parri wrote: > On Tue, Apr 13, 2021 at 01:50:04PM +0300, Dan Carpenter wrote: > > The "open_info" variable is added to the &vmbus_connection.chn_msg_list, > > but the error handling frees "open_info" without removing it from the > > list. This will

Re: [PATCH] Drivers: hv: vmbus: Use after free in __vmbus_open()

2021-04-13 Thread Andrea Parri
On Tue, Apr 13, 2021 at 01:50:04PM +0300, Dan Carpenter wrote: > The "open_info" variable is added to the &vmbus_connection.chn_msg_list, > but the error handling frees "open_info" without removing it from the > list. This will result in a use after free. First remove it from the > list, and then

Re: [PATCH] Drivers: hv: vmbus: Use after free in __vmbus_open()

2021-04-13 Thread Wei Liu
On Tue, Apr 13, 2021 at 01:50:04PM +0300, Dan Carpenter wrote: > The "open_info" variable is added to the &vmbus_connection.chn_msg_list, > but the error handling frees "open_info" without removing it from the > list. This will result in a use after free. First remove it from the > list, and then