https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253335

--- Comment #9 from Mark Johnston <ma...@freebsd.org> ---
qemu is doing the mprotect here:

Thread 1 hit Catchpoint 1 (call to syscall mprotect), 0x000000006049f48a in ??
()                                                                              
(gdb) bt                                                                        
#0  0x000000006049f48a in ?? ()                                                 
#1  0x00000000602b413a in page_find_alloc (index=5, alloc=1)                    
    at
/usr/home/markj/src/freebsd-ports/emulators/qemu-user-static/work/qemu-bsd-user-39244526c0af/accel/tcg/translate-all.c:497
 
#2  page_lock_pair (ret_p1=<optimized out>, phys1=4095827272, ret_p2=<optimized
out>, phys2=4294967295, alloc=1)                                                
    at
/usr/home/markj/src/freebsd-ports/emulators/qemu-user-static/work/qemu-bsd-user-39244526c0af/accel/tcg/translate-all.c:882
 
#3  tb_link_page (tb=0x60598280 <static_code_gen_buffer+166752>,
phys_pc=4095827272, phys_page2=4294967295)                                      
    at
/usr/home/markj/src/freebsd-ports/emulators/qemu-user-static/work/qemu-bsd-user-39244526c0af/accel/tcg/translate-all.c:1628
 
#4  tb_gen_code (cpu=<optimized out>, pc=<optimized out>, cs_base=0,
flags=1626480128, cflags=<optimized out>)                                       
    at
/usr/home/markj/src/freebsd-ports/emulators/qemu-user-static/work/qemu-bsd-user-39244526c0af/accel/tcg/translate-all.c:1831
 
#5  0x00000000602b2a95 in cpu_loop_exit_restore (cpu=0xf4215000, pc=4096)       
    at
/usr/home/markj/src/freebsd-ports/emulators/qemu-user-static/work/qemu-bsd-user-39244526c0af/accel/tcg/cpu-exec-common.c:72
 
#6  0x00000000602c2ff1 in target_cpu_loop (env=0x0)                             
    at
/usr/home/markj/src/freebsd-ports/emulators/qemu-user-static/work/qemu-bsd-user-39244526c0af/bsd-user/arm/target_arch_cpu.h:259
 
#7  0x00000000602c2f89 in target_cpu_loop (env=0x860933c00)

In tb_page_add() I see:

1560         /* force the host page as non writable (writes will have a         
1561            page fault + mprotect overhead) */

but it looks like something's not implementing that...?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
freebsd-emulation@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "freebsd-emulation-unsubscr...@freebsd.org"

Reply via email to