[Bug 1162394] New: SIGBUS when application writes to a DAX mapping
http://bugzilla.opensuse.org/show_bug.cgi?id=1162394 Bug ID: 1162394 Summary: SIGBUS when application writes to a DAX mapping Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.1 Hardware: x86-64 OS: Linux Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: kernel-maintainers@forge.provo.novell.com Reporter: marcin.slusarz@intel.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 828844 --> http://bugzilla.opensuse.org/attachment.cgi?id=828844&action=edit Minimal reproducer When application maps a file without MAP_SYNC, modifies it, unmaps it, maps it again with MAP_SYNC, reads something from the mapping, then the next write generates SIGBUS. Minimal reproducer attached. $ ./sigbus_repro /mnt/pmem/file 4096 truncating /mnt/pmem/file to 4096 opening /mnt/pmem/file Bus error (core dumped) This bug was discovered by PMDK test and reported here: https://github.com/pmem/pmdk/issues/4527 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1162394 http://bugzilla.opensuse.org/show_bug.cgi?id=1162394#c1 Michal Suchanek <msuchanek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jack@suse.com, | |marcin.slusarz@intel.com, | |msuchanek@suse.com Flags| |needinfo?(marcin.slusarz@in | |tel.com) --- Comment #1 from Michal Suchanek <msuchanek@suse.com> --- Didn't we just fix something with MAP_SYNC? Can you please test with KOTD kernel? https://build.opensuse.org/project/show/Kernel:openSUSE-15.1 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1162394 http://bugzilla.opensuse.org/show_bug.cgi?id=1162394#c4 Marcin Ślusarz <marcin.slusarz@intel.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(marcin.slusarz@in | |tel.com) | --- Comment #4 from Marcin Ślusarz <marcin.slusarz@intel.com> --- The current kernel we get from updates is 4.12.14-lp151.28.36-default and it's still possible to reproduce this bug on this kernel. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1162394 http://bugzilla.opensuse.org/show_bug.cgi?id=1162394#c6 Marcin Ślusarz <marcin.slusarz@intel.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED --- Comment #6 from Marcin Ślusarz <marcin.slusarz@intel.com> --- Actually the bug is fixed in 36. I'm sorry for wasting your time. (I'm out of office and asked someone else to reproduce the bug on 36, but I wasn't clear about which bug to reproduce (there's another one, for glibc)). -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com