Re: [PATCH] net: qrtr: Allocate workqueue before kernel_bind

2020-05-30 Thread David Miller
From: Chris Lew Date: Thu, 28 May 2020 16:05:26 -0700 > A null pointer dereference in qrtr_ns_data_ready() is seen if a client > opens a qrtr socket before qrtr_ns_init() can bind to the control port. > When the control port is bound, the ENETRESET error will be broadcasted > and clients will clo

Re: [PATCH] net: qrtr: Allocate workqueue before kernel_bind

2020-05-29 Thread Manivannan Sadhasivam
On Thu, May 28, 2020 at 04:05:26PM -0700, Chris Lew wrote: > A null pointer dereference in qrtr_ns_data_ready() is seen if a client > opens a qrtr socket before qrtr_ns_init() can bind to the control port. > When the control port is bound, the ENETRESET error will be broadcasted > and clients will

Re: [PATCH] net: qrtr: Allocate workqueue before kernel_bind

2020-05-28 Thread Bjorn Andersson
On Thu 28 May 16:05 PDT 2020, Chris Lew wrote: > A null pointer dereference in qrtr_ns_data_ready() is seen if a client > opens a qrtr socket before qrtr_ns_init() can bind to the control port. > When the control port is bound, the ENETRESET error will be broadcasted > and clients will close their

[PATCH] net: qrtr: Allocate workqueue before kernel_bind

2020-05-28 Thread Chris Lew
A null pointer dereference in qrtr_ns_data_ready() is seen if a client opens a qrtr socket before qrtr_ns_init() can bind to the control port. When the control port is bound, the ENETRESET error will be broadcasted and clients will close their sockets. This results in DEL_CLIENT packets being sent