[Bug 1799237] Re: mprotect fails on ext4 with dax

2019-01-21 Thread Igor Chorazewicz
The problem is still present on kernel 4.15.0-43. Do you have any plans to fix that? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1799237 Title: mprotect fails on ext4 with dax To manage

[Bug 1799237] Re: mprotect fails on ext4 with dax

2018-12-12 Thread Igor Chorazewicz
I performed bisect on my own and it seems that following commit causes the problem: 1920d4a1d4ff27ebfd34a99eca67c3c470c8c524 (x86/speculation/l1tf: Invert all not present mappings). In upstream kernel there is a commit fixing this: f19f5c49bbc3ffcc9126cc245fc1b24cc29f4a37 The mprotect issue is

[Bug 1799237] Re: mprotect fails on ext4 with dax

2018-11-19 Thread Igor Chorazewicz
When I install kernel from package I have some problems with pmem emulation and I can't really test this. Here is a simple script which can be used to reproduce the problem (assuming you have pmem emulation, e.g. using memmap and ndctl installed): sudo umount /dev/pmem0 sudo ndctl

[Bug 1799237] Re: mprotect fails on ext4 with dax

2018-11-02 Thread Igor Chorazewicz
Eerything I described in previous comment was observed on Ubuntu kernel (4.15.0-34). It worked fine on upstream and on ubuntu 4.15.0-20 so we can still consider this a regression. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1799237] Re: mprotect fails on ext4 with dax

2018-10-30 Thread Igor Chorazewicz
It turns out that this issue is only present for certain mapping lengths. If I run the program, which I attached to the bug report, with size>=2M, mprotect succeeds. I have also tested this on device dax, and the results depend on alignment. For 2M alignment, everything works fine, for 4k

[Bug 1799237] Re: mprotect fails on ext4 with dax

2018-10-30 Thread Igor Chorazewicz
I have tested the following upstream kernels and mprotect works fine on all of them: 4.15.17-041517-generic 4.15.18-041518-generic 4.19.0-041900-generic -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1799237] Re: mprotect fails on ext4 with dax

2018-10-25 Thread Igor Chorazewicz
This bug was not present in the following kernel: 4.15.0-20-generic -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1799237 Title: mprotect fails on ext4 with dax To manage notifications about this

[Bug 1799237] ProcEnviron.txt

2018-10-23 Thread Igor Chorazewicz
apport information ** Attachment added: "ProcEnviron.txt" https://bugs.launchpad.net/bugs/1799237/+attachment/5204645/+files/ProcEnviron.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1799237

[Bug 1799237] Re: mprotect fails on ext4 with dax

2018-10-23 Thread Igor Chorazewicz
apport information ** Tags added: apport-collected ** Description changed: I have a file located on ext4 mounted with "dax". When I call mmap on that file with protection flag different than PROT_NONE and pass the returned address to mprotect(..., PROT_NONE) it fails with: mprotect:

[Bug 1799237] ProcModules.txt

2018-10-23 Thread Igor Chorazewicz
apport information ** Attachment added: "ProcModules.txt" https://bugs.launchpad.net/bugs/1799237/+attachment/5204647/+files/ProcModules.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1799237

[Bug 1799237] PulseList.txt

2018-10-23 Thread Igor Chorazewicz
apport information ** Attachment added: "PulseList.txt" https://bugs.launchpad.net/bugs/1799237/+attachment/5204648/+files/PulseList.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1799237

[Bug 1799237] ProcCpuinfoMinimal.txt

2018-10-23 Thread Igor Chorazewicz
apport information ** Attachment added: "ProcCpuinfoMinimal.txt" https://bugs.launchpad.net/bugs/1799237/+attachment/5204644/+files/ProcCpuinfoMinimal.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1799237] WifiSyslog.txt

2018-10-23 Thread Igor Chorazewicz
apport information ** Attachment added: "WifiSyslog.txt" https://bugs.launchpad.net/bugs/1799237/+attachment/5204650/+files/WifiSyslog.txt ** Changed in: linux (Ubuntu) Status: Incomplete => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs,

[Bug 1799237] UdevDb.txt

2018-10-23 Thread Igor Chorazewicz
apport information ** Attachment added: "UdevDb.txt" https://bugs.launchpad.net/bugs/1799237/+attachment/5204649/+files/UdevDb.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1799237 Title:

[Bug 1799237] ProcCpuinfo.txt

2018-10-23 Thread Igor Chorazewicz
apport information ** Attachment added: "ProcCpuinfo.txt" https://bugs.launchpad.net/bugs/1799237/+attachment/5204643/+files/ProcCpuinfo.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1799237

[Bug 1799237] CurrentDmesg.txt

2018-10-23 Thread Igor Chorazewicz
apport information ** Attachment added: "CurrentDmesg.txt" https://bugs.launchpad.net/bugs/1799237/+attachment/5204641/+files/CurrentDmesg.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1799237] ProcInterrupts.txt

2018-10-23 Thread Igor Chorazewicz
apport information ** Attachment added: "ProcInterrupts.txt" https://bugs.launchpad.net/bugs/1799237/+attachment/5204646/+files/ProcInterrupts.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1799237] Lspci.txt

2018-10-23 Thread Igor Chorazewicz
apport information ** Attachment added: "Lspci.txt" https://bugs.launchpad.net/bugs/1799237/+attachment/5204642/+files/Lspci.txt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1799237 Title: