Re: [PATCH v06 05/36] uapi linux/sysctl.h: use __kernel_size_t instead of size_t

2017-08-09 Thread Mikko Rapeli
Hi Dmitry and thanks for the comments. I have only one question: why haven't your patches been applied yet? -Mikko ___ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec

Re: [PATCH v06 21/36] uapi linux/kexec.h: use __kernel_size_t instead of size_t

2017-08-09 Thread Dmitry V. Levin
On Sun, Aug 06, 2017 at 06:44:12PM +0200, Mikko Rapeli wrote: > Fixes userspace compilation error: > > error: unknown type name ‘size_t’ > size_t bufsz; > > Signed-off-by: Mikko Rapeli > Cc: kexec@lists.infradead.org > Cc: Eric Biederman > --- > include/uapi/linux/kexec.h | 4 ++-- > 1 file

[V2] kexec_file: use crypto_free_shash to free memory

2017-08-09 Thread Pan Bian
In function kexec_calculate_store_digests(), kfree() is used to free memory allocated by crypto_alloc_shash(). It is better to use function crypto_free_shash(), which frees up tfm and any resources associated with it. And then, the refcount of the algorithm used in crypto_alloc_shash() is also drop

[PATCH] kexec-tools: powerpc: fix command line overflow error

2017-08-09 Thread Hari Bathini
Since kernel commit a5980d064fe2 ("powerpc: Bump COMMAND_LINE_SIZE to 2048"), powerpc bumped command line size to 2048 but the size used here is still the default value of 512. Bump it to 2048 to fix command line overflow errors observed when command line length is above 512 bytes. Also, get rid of

Re: [V2] kexec_file: use crypto_free_shash to free memory

2017-08-09 Thread Baoquan He
On 08/09/17 at 07:30pm, Pan Bian wrote: > In function kexec_calculate_store_digests(), kfree() is used to free > memory allocated by crypto_alloc_shash(). It is better to use function > crypto_free_shash(), which frees up tfm and any resources associated with > it. And then, the refcount of the alg

Re: [Makedumpfile PATCH v2] x86_64: Take care of init_level4_pgt rename in kernel

2017-08-09 Thread Dave Young
Ccing Dave, not sure if crash utility also need update about this issue.. On 08/02/17 at 02:13pm, Pratyush Anand wrote: > Following commit renamed init_level4_pgt to init_top_pgt in kernel. > > commit 65ade2f872b474fa8a04c2d397783350326634e6 > Author: Kirill A. Shutemov > Date: Tue Jun 6 14:31