[<prev] [next>] [day] [month] [year] [list]
Message-ID: <53C8E1D6.8020906@sysgo.com>
Date: Fri, 18 Jul 2014 10:59:02 +0200
From: David Engraf <david.engraf@...go.com>
To: Andrew Morton <akpm@...ux-foundation.org>,
"Daniel M. Weeks" <dan@...weeks.net>,
Tetsuo Handa <penguin-kernel@...ove.sakura.ne.jp>,
linux-kernel@...r.kernel.org
Subject: [PATCH] add error checks to initramfs
On a system with low memory extracting the initramfs may fail. If this
happens the user gets "Failed to execute /init" instead of an initramfs
error.
Check return value of sys_write and call error() when the write was
incomplete or failed.
Signed-off-by: David Engraf <david.engraf@...go.com>
View attachment "initramfs_error_check.patch" of type "text/x-diff" (682 bytes)
Powered by blists - more mailing lists