Messages in this thread | | | Date | Fri, 19 Feb 2021 19:35:37 +0800 | From | Gao Xiang <> | Subject | [GIT PULL] erofs update for 5.12-rc1 |
| |
Hi Linus,
Could you consider this pull request for 5.12-rc1?
This contains a somewhat important but rarely reproduced fix reported month ago for platforms which have weak memory model (e.g. arm64). The root cause is that test_bit/set_bit atomic operations are actually implemented in relaxed forms, and uninitialized fields governed by an atomic bit could be observed in advance due to memory reordering thus memory barrier pairs should be used. There is also a trivial fix of crafted blkszbits generated by syzkaller.
All commits have been tested and have been in linux-next for more than a week. This merges cleanly with master.
Thanks, Gao Xiang
The following changes since commit 19c329f6808995b142b3966301f217c831e7cf31:
Linux 5.11-rc4 (2021-01-17 16:37:05 -0800)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git tags/erofs-for-5.12-rc1
for you to fetch changes up to ce063129181312f8781a047a50be439c5859747b:
erofs: initialized fields can only be observed after bit is set (2021-02-11 11:55:28 +0800)
---------------------------------------------------------------- Changes since last update:
- fix shift-out-of-bounds of crafted blkszbits generated by syzkaller;
- ensure initialized fields can only be observed after bit is set.
---------------------------------------------------------------- Gao Xiang (2): erofs: fix shift-out-of-bounds of blkszbits erofs: initialized fields can only be observed after bit is set
fs/erofs/super.c | 4 ++-- fs/erofs/xattr.c | 10 +++++++++- fs/erofs/zmap.c | 10 +++++++++- 3 files changed, 20 insertions(+), 4 deletions(-)
| |