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-28 02:24:21 -07:00
2008-10-13 19:01:08 -07:00
2009-05-01 09:05:06 -07:00
2009-04-14 22:05:43 -04:00
2008-11-14 00:53:54 -08:00
2009-03-31 15:06:26 -07:00
2009-02-24 23:18:28 -08:00
2008-11-20 00:49:27 -08:00
2008-11-25 17:35:18 -08:00
2009-05-18 19:26:37 -07:00
2008-01-28 15:11:10 -08:00
2008-07-19 22:35:47 -07:00
2006-12-04 02:00:29 -05:00
2009-01-05 16:01:51 -08:00
2009-03-13 12:09:29 -07:00
2009-03-04 00:03:08 -08:00
2009-03-03 01:14:27 -08:00
2009-03-10 05:22:43 -07:00
2008-05-02 17:00:58 -07:00
2009-04-14 22:05:43 -04:00
2007-07-05 17:40:27 -07:00
2009-05-17 20:37:55 -07:00
2009-05-21 15:07:12 -07:00
2008-07-25 21:43:18 -07:00
2009-02-24 23:18:28 -08:00
2008-11-18 18:52:37 +11:00
2008-10-12 21:07:34 -07:00
2009-06-15 15:49:25 +02:00
2009-06-15 15:49:36 +02:00
2008-10-13 19:01:08 -07:00
2009-02-26 23:13:34 -08:00
2008-07-26 20:17:56 -07:00
2009-03-26 01:11:48 -07:00