Re: [apache/incubator-teaclave-sgx-sdk] Fix panic with misaligned pointer dereference in `u_sgxfs_open_ocall` (PR #463)

2025-05-10 Thread private-yusuke
private-yusuke left a comment (apache/incubator-teaclave-sgx-sdk#463) @volcano0dr I confirmed that the unaligned pointer was generated when an invocation of OCALL is about to happen in an enclave, and checked that part was generated by edger8r that is located at `target/debug/build/app

[apache/incubator-teaclave-sgx-sdk] Fix panic with misaligned pointer dereference in `u_sgxfs_open_ocall` (PR #463)

2025-04-16 Thread private-yusuke
When a program calls `sgx_tprotected_fs::write`, the following error occurs during the execution: ``` thread 'main' panicked at rust-sgx-sdk/sgx_urts/src/ocall/sgxfile.rs:56:5: misaligned pointer dereference: address must be a multiple of 0x8 but is 0x7ffeb7fdbd25 ``` To avoid this panic happe