Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempting to access the memory outside file is not raising SIGBUS error #771

Closed
vamsikrishna935 opened this issue Aug 12, 2020 · 3 comments
Labels
needs-triage Bug does not yet have a priority assigned

Comments

@vamsikrishna935
Copy link
Contributor

vamsikrishna935 commented Aug 12, 2020

Testcase mmap13: https://github.com/lsds/ltp/blob/sgx-lkl/testcases/kernel/syscalls/mmap/mmap13.c

mmap13      1  TFAIL  :  mmap13.c:90: Invalid access not rise SIGBUS
92      in mmap13.c
(gdb) bt
#0  main (argc=<optimized out>, argv=<optimized out>) at mmap13.c:92
#1  0x00007fe000532904 in libc_start_main_stage2 (main=0x7fe03da645a0 <main>, argc=1, argv=0x7fe040b03f80)
    at src/env/__libc_start_main.c:168
#2  0x00007fe00053285e in __libc_start_main (main=0x7fe03da645a0 <main>, argc=1, argv=0x7fe040b03f80)
    at src/env/__libc_start_main.c:153
#3  0x00007fe03da6480c in _start_c (p=<optimized out>) at crt/crt1.c:17
#4  0x00007fe03da647e4 in _start ()
#5  0x00007fe040b03fa0 in ?? ()
#6  0x0000000000000001 in ?? ()
#7  0x00007fe000b05790 in ?? ()
#8  0x0000000000000000 in ?? ()

@github-actions github-actions bot added the needs-triage Bug does not yet have a priority assigned label Aug 12, 2020
@davidchisnall
Copy link
Contributor

This looks like expected behaviour for any nommu platform.

@SeanTAllen
Copy link
Contributor

There's some patches for ucLinux to LTP. We could upstream a fix for this eventually and in the meantime, build with ucLinux stuff on.

@davidchisnall
Copy link
Contributor

I've filed #787 to track all of the bugs that have the same root cause. Closing this as a duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage Bug does not yet have a priority assigned
Projects
None yet
Development

No branches or pull requests

3 participants