From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jacek Konieczny Date: Tue, 19 Feb 2013 12:40:50 +0100 Subject: [Cluster-devel] [PATCH] dlm: Allow 64-bit request when CONFIG_COMPAT is on In-Reply-To: <20130219115514.6111ba2b@jajo.eggsoft> References: <20130219115514.6111ba2b@jajo.eggsoft> Message-ID: <1361274050-27658-1-git-send-email-jajcus@jajcus.net> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Even if kernel is compiled for 32-bit ABI compatibility it still should able to process 64-bit dlm_write_request struct. The regression was introduced by: b75bc91 dlm: check the maximum size of a request from user Signed-off-by: Jacek Konieczny --- fs/dlm/user.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/fs/dlm/user.c b/fs/dlm/user.c index 7ff4985..d08a156 100644 --- a/fs/dlm/user.c +++ b/fs/dlm/user.c @@ -503,11 +503,7 @@ static ssize_t device_write(struct file *file, const char __user *buf, #endif return -EINVAL; -#ifdef CONFIG_COMPAT - if (count > sizeof(struct dlm_write_request32) + DLM_RESNAME_MAXLEN) -#else if (count > sizeof(struct dlm_write_request) + DLM_RESNAME_MAXLEN) -#endif return -EINVAL; kbuf = kzalloc(count + 1, GFP_NOFS); -- 1.8.0.1