Vegard Nossum
a98b65a3ad
net: annotate struct sock bitfield
...
2009/2/24 Ingo Molnar <mingo@elte.hu>:
> ok, this is the last warning i have from today's overnight -tip
> testruns - a 32-bit system warning in sock_init_data():
>
> [ 2.610389] NET: Registered protocol family 16
> [ 2.616138] initcall netlink_proto_init+0x0/0x170 returned 0 after 7812 usecs
> [ 2.620010] WARNING: kmemcheck: Caught 32-bit read from uninitialized memory (f642c184)
> [ 2.624002] 010000000200000000000000604990c000000000000000000000000000000000
> [ 2.634076] i i i i i i u u i i i i i i i i i i i i i i i i i i i i i i i i
> [ 2.641038] ^
> [ 2.643376]
> [ 2.644004] Pid: 1, comm: swapper Not tainted (2.6.29-rc6-tip-01751-g4d1c22c-dirty #885 )
> [ 2.648003] EIP: 0060:[<c07141a1>] EFLAGS: 00010282 CPU: 0
> [ 2.652008] EIP is at sock_init_data+0xa1/0x190
> [ 2.656003] EAX: 0001a800 EBX: f6836c00 ECX: 00463000 EDX: c0e46fe0
> [ 2.660003] ESI: f642c180 EDI: c0b83088 EBP: f6863ed8 ESP: c0c412ec
> [ 2.664003] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
> [ 2.668003] CR0: 8005003b CR2: f682c400 CR3: 00b91000 CR4: 000006f0
> [ 2.672003] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
> [ 2.676003] DR6: ffff4ff0 DR7: 00000400
> [ 2.680002] [<c07423e5>] __netlink_create+0x35/0xa0
> [ 2.684002] [<c07443cc>] netlink_kernel_create+0x4c/0x140
> [ 2.688002] [<c072755e>] rtnetlink_net_init+0x1e/0x40
> [ 2.696002] [<c071b601>] register_pernet_operations+0x11/0x30
> [ 2.700002] [<c071b72c>] register_pernet_subsys+0x1c/0x30
> [ 2.704002] [<c0bf3c8c>] rtnetlink_init+0x4c/0x100
> [ 2.708002] [<c0bf4669>] netlink_proto_init+0x159/0x170
> [ 2.712002] [<c0101124>] do_one_initcall+0x24/0x150
> [ 2.716002] [<c0bbf3c7>] do_initcalls+0x27/0x40
> [ 2.723201] [<c0bbf3fc>] do_basic_setup+0x1c/0x20
> [ 2.728002] [<c0bbfb8a>] kernel_init+0x5a/0xa0
> [ 2.732002] [<c0103e47>] kernel_thread_helper+0x7/0x10
> [ 2.736002] [<ffffffff>] 0xffffffff
We fix this false positive by annotating the bitfield in struct
sock.
Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
2009-06-15 15:49:36 +02:00
..
2009-04-05 16:54:53 -05:00
2009-04-11 01:43:17 -07:00
2009-04-25 18:03:35 -07:00
2009-03-31 01:14:44 +04:00
2009-05-02 13:49:36 -07:00
2009-04-20 02:14:59 -07:00
2009-05-27 09:15:57 +02:00
2009-05-17 21:12:55 -07:00
2009-04-17 01:38:46 -07:00
2009-06-15 15:49:36 +02:00
2009-01-04 17:29:21 -08:00
2009-03-02 03:07:23 -08:00
2009-03-21 13:36:17 -07:00
2009-03-21 19:06:54 -07:00
2009-03-10 05:22:43 -07:00
2008-11-23 23:24:32 -08:00
2009-06-15 15:49:32 +02:00
2009-05-20 17:38:59 -07:00
2009-03-21 19:06:51 -07:00
2009-04-01 08:59:10 -07:00
2009-04-21 23:43:15 -07:00
2009-02-26 23:07:32 -08:00
2009-03-31 01:14:44 +04:00
2009-05-11 15:07:01 -04:00
2009-05-27 15:51:25 -07:00
2009-04-22 00:46:09 -07:00
2009-03-26 15:23:24 -07:00
2009-04-22 00:49:51 -07:00
2009-04-15 03:39:52 -07:00
2009-03-30 15:22:01 +02:00
2009-04-21 19:39:59 -07:00
2009-01-04 17:11:24 -08:00
2009-04-14 20:28:00 -07:00
2009-05-21 15:22:02 -07:00
2009-06-09 04:03:09 -07:00
2009-03-31 01:14:44 +04:00
2009-05-29 08:49:09 -07:00
2009-03-18 19:11:29 -07:00
2009-03-31 23:00:26 -04:00
2009-02-26 23:13:36 -08:00
2009-05-06 13:48:37 -07:00
2009-05-20 14:29:54 -04:00
2009-03-27 00:28:21 -07:00
2009-04-27 02:58:59 -07:00
2009-02-15 22:43:35 -08:00
2009-05-07 16:31:01 -07:00
2009-02-26 23:43:35 -08:00
2009-04-06 18:05:43 -07:00
2009-03-16 16:23:30 +01:00