Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
initramfs: finish fput() before accessing any binary from initramfs
Commit 4a9d4b0 ("switch fput to task_work_add") implements a schedule_work() for completing fput(), but did not guarantee calling __fput() after unpacking initramfs. Because of this, there is a possibility that during boot a driver can see ETXTBSY when it tries to load a binary from initramfs as fput() is still pending on that binary. This patch makes sure that fput() is completed after unpacking initramfs and removes the call to flush_delayed_fput() in kernel_init() which happens very late after unpacking initramfs. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Lokesh Vutla <[email protected]> Reported-by: Murali Karicheri <[email protected]> Cc: Al Viro <[email protected]> Cc: Tero Kristo <[email protected]> Cc: Sekhar Nori <[email protected]> Cc: Nishanth Menon <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information