Re: [PATCH v3] ebtables: fix race condition in frame_filter_net_init()

2017-09-29 Thread Pablo Neira Ayuso
On Tue, Sep 26, 2017 at 06:35:45PM +0200, Artem Savkov wrote: > It is possible for ebt_in_hook to be triggered before ebt_table is assigned > resulting in a NULL-pointer dereference. Make sure hooks are > registered as the last step. Applied, thanks.

Re: [PATCH v3] ebtables: fix race condition in frame_filter_net_init()

2017-09-29 Thread Pablo Neira Ayuso
On Tue, Sep 26, 2017 at 06:35:45PM +0200, Artem Savkov wrote: > It is possible for ebt_in_hook to be triggered before ebt_table is assigned > resulting in a NULL-pointer dereference. Make sure hooks are > registered as the last step. Applied, thanks.

[PATCH v3] ebtables: fix race condition in frame_filter_net_init()

2017-09-26 Thread Artem Savkov
It is possible for ebt_in_hook to be triggered before ebt_table is assigned resulting in a NULL-pointer dereference. Make sure hooks are registered as the last step. v3: restore errorneously removed ops == NULL case check Fixes: aee12a0a3727 ebtables: remove nf_hook_register usage Signed-off-by:

[PATCH v3] ebtables: fix race condition in frame_filter_net_init()

2017-09-26 Thread Artem Savkov
It is possible for ebt_in_hook to be triggered before ebt_table is assigned resulting in a NULL-pointer dereference. Make sure hooks are registered as the last step. v3: restore errorneously removed ops == NULL case check Fixes: aee12a0a3727 ebtables: remove nf_hook_register usage Signed-off-by: