[Bug 586643] New: posix_fallocate lets one bypass RLIMIT_FSIZE
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.
http://bugzilla.novell.com/show_bug.cgi?id=586643 http://bugzilla.novell.com/show_bug.cgi?id=586643#c Nikanth K <knikanth@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |knikanth@novell.com AssignedTo|kernel-maintainers@forge.pr |knikanth@novell.com |ovo.novell.com | -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=586643 http://bugzilla.novell.com/show_bug.cgi?id=586643#c1 --- Comment #1 from Nikanth K <knikanth@novell.com> 2010-04-28 13:29:36 UTC --- Created an attachment (id=357402) --> (http://bugzilla.novell.com/attachment.cgi?id=357402) Possible fix I have sent this patch to upstream for comments. http://marc.info/?l=linux-fsdevel&m=127246102907618&w=2 http://marc.info/?l=linux-ext4&m=127246102907615&w=2 -- 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.
http://bugzilla.novell.com/show_bug.cgi?id=586643 http://bugzilla.novell.com/show_bug.cgi?id=586643#c2 Nikanth K <knikanth@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Component|Kernel |Kernel Version|Final |RC 2 Resolution| |FIXED Product|openSUSE 11.2 |openSUSE 11.3 OS/Version|openSUSE 11.2 |openSUSE 11.3 --- Comment #2 from Nikanth K <knikanth@novell.com> 2010-07-10 06:29:17 UTC --- Thanks for reporting. The ext4 patch was accepted upstream http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=... And is committed to openSUSE 11.3 as well. There is no feedback on the btrfs patch from upstream, so far. https://patchwork.kernel.org/patch/106422/ I will try to get this fixed upstream. -- 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.
https://bugzilla.novell.com/show_bug.cgi?id=586643 https://bugzilla.novell.com/show_bug.cgi?id=586643#c3 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:running:35398:moderat | |e --- Comment #3 from Swamp Workflow Management <swamp@suse.com> 2010-08-24 15:22:54 UTC --- The SWAMPID for this issue is 35398. This issue was rated as moderate. Please submit fixed packages until 2010-09-07. When done, please reassign the bug to security-team@suse.de. Patchinfo will be handled by security team. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=586643 https://bugzilla.novell.com/show_bug.cgi?id=586643#c4 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:35398:moderat |maint:running:35398:moderat |e |e maint:released:11.3:35403 --- Comment #4 from Swamp Workflow Management <swamp@suse.com> 2010-09-08 13:08:20 UTC --- Update released for: kernel-debug, kernel-debug-base, kernel-debug-base-debuginfo, kernel-debug-debuginfo, kernel-debug-debugsource, kernel-debug-devel, kernel-debug-devel-debuginfo, kernel-default, kernel-default-base, kernel-default-base-debuginfo, kernel-default-debuginfo, kernel-default-debugsource, kernel-default-devel, kernel-default-devel-debuginfo, kernel-desktop, kernel-desktop-base, kernel-desktop-base-debuginfo, kernel-desktop-debuginfo, kernel-desktop-debugsource, kernel-desktop-devel, kernel-desktop-devel-debuginfo, kernel-devel, kernel-ec2-devel, kernel-pae, kernel-pae-base, kernel-pae-base-debuginfo, kernel-pae-debuginfo, kernel-pae-debugsource, kernel-pae-devel, kernel-pae-devel-debuginfo, kernel-source, kernel-source-vanilla, kernel-syms, kernel-trace, kernel-trace-base, kernel-trace-base-debuginfo, kernel-trace-debuginfo, kernel-trace-debugsource, kernel-trace-devel, kernel-trace-devel-debuginfo, kernel-vanilla, kernel-vanilla-base, kernel-vanilla-base-debuginfo, kernel-vanilla-debuginfo, kernel-vanilla-debugsource, kernel-vanilla-devel, kernel-vanilla-devel-debuginfo, kernel-vmi-devel, kernel-xen, kernel-xen-base, kernel-xen-base-debuginfo, kernel-xen-debuginfo, kernel-xen-debugsource, kernel-xen-devel, kernel-xen-devel-debuginfo, preload-kmp-default, preload-kmp-desktop Products: openSUSE 11.3 (debug, i586, x86_64) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=586643 https://bugzilla.novell.com/show_bug.cgi?id=586643#c Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard|maint:running:35398:moderat |maint:released:11.3:35403 |e maint:released:11.3:35403 | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com