Re: [patch] nf_log: avoid oops in (un)bind with invalid nfproto values

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am 28.02.2011 21:06, schrieb Jan Engelhardt:
> 
> The following changes since commit 41ac51eeda58a85b8a06d748cce7035cc77deebd
> (kaber/nf-next-2.6 @ 2.6.38-rc1+):
> 
>   ipvs: make "no destination available" message more informative (2011-02-16 14:53:33 +0900)
> 
> are available in the git repository at:
>   git://dev.medozas.de/linux master
> 
> Jan Engelhardt (1):
>       netfilter: nf_log: avoid oops in (un)bind with invalid nfproto values
> 

Since this fixes an oops, I've applied it to nf-2.6.git instead
of nf-next-2.6.git.

>  void nf_log_unbind_pf(u_int8_t pf)
>  {
> +	if (pf >= ARRAY_SIZE(nf_loggers))
> +		return -EINVAL;

I also fixed a warning, nf_log_unbind_pf is void.

>  	mutex_lock(&nf_log_mutex);
>  	rcu_assign_pointer(nf_loggers[pf], NULL);
>  	mutex_unlock(&nf_log_mutex);

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux