diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-02 10:48:19 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-02 10:48:19 -0800 |
| commit | 22b63709cf61a3698353adf80f5c4568ebf38dcc (patch) | |
| tree | 2701bf180544e93ab7521d8cbf3cff39ca99156f /k1 | |
| parent | 6bbbee425761adff761d0f1a1d723d8f5eae93b8 (diff) | |
| download | patches-22b63709cf61a3698353adf80f5c4568ebf38dcc.tar.gz | |
kexec stuff
Diffstat (limited to 'k1')
| -rw-r--r-- | k1 | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -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); + |
