[Bug 213982] New: LSB: msync() does not detect a hole in mapped range
https://bugzilla.novell.com/show_bug.cgi?id=213982 Summary: LSB: msync() does not detect a hole in mapped range Product: openSUSE 10.2 Version: Alpha 5 plus Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jdluhos@novell.com QAContact: qa@suse.de Found by the LSB runtime test: When msync() is called on a file-backed mapped page range of 3 pages with the middle page missing, it succeeds although it should fail. Please find the attached test program. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213982 ------- Comment #1 from jdluhos@novell.com 2006-10-20 10:02 MST ------- Created an attachment (id=102149) --> (https://bugzilla.novell.com/attachment.cgi?id=102149&action=view) A small test case. A data file named 'test_data' is needed for exercising the mapping. It can be produced for example by: dd if=/dev/urandom of=./test_data bs=4096 count=4 -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213982 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |pbaudis@novell.com |screening@forge.provo.novell| |.com | -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213982 pbaudis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pbaudis@novell.com AssignedTo|pbaudis@novell.com |kernel-maintainers@forge.provo.novell.com ------- Comment #2 from pbaudis@novell.com 2006-10-20 16:10 MST ------- Funnily enough, this topic was mentioned today on #lsb (Jiri, if you're using IRC, it might be interesting for you to hang there BTW, since you're doing the conformance testing): [23:50] < licquia> basically, the lsb tests mmap() three consecutive pages from a large file, and then munmap() the middle page [23:51] < licquia> then they try to msync() the first two pages [23:51] < licquia> that should fail, but on kernels 2.6.17 and higher, it succeeds [23:52] < pasky> I see. How grave is it a problem for LSB certification? Do the distributions need to fix that? Or will LSB be "fixed" not to mandate that? [23:52] < licquia> that's what i'm trying to figure out [23:52] < licquia> right now, it's looking like a kernel problem [23:52] < licquia> after some investigation, i've found evidence that it's fixed in 2.6.19rc1 [23:52] < licquia> which i'm testing right now [23:53] < licquia> (if i can get a kernel built that supports sata :-) ) [23:53] < licquia> what clued us in is that red hat backported the patch to their 2.6.18 kernel [23:54] < licquia> and fedora core w/ that kernel passes the test http://kernel.org/git/?p=linux/kernel/git/stable/linux-2.6.17.y.git;a=commit... broke it. http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=... fixed it. -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213982 gregkh@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |jdluhos@novell.com ------- Comment #3 from gregkh@novell.com 2006-10-25 23:34 MST ------- If you use our kernel release with that patch, is this problem fixed? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213982 ------- Comment #4 from jdluhos@novell.com 2006-11-06 02:54 MST ------- Please stay tuned, still remembering it :-) -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213982 jdluhos@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|jdluhos@novell.com | ------- Comment #5 from jdluhos@novell.com 2006-11-09 08:30 MST ------- Yes, with the patch, the test passes (both the LSB test and my test program). -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213982 gregkh@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|kernel- |npiggin@novell.com |maintainers@forge.provo.nove| |ll.com | Status|ASSIGNED |NEW ------- Comment #6 from gregkh@novell.com 2006-11-15 17:40 MST ------- Nick, can you add this to our tree, if you think it is acceptable? -- 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, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=213982 npiggin@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED ------- Comment #10 from npiggin@novell.com 2007-01-24 01:16 MST ------- Applied a simplified version to SL102, which enables it to pass the testcase. The main problem was that in the final iteration of the msync loop, the error variable was being overwritten when it should have contained the -ENOMEM from unmapped_error. -- 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, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com