aboutsummaryrefslogtreecommitdiffstats
path: root/k1
diff options
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-02 10:48:19 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-02 10:48:19 -0800
commit22b63709cf61a3698353adf80f5c4568ebf38dcc (patch)
tree2701bf180544e93ab7521d8cbf3cff39ca99156f /k1
parent6bbbee425761adff761d0f1a1d723d8f5eae93b8 (diff)
downloadpatches-22b63709cf61a3698353adf80f5c4568ebf38dcc.tar.gz
kexec stuff
Diffstat (limited to 'k1')
-rw-r--r--k132
1 files changed, 32 insertions, 0 deletions
diff --git a/k1 b/k1
new file mode 100644
index 00000000000000..7bc70d357c1e22
--- /dev/null
+++ b/k1
@@ -0,0 +1,32 @@
+From vgoyal@redhat.com Wed Nov 20 09:51:42 2013
+From: Vivek Goyal <vgoyal@redhat.com>
+Date: Wed, 20 Nov 2013 12:50:46 -0500
+Subject: [PATCH 1/6] kexec: Export vmcoreinfo note size properly
+To: linux-kernel@vger.kernel.org, kexec@lists.infradead.org
+Cc: ebiederm@xmission.com, hpa@zytor.com, mjg59@srcf.ucam.org, greg@kroah.com, Vivek Goyal <vgoyal@redhat.com>
+Message-ID: <1384969851-7251-2-git-send-email-vgoyal@redhat.com>
+
+
+Right now we seem to be exporting the max data size contained inside
+vmcoreinfo note. But this does not include the size of meta data around
+vmcore info data. Like name of the note and starting and ending elf_note.
+
+I think user space expects total size and that size is put in PT_NOTE
+elf header.
+
+Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
+---
+ kernel/ksysfs.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/kernel/ksysfs.c
++++ b/kernel/ksysfs.c
+@@ -126,7 +126,7 @@ static ssize_t vmcoreinfo_show(struct ko
+ {
+ return sprintf(buf, "%lx %x\n",
+ paddr_vmcoreinfo_note(),
+- (unsigned int)vmcoreinfo_max_size);
++ (unsigned int)sizeof(vmcoreinfo_note));
+ }
+ KERNEL_ATTR_RO(vmcoreinfo);
+