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-05-04 14:29:02 -07:00
2008-12-17 15:44:58 -08:00
2008-12-25 13:39:04 +01:00
2009-04-16 18:33:01 +02:00
2009-03-25 21:05:46 +01:00
2009-01-26 21:03:35 -08:00
2009-03-21 13:41:09 -07:00
2008-09-12 16:30:20 -07:00
2008-07-14 22:42:19 -07:00
2009-03-24 19:49:11 -07:00
2008-11-26 15:32:27 -08:00
2009-01-21 14:01:59 -08:00
2009-03-24 23:32:03 -07:00
2009-03-27 20:13:13 -04:00
2008-11-19 15:44:53 -08:00
2009-03-28 15:01:36 +11:00
2008-07-19 22:35:47 -07:00
2008-12-21 20:09:50 -08:00
2008-11-27 00:12:47 -08:00
2008-11-27 23:04:13 -08:00
2009-03-21 19:06:54 -07:00
2008-11-25 17:35:18 -08:00
2009-03-27 00:16:21 -07:00
2008-07-05 19:01:28 -07:00
2008-11-25 17:35:18 -08:00
2008-07-05 21:26:57 -07:00
2008-11-26 15:24:32 -08:00
2008-06-03 16:36:54 -07:00
2008-07-18 04:04:22 -07:00
2009-03-27 20:12:52 -04:00
2009-03-21 13:29:05 -07:00
2008-10-07 12:41:01 -07:00
2008-04-03 14:28:30 -07:00
2008-08-28 02:53:51 -07:00
2009-02-14 22:58:35 -08:00
2009-02-26 23:13:35 -08:00
2009-02-01 12:31:33 -08:00
2009-06-15 15:49:27 +02:00
2009-06-15 15:49:32 +02:00
2008-06-11 21:00:38 -07:00
2008-08-14 15:33:21 -07:00
2008-06-11 21:00:38 -07:00
2009-02-14 22:58:35 -08:00
2009-02-15 22:43:38 -08:00
2008-07-25 02:54:40 -07:00
2008-06-11 21:00:38 -07:00
2008-10-09 12:03:17 -07:00
2009-02-14 22:58:35 -08:00
2009-02-14 22:58:35 -08:00
2008-06-16 18:50:49 -07:00
2008-11-21 11:42:55 -05:00
2008-03-31 21:02:47 -07:00
2008-03-31 21:02:47 -07:00
2008-03-28 16:28:36 -07:00
2009-03-27 20:13:23 -04:00
2008-04-12 13:43:22 +09:00
2009-01-04 16:04:39 -08:00
2008-11-12 00:54:54 -08:00
2009-03-03 01:14:27 -08:00
2009-01-06 11:38:15 -07:00
2009-03-28 15:01:37 +11:00
2009-03-25 18:26:30 +01:00
2009-01-21 14:02:01 -08:00
2008-11-16 23:01:49 -08:00
2009-02-01 01:12:42 -08:00
2009-01-08 10:40:57 -08:00
2009-03-21 19:06:50 -07:00
2008-11-21 16:45:22 -08:00
2008-06-17 17:08:32 -07:00
2008-10-01 07:35:39 -07:00
2008-04-16 00:46:52 -07:00
2009-03-20 01:33:32 -07:00
2008-11-14 11:29:12 +11:00
2008-06-11 21:00:38 -07:00
2009-06-15 15:49:36 +02:00
2008-07-05 21:25:39 -07:00
2009-05-04 11:11:01 -07:00
2008-11-21 16:45:22 -08:00
2009-02-14 22:58:35 -08:00
2009-04-11 01:53:06 -07:00
2008-10-29 01:41:45 -07:00
2008-06-16 18:32:46 -07:00
2009-01-11 00:06:32 -08:00
2009-02-27 14:52:59 -05:00
2008-11-25 18:00:48 -08:00