Subject: [ipv6_vti.c] INFO: trying to register non-static key.

From: Fengguang Wu <[email-masked]>
Date: Sun, 12 Jan 2014 07:10:23 +0800

Greetings,

Here is a warning introduced by commit 469bdcefd ("ipv6: fix the use
of pcpu_tstats in ip6_vti.c"):
    
[    5.138330] NET: Registered protocol family 10
[    5.142996] mip6: Mobile IPv6
[    5.143479] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    5.146779] INFO: trying to register non-static key.
[    5.147439] the code is fine but needs lockdep annotation.
[    5.147711] turning off the locking correctness validator.
[    5.147711] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 3.13.0-rc7-00264-gc11a763 #1
[    5.147711] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[    5.147711]  be55ec1c b001fc34 b12f4e53 00000000 b001fc78 b02b9604 b175fb0c 00000000
[    5.147711]  b0010838 b0010440 00000001 b001fc94 b1d96828 00000000 00000003 00000000
[    5.147711]  be55ec1c b0010440 be55ebf8 00000046 00000000 b001fcac b02badaf 00000002
[    5.147711] Call Trace:
[    5.147711]  [<b12f4e53>] dump_stack+0xb8/0x108
[    5.147711]  [<b02b9604>] __lock_acquire.isra.19+0x3a4/0x1a00
[    5.147711]  [<b02badaf>] lock_acquire+0x14f/0x1d0
[    5.147711]  [<b0e758f1>] ? dev_get_stats+0x81/0x150
[    5.147711]  [<b1017d62>] ip_tunnel_get_stats64+0xc2/0x350
[    5.147711]  [<b0e758f1>] ? dev_get_stats+0x81/0x150
[    5.147711]  [<b08b9966>] ? __nla_reserve+0x56/0x60
[    5.147711]  [<b0e758f1>] dev_get_stats+0x81/0x150
[    5.147711]  [<b0e89539>] rtnl_fill_ifinfo+0x819/0x1130
[    5.147711]  [<b0e8e27f>] rtmsg_ifinfo+0x9f/0x190
[    5.147711]  [<b0e77d27>] register_netdevice+0x927/0xa80
[    5.147711]  [<b10dd6cd>] ? ip6_tnl_get_cap+0x3d/0x140
[    5.147711]  [<b0e77eae>] register_netdev+0x2e/0x60
[    5.147711]  [<b1ba3fe5>] vti6_init_net+0x32d/0x3a8
[    5.147711]  [<b1ba3e15>] ? vti6_init_net+0x15d/0x3a8
[    5.147711]  [<b0e65402>] ops_init+0x1d2/0x250
[    5.147711]  [<b0e65540>] register_pernet_operations.isra.5+0xc0/0x130
[    5.147711]  [<b0e657d6>] register_pernet_device+0x36/0xa0
[    5.147711]  [<b1ba4060>] ? vti6_init_net+0x3a8/0x3a8
[    5.147711]  [<b1ba407f>] vti6_tunnel_init+0x1f/0xfa
[    5.147711]  [<b1ba3c72>] ? synproxy_tg6_init+0x4d/0x93
[    5.147711]  [<b1afb634>] do_one_initcall+0xf6/0x222
[    5.147711]  [<b0284cf1>] ? parameq+0x21/0xf0
[    5.147711]  [<b1afa738>] ? repair_env_string+0x32/0xd3
[    5.147711]  [<b02851b2>] ? parse_args+0x3f2/0x5d0
[    5.147711]  [<b1afbb64>] kernel_init_freeable+0x404/0x59a
[    5.147711]  [<b1afa706>] ? do_early_param+0x12b/0x12b
[    5.147711]  [<b12e4cf9>] kernel_init+0x19/0x230
[    5.147711]  [<b13078bb>] ret_from_kernel_thread+0x1b/0x30
[    5.147711]  [<b12e4ce0>] ? rest_init+0x170/0x170
[    5.174185] sit: IPv6 over IPv4 tunneling driver
[    5.178596] ip6_gre: GRE over IPv6 tunneling driver
[    5.181035] NET: Registered protocol family 17

It's fairly reproducible and the warning disappears when reverting the
commit.

Thanks,
Fengguang