From 338bf9afda91ec005a1e9a0de4af0271cc167d56 Mon Sep 17 00:00:00 2001 From: Andrew Perepechko Date: Mon, 28 Apr 2008 02:14:31 -0700 Subject: quota: do not allow setting of quota limits to too high values We should check whether quota limits set via Q_SETQUOTA are not exceeding limits which quota format is able to handle. Signed-off-by: Andrew Perepechko Signed-off-by: Jan Kara Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/linux/quota.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/linux/quota.h') diff --git a/include/linux/quota.h b/include/linux/quota.h index eb560d031acd..326cb80e3867 100644 --- a/include/linux/quota.h +++ b/include/linux/quota.h @@ -206,6 +206,8 @@ struct mem_dqinfo { unsigned long dqi_flags; unsigned int dqi_bgrace; unsigned int dqi_igrace; + qsize_t dqi_maxblimit; + qsize_t dqi_maxilimit; union { struct v1_mem_dqinfo v1_i; struct v2_mem_dqinfo v2_i; -- cgit v1.2.3