Jaegeuk Kim 2ed2d5b33c f2fs: fix a deadlock during init_acl procedure
The deadlock is found through the following scenario.

sys_mkdir()
 -> f2fs_add_link()
  -> __f2fs_add_link()
   -> init_inode_metadata()
     : lock_page(inode);
    -> f2fs_init_acl()
     -> f2fs_set_acl()
      -> f2fs_setxattr(..., NULL)
       : This NULL page incurs a deadlock at update_inode_page().

So, likewise f2fs_init_security(), this patch adds a parameter to transfer the
locked inode page to f2fs_setxattr().

Found by Linux File System Verification project (linuxtesting.org).

Reported-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
2013-10-28 13:39:09 +09:00
..
2013-10-25 16:54:40 +09:00
2013-09-05 13:50:32 +09:00
2013-06-11 16:01:03 +09:00
2012-12-11 13:43:42 +09:00
2013-10-25 16:54:40 +09:00
2013-08-09 14:57:56 +09:00
2013-10-25 16:54:37 +09:00
2013-10-25 16:54:39 +09:00
2013-08-26 20:15:23 +09:00