http://bugzilla.novell.com/show_bug.cgi?id=586643 http://bugzilla.novell.com/show_bug.cgi?id=586643#c0 Summary: posix_fallocate lets one bypass RLIMIT_FSIZE Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: x86-64 OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: opensuse.org@contacts.eelis.net QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=347364) --> (http://bugzilla.novell.com/attachment.cgi?id=347364) Testcase program showing the problem User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4) Gecko/20091016 SUSE/3.5.4-1.1.2 Firefox/3.5.4 The attached testcase shows that by calling posix_fallocate one can bypass an RLIMIT_FSIZE limit and create a file larger than the limit. The problem appears to be ext4 specific. Reproducible: Always Steps to Reproduce: 1. compile attached testcase, note the 1000 byte file size limit; 2. run testcase; 3. observe that a 1000000 byte file "tmp" has been created. Actual Results: The actual result is that the program creates a 1000000 byte file. Expected Results: The expected result is that the program fails to create a 1000000 byte file, in accordance with the RLIMIT_FSIZE limit. Only seems to happen with ext4. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.