Skip to content

Commit

Permalink
x86: Include all of .data.* sections in _edata on 64-bit
Browse files Browse the repository at this point in the history
The .data.read_mostly and .data.cacheline_aligned sections
aren't covered by the _sdata .. _edata range on x86-64. This
affects kmemleak reporting leading to possible false
positives by not scanning the whole data section.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Tested-by: Alexey Fisher <bug-track@fisher-privat.net>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
LKML-Reference: <1247565175.28240.37.camel@pc1117.cambridge.arm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: Sam Ravnborg <sam@ravnborg.org>
  • Loading branch information
Catalin Marinas authored and Ingo Molnar committed Jul 18, 2009
1 parent 6aa542a commit 8bcdbe4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions arch/x86/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,6 @@ SECTIONS
_sdata = .;
DATA_DATA
CONSTRUCTORS

#ifdef CONFIG_X86_64
/* End of data section */
_edata = .;
#endif
} :data

#ifdef CONFIG_X86_32
Expand Down Expand Up @@ -156,10 +151,8 @@ SECTIONS
.data.read_mostly : AT(ADDR(.data.read_mostly) - LOAD_OFFSET) {
*(.data.read_mostly)

#ifdef CONFIG_X86_32
/* End of data section */
_edata = .;
#endif
}

#ifdef CONFIG_X86_64
Expand Down

0 comments on commit 8bcdbe4

Please sign in to comment.