• Artem Bityutskiy's avatar
    UBIFS: xattr bugfixes · c78c7e35
    Artem Bityutskiy authored
    Xattr code has not been tested for a while and there were
    serveral bugs. One of them is using wrong inode in
    'ubifs_jnl_change_xattr()'. The other is a deadlock in
    'ubifs_setxattr()': the i_mutex is locked in
    'cap_inode_need_killpriv()' path, so deadlock happens when
    'ubifs_setxattr()' tries to lock it again.
    
    Thanks to Zoltan Sogor for finding these bugs.
    Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
    c78c7e35
journal.c 41.7 KB