jffs2: make the overwritten xattr invisible after remount
euler inclusion category: bugfix bugzilla: 47447 CVE: NA ------------------------------------------------- For xattr modification, we do not write a new jffs2_raw_xref with delete marker into flash, so if a xattr is modified then removed, and the old xref & xdatum are not erased by GC, after reboot or remount, the new xattr xref will be dead but the old xattr xref will be alive, and we will get the overwritten xattr instead of non-existent error when reading the removed xattr. Fix it by writing the deletion mark for xattr overwrite. Fixes: 8a13695c ("[JFFS2][XATTR] rid unnecessary writing of delete marker.") Signed-off-by: NHou Tao <houtao1@huawei.com> Acked-by: NMiao Xie <miaoxie@huawei.com> Signed-off-by: Nzhangyi (F) <yi.zhang@huawei.com> [cherry-pick from hulk-4.4] Signed-off-by: Nyangerkun <yangerkun@huawei.com> Reviewed-by: NHou Tao <houtao1@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录