Skip to content

Commit

Permalink
Update devmem_is_allowed kprobe URL.
Browse files Browse the repository at this point in the history
closes #42.
  • Loading branch information
jovanbulck committed Apr 12, 2022
1 parent a2ab73c commit b3d440a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ user-level virtual memory mappings for APIC physical memory-mapped I/O
registers and page table entries of interest. Recent Linux distributions
typically enable the `CONFIG_STRICT_DEVMEM` option which prevents such use,
however. Our `/dev/sgx-step` driver therefore includes an
[approach](https://www.libcrack.so/2012/09/02/bypassing-devmem_is_allowed-with-kprobes/)
[approach](https://www.libcrack.so/index.php/2012/09/02/bypassing-devmem_is_allowed-with-kprobes/)
to bypass `devmem_is_allowed` checks, without having to recompile the kernel.

### 2. Patch and install SGX SDK
Expand Down
2 changes: 1 addition & 1 deletion kernel/sgxstep.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ static struct miscdevice step_dev = {
.mode = S_IRUGO | S_IWUGO
};

/* Code from: <https://www.libcrack.so/2012/09/02/bypassing-devmem_is_allowed-with-kprobes/> */
/* Code from: <https://www.libcrack.so/index.php/2012/09/02/bypassing-devmem_is_allowed-with-kprobes/> */
static int devmem_is_allowed_handler (struct kretprobe_instance *rp, struct pt_regs *regs)
{
if (regs->ax == 0) {
Expand Down

0 comments on commit b3d440a

Please sign in to comment.