Re: [ovs-dev] [PATCH] netdev-linux: Fix a null pointer dereference in netdev_linux_notify_sock()

2021-09-09 Thread Flavio Leitner
On Thu, Sep 09, 2021 at 02:08:50PM +0200, David Marchand wrote: > On Wed, Sep 8, 2021 at 1:53 PM Yunjian Wang wrote: > > > > If nl_sock_join_mcgroup() returns an error, the 'sock' is freed > > and set to NULL. So we should add NULL check of 'sock' before calling > > nl_sock_listen_all_nsid(). > >

Re: [ovs-dev] [PATCH] netdev-linux: Fix a null pointer dereference in netdev_linux_notify_sock()

2021-09-09 Thread David Marchand
On Wed, Sep 8, 2021 at 1:53 PM Yunjian Wang wrote: > > If nl_sock_join_mcgroup() returns an error, the 'sock' is freed > and set to NULL. So we should add NULL check of 'sock' before calling > nl_sock_listen_all_nsid(). > > Fixes: cf114a7fce80 ("netlink linux: enable listening to all nsids") > Cc:

[ovs-dev] [PATCH] netdev-linux: Fix a null pointer dereference in netdev_linux_notify_sock()

2021-09-08 Thread Yunjian Wang
If nl_sock_join_mcgroup() returns an error, the 'sock' is freed and set to NULL. So we should add NULL check of 'sock' before calling nl_sock_listen_all_nsid(). Fixes: cf114a7fce80 ("netlink linux: enable listening to all nsids") Cc: Flavio Leitner Signed-off-by: Yunjian Wang --- lib/netdev-lin