From: Chao Yu <chao2.yu@samsung.com>
To: 'He YunLei' <heyunlei@huawei.com>, 'Jaegeuk Kim' <jaegeuk@kernel.org>
Cc: hebiao6@huawei.com, stuart.li@huawei.com,
linux-f2fs-devel@lists.sourceforge.net
Subject: Re: [PATCH] back-up raw_super in sbi
Date: Fri, 11 Dec 2015 15:02:13 +0800 [thread overview]
Message-ID: <03b901d133e1$f8f85ee0$eae91ca0$@samsung.com> (raw)
In-Reply-To: <5667D4FD.7060703@huawei.com>
Hi all,
> -----Original Message-----
> From: He YunLei [mailto:heyunlei@huawei.com]
> Sent: Wednesday, December 09, 2015 3:15 PM
> To: Chao Yu
> Cc: 'Jaegeuk Kim'; linux-f2fs-devel@lists.sourceforge.net; hebiao6@huawei.com;
> stuart.li@huawei.com
> Subject: Re: [f2fs-dev] [PATCH] back-up raw_super in sbi
>
> On 2015/12/9 14:11, Chao Yu wrote:
> > Hi,
> >
> >> -----Original Message-----
> >> From: Jaegeuk Kim [mailto:jaegeuk@kernel.org]
> >> Sent: Wednesday, December 09, 2015 2:19 AM
> >> To: Yunlei He
> >> Cc: linux-f2fs-devel@lists.sourceforge.net; chao2.yu@samsung.com; hebiao6@huawei.com;
> >> stuart.li@huawei.com
> >> Subject: Re: [f2fs-dev] [PATCH] back-up raw_super in sbi
> >>
> >> Hi Yunlei,
> >>
> >> On Tue, Dec 08, 2015 at 09:17:13PM +0800, Yunlei He wrote:
> >>> write_checkpoint() tries to get cp_blkaddr from superblock buffer,
> >>> if the buffer happen to be destroied by something else, it may
> >
> > Yunlei,
> >
> > You mean hacking in memory? could you share more about process of destroying?
>
> I do some test on kernel version 3.10 like this:
>
> with mounted f2fs partition, use dd to erase the first sb
>
> dd if=/dev/zero of=/dev/sdx bs=4k count=1
>
> then sync, and the system will panic.
>
> the log added in function do_checkpoint show:
>
> heyunlei:start_blk = 0
>
> So maybe dd dirty the super block buffer stored in sbi.
Ah, I can understand your concerns now, thanks for your explanation! :)
>
> But, in latest dev branch, it has no problem, I don't know why.
I do the test with latest dev branch, it shows warning dmesg info as
F2FS_CHECK_FS is off. I think it has problem actually.
> >> Need to consider f2fs_commit_super and kfree() in put_super.
> >
> > How about releasing grabbed block buffer 'sbi->raw_super_buf' since we
> > already had one copy of it?
Hi Jaegeuk, Yunlei,
Any thoughts?
------------------------------------------------------------------------------
next prev parent reply other threads:[~2015-12-11 7:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-09 6:11 [PATCH] back-up raw_super in sbi Chao Yu
2015-12-09 7:15 ` He YunLei
2015-12-11 7:02 ` Chao Yu [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-12-08 13:17 Yunlei He
2015-12-08 18:19 ` Jaegeuk Kim
2015-12-14 9:56 ` He YunLei
2015-12-14 17:28 ` Jaegeuk Kim
2015-12-15 9:04 ` Chao Yu
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='03b901d133e1$f8f85ee0$eae91ca0$@samsung.com' \
--to=chao2.yu@samsung.com \
--cc=hebiao6@huawei.com \
--cc=heyunlei@huawei.com \
--cc=jaegeuk@kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=stuart.li@huawei.com \
/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).