On 22.11.22 15:00, Muhammad Usama Anjum wrote:
Hello, I'm getting segmentation fault when mprotect file sub-tests in soft-dirty kselftest are run on top next-20221122 and on v6.0. These sub-tests were added by Peter recently. Has someone noticed this already?
On 6.0.7-200.fc36.x86_64, all tests pass. # ./soft-dirty TAP version 13 1..15 ok 1 Test test_simple ok 2 Test test_vma_reuse dirty bit of allocated page ok 3 Test test_vma_reuse dirty bit of reused address page ok 4 Test test_hugepage huge page allocation ok 5 Test test_hugepage huge page dirty bit ok 6 Test test_mprotect-anon dirty bit of new written page ok 7 Test test_mprotect-anon soft-dirty clear after clear_refs ok 8 Test test_mprotect-anon soft-dirty clear after marking RO ok 9 Test test_mprotect-anon soft-dirty clear after marking RW ok 10 Test test_mprotect-anon soft-dirty after rewritten ok 11 Test test_mprotect-file dirty bit of new written page ok 12 Test test_mprotect-file soft-dirty clear after clear_refs ok 13 Test test_mprotect-file soft-dirty clear after marking RO ok 14 Test test_mprotect-file soft-dirty clear after marking RW ok 15 Test test_mprotect-file soft-dirty after rewritten # Totals: pass:15 fail:0 xfail:0 xpass:0 skip:0 error:0 Same on a kernel close to mm-unstable on top of 6.1.0-rc4: # ./soft-dirty TAP version 13 1..15 ok 1 Test test_simple ok 2 Test test_vma_reuse dirty bit of allocated page ok 3 Test test_vma_reuse dirty bit of reused address page ok 4 Test test_hugepage huge page allocation ok 5 Test test_hugepage huge page dirty bit ok 6 Test test_mprotect-anon dirty bit of new written page ok 7 Test test_mprotect-anon soft-dirty clear after clear_refs ok 8 Test test_mprotect-anon soft-dirty clear after marking RO ok 9 Test test_mprotect-anon soft-dirty clear after marking RW ok 10 Test test_mprotect-anon soft-dirty after rewritten ok 11 Test test_mprotect-file dirty bit of new written page ok 12 Test test_mprotect-file soft-dirty clear after clear_refs ok 13 Test test_mprotect-file soft-dirty clear after marking RO ok 14 Test test_mprotect-file soft-dirty clear after marking RW ok 15 Test test_mprotect-file soft-dirty after rewritten # Totals: pass:15 fail:0 xfail:0 xpass:0 skip:0 error:0 Different architecture? Maybe recompile the tests? -- Thanks, David / dhildenb