From mboxrd@z Thu Jan 1 00:00:00 1970 From: Edward Shishkin Subject: [patch 0/2][RFC] vfs: artefact(?) in rw_verify_area Date: Wed, 13 Oct 2010 22:45:51 +0200 Message-ID: <4CB61A7F.9070603@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Eric Sandeen , lmcilroy@redhat.com, LKML To: Andrew Morton , linux-fsdevel@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:47147 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752683Ab0JMUq0 (ORCPT ); Wed, 13 Oct 2010 16:46:26 -0400 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Hello everyone. rw_verify_area() contains a limitation, which means inability to write more then INT_MAX bytes atomically. This tends to be a disadvantage since INT_MAX doesn't look like a huge value nowadays. Moreover, this restriction looks too artificial. I have increased the limit up to rounded down SSIZE_MAX (patch 2) and got an overflow in the direct-io subsystem. However, after fixing the overflow (patch 1), ext3,4 work fine for me so far. Any ideas, if there are other subsystems that expose the INT_MAX limitation? Thanks in advance, -- Edward O. Shishkin Principal Software Engineer Red Hat Czech