]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] Kcore elf note namesz field fix
authorVivek Goyal <vgoyal@in.ibm.com>
Fri, 29 Sep 2006 09:01:45 +0000 (02:01 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:25 +0000 (09:18 -0700)
commit22700212db0f7eb9dc0e91e64de81d586f5637eb
tree439c457364f5b58e2de09950e5e0854968e3cde2
parent0d0a4e49003c978cc8f9ea93a164a43d2e75c3fd
[PATCH] Kcore elf note namesz field fix

o As per ELF specifications, it looks like that elf note "namesz" field
  contains the length of "name" including the size of null character.  And
  currently we are filling "namesz" without taking into the consideration
  the null character size.

o Kexec-tools performs this check deligently hence I ran into the issue
  while trying to open /proc/kcore in kexec-tools for some info.

Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/proc/kcore.c