lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAADnVQJo-P7FTXUNXN58Dt0LK12pLjK04O7aq7LB1c-WPPdh_w@mail.gmail.com>
Date:	Sat, 10 May 2014 15:22:38 -0700
From:	Alexei Starovoitov <alexei.starovoitov@...il.com>
To:	Mathias Krause <minipli@...glemail.com>
Cc:	"David S. Miller" <davem@...emloft.net>,
	"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCH net-next] net: ptp: mark filter as __initdata

On Sat, May 10, 2014 at 1:23 PM, Mathias Krause <minipli@...glemail.com> wrote:
> sk_unattached_filter_create() will copy the filter's instructions so we
> don't need to have the master copy hanging around after initialization.
>
> Signed-off-by: Mathias Krause <minipli@...glemail.com>

Nice! Every bit counts.

Acked-by: Alexei Starovoitov <ast@...mgrid.com>

> ---
>  net/core/ptp_classifier.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/core/ptp_classifier.c b/net/core/ptp_classifier.c
> index eaba0f68f8..37d86157b7 100644
> --- a/net/core/ptp_classifier.c
> +++ b/net/core/ptp_classifier.c
> @@ -88,7 +88,7 @@ EXPORT_SYMBOL_GPL(ptp_classify_raw);
>
>  void __init ptp_classifier_init(void)
>  {
> -       static struct sock_filter ptp_filter[] = {
> +       static struct sock_filter ptp_filter[] __initdata = {
>                 { 0x28,  0,  0, 0x0000000c },
>                 { 0x15,  0, 12, 0x00000800 },
>                 { 0x30,  0,  0, 0x00000017 },
> --
> 1.7.10.4
>
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ