Linux XFS filesystem development
 help / color / mirror / Atom feed
* [PATCH 0/2] xfs: always init fdblocks in mount and avoid f_bfree overflow
@ 2020-03-16 13:07 Zheng Bin
  2020-03-16 13:07 ` [PATCH 1/2] xfs: always init fdblocks in mount Zheng Bin
  2020-03-16 13:07 ` [PATCH 2/2] xfs: avoid f_bfree overflow Zheng Bin
  0 siblings, 2 replies; 10+ messages in thread
From: Zheng Bin @ 2020-03-16 13:07 UTC (permalink / raw)
  To: bfoster, dchinner, sandeen, darrick.wong, linux-xfs; +Cc: yi.zhang, houtao1

Use buffer io to test xfs mount point:
cp file1M /mnt  -->just check fdblocks
sync            -->find suiteable AG, agf->agf_freeblks & agf->agf_longest

fdblocks may not be correct, if hackers use xfs_db to modify it, always
init fdblocks in mount, also avoid f_bfree overflow.

Zheng Bin (2):
  xfs: always init fdblocks in mount
  xfs: avoid f_bfree overflow

 fs/xfs/xfs_mount.c | 39 ++++++---------------------------------
 fs/xfs/xfs_super.c |  3 ++-
 2 files changed, 8 insertions(+), 34 deletions(-)

--
2.7.4


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-03-17 18:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-16 13:07 [PATCH 0/2] xfs: always init fdblocks in mount and avoid f_bfree overflow Zheng Bin
2020-03-16 13:07 ` [PATCH 1/2] xfs: always init fdblocks in mount Zheng Bin
2020-03-16 15:13   ` Darrick J. Wong
2020-03-17  1:39     ` zhengbin (A)
2020-03-17  2:22     ` zhengbin (A)
2020-03-17  3:55       ` Darrick J. Wong
2020-03-17  4:18         ` zhengbin (A)
2020-03-16 18:10   ` Eric Sandeen
2020-03-16 13:07 ` [PATCH 2/2] xfs: avoid f_bfree overflow Zheng Bin
2020-03-17 18:32   ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox