Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
8b1f85c
Windows: Iterative `remove_dir_all`
ChrisDenton Apr 25, 2022
8dc4696
Retry deleting a directory
ChrisDenton Apr 26, 2022
d579665
Yield the thread when waiting to delete a file
ChrisDenton Apr 28, 2022
ab3a2a0
Unify copying data from enclave to userspace
raoulstrackx Mar 29, 2022
531752f
Mitigate MMIO stale data vulnerabilities
raoulstrackx Mar 28, 2022
6f7d193
Ensure userspace allocation is 8-byte aligned
raoulstrackx Mar 23, 2022
a27aace
Test `copy_to_userspace` function
raoulstrackx Mar 22, 2022
d722944
Leak pthreax_mutex_t when it's dropped while locked.
m-ou-se Jun 16, 2022
e642c59
Leak pthreax_rwlock_t when it's dropped while locked.
m-ou-se Jun 19, 2022
6ac6866
Reverse folder hierarchy
eggyal Jun 20, 2022
75203ee
Remove unecessary references to TypeFolder::Error
eggyal Jun 21, 2022
402dceb
point to type param definition when not finding variant, method and a…
TaKO8Ki Jun 20, 2022
6a6910e
Address reviewer comments
raoulstrackx Jun 22, 2022
d23eea5
Add tracking issues to `--extern` option docs.
ehuss Jun 22, 2022
3c7f1f1
Suggest defining variable as mutable on `&mut _` type mismatch in pats
WaffleLapkin Jun 23, 2022
4c4fb71
add test
b-naber Jun 23, 2022
2e3221a
use correct substs in enum discriminant hack
b-naber Jun 23, 2022
38814fc
small refactor
b-naber Jun 24, 2022
f39c0d6
address review
b-naber Jun 24, 2022
ada2acc
Set relocation_model to Pic on emscripten target
hoodmane Jun 15, 2022
bf48b62
fmt
b-naber Jun 24, 2022
e25129b
take advantage of a labelled block
WaffleLapkin Jun 24, 2022
1dfb53b
improve wording of a suggestion
WaffleLapkin Jun 24, 2022
d7388d1
Rollup merge of #96412 - ChrisDenton:remove-dir-all, r=thomcc
matthiaskrgr Jun 25, 2022
a130521
Rollup merge of #98126 - fortanix:raoul/mitigate_stale_data_vulnerabi…
matthiaskrgr Jun 25, 2022
45ef23d
Rollup merge of #98149 - hoodmane:emscripten-pic, r=petrochenkov
matthiaskrgr Jun 25, 2022
ecefccd
Rollup merge of #98194 - m-ou-se:leak-locked-pthread-mutex, r=Amanieu
matthiaskrgr Jun 25, 2022
8257ba2
Rollup merge of #98298 - TaKO8Ki:point-to-type-param-definition, r=co…
matthiaskrgr Jun 25, 2022
65187f5
Rollup merge of #98311 - eggyal:reverse-folder-hierarchy, r=jackh726
matthiaskrgr Jun 25, 2022
95ba108
Rollup merge of #98401 - ehuss:extern-tracking, r=Dylan-DPC
matthiaskrgr Jun 25, 2022
ea07b96
Rollup merge of #98429 - b-naber:use-correct-substs-discriminant-cast…
matthiaskrgr Jun 25, 2022
1f923c2
Rollup merge of #98431 - WaffleLapkin:mut_pat_suggestions, r=compiler…
matthiaskrgr Jun 25, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Unify copying data from enclave to userspace
  • Loading branch information
raoulstrackx committed Jun 15, 2022
commit ab3a2a024fb58d5ad3e893f1d5694468b187b2d3
10 changes: 3 additions & 7 deletions library/std/src/sys/sgx/abi/usercalls/alloc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,9 @@ where
/// Copies `val` into freshly allocated space in user memory.
pub fn new_from_enclave(val: &T) -> Self {
unsafe {
let ret = Self::new_uninit_bytes(mem::size_of_val(val));
ptr::copy(
val as *const T as *const u8,
ret.0.as_ptr() as *mut u8,
mem::size_of_val(val),
);
ret
let mut user = Self::new_uninit_bytes(mem::size_of_val(val));
user.copy_from_enclave(val);
user
}
}

Expand Down