linux-erofs.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Gao Xiang <hsiangkao@redhat.com>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Miao Xie <miaoxie@huawei.com>,
	LKML <linux-kernel@vger.kernel.org>,
	Al Viro <viro@zeniv.linux.org.uk>,
	Andrew Morton <akpm@linux-foundation.org>,
	Guo Weichao <guoweichao@oppo.com>,
	linux-erofs@lists.ozlabs.org
Subject: [GIT PULL] erofs update for 5.12-rc1
Date: Fri, 19 Feb 2021 19:35:37 +0800	[thread overview]
Message-ID: <20210219113537.GA492321@xiangao.remote.csb> (raw)

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(-)


             reply	other threads:[~2021-02-19 11:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-19 11:35 Gao Xiang [this message]
2021-02-21 18:39 ` [GIT PULL] erofs update for 5.12-rc1 pr-tracker-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210219113537.GA492321@xiangao.remote.csb \
    --to=hsiangkao@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=guoweichao@oppo.com \
    --cc=linux-erofs@lists.ozlabs.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=miaoxie@huawei.com \
    --cc=sfr@canb.auug.org.au \
    --cc=torvalds@linux-foundation.org \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).