mbox series

[v2,0/3] Check content after reading from quota file

Message ID 20220922130401.1792256-1-chengzhihao1@huawei.com (mailing list archive)
Headers show
Series Check content after reading from quota file | expand

Message

Zhihao Cheng Sept. 22, 2022, 1:03 p.m. UTC
1. Fix invalid memory access of dquot.
2. Cleanup, replace places of block number checking with helper
   function.
3. Add more sanity checking for the content read from quota file.

v1->v2:
  Add CC-stable tag in first patch.
  Rename check_free_block() -> check_dquot_block_header().

Zhihao Cheng (3):
  quota: Check next/prev free block number after reading from quota file
  quota: Replace all block number checking with helper function
  quota: Add more checking after reading from quota file

 fs/quota/quota_tree.c | 81 ++++++++++++++++++++++++++++++++++++-------
 1 file changed, 69 insertions(+), 12 deletions(-)