Re: [PATCH v3] initramfs: finish fput() before accessing any binary from initramfs

2017-02-03 Thread Tero Kristo
On 02/02/17 00:12, Andrew Morton wrote: On Wed, 1 Feb 2017 19:35:40 +0530 Lokesh Vutla wrote: commit 4a9d4b024a31 ("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 p

Re: [PATCH v3] initramfs: finish fput() before accessing any binary from initramfs

2017-02-01 Thread Andrew Morton
On Wed, 1 Feb 2017 19:35:40 +0530 Lokesh Vutla wrote: > commit 4a9d4b024a31 ("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 drive

[PATCH v3] initramfs: finish fput() before accessing any binary from initramfs

2017-02-01 Thread Lokesh Vutla
commit 4a9d4b024a31 ("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