Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypervisor rootkit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flg_bachelors
TS
2024
hypervisor rootkit
Commits
8fd27449
Commit
8fd27449
authored
5 months ago
by
iliya.saroukha
Browse files
Options
Downloads
Patches
Plain Diff
fix: addr alignment mask
parent
a61495ee
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
proto/region/vmxon_reg.c
+5
-5
5 additions, 5 deletions
proto/region/vmxon_reg.c
with
5 additions
and
5 deletions
proto/region/vmxon_reg.c
+
5
−
5
View file @
8fd27449
...
...
@@ -5,7 +5,7 @@
#include
<linux/printk.h>
#include
<linux/slab.h>
static
int
alloc_vmxon_internals
(
struct
vmxon_reg_t
*
reg
)
{
static
int
alloc_vmxon_internals
(
struct
vmxon_reg
ion
_t
*
reg
)
{
if
(
!
reg
)
{
DEBUG_FMT
(
"vmxon_reg_t isn't allocated
\n
"
);
return
-
1
;
...
...
@@ -18,8 +18,8 @@ static int alloc_vmxon_internals(struct vmxon_reg_t *reg) {
return
-
1
;
}
if
(((
unsigned
long
long
)
region
&
0x
1
fff
)
!=
0
)
{
DEBUG_FMT
(
"Region isn't properly aligned
\n
"
);
if
(((
unsigned
long
long
)
region
&
0xfff
)
!=
0
)
{
DEBUG_FMT
(
"Region
0x%px
isn't properly aligned
\n
"
,
region
);
return
-
1
;
}
...
...
@@ -34,7 +34,7 @@ static int alloc_vmxon_internals(struct vmxon_reg_t *reg) {
return
0
;
}
static
int
write_vmcs_rev_id_to_vmxon
(
struct
vmxon_reg_t
*
reg
)
{
static
int
write_vmcs_rev_id_to_vmxon
(
struct
vmxon_reg
ion
_t
*
reg
)
{
if
(
!
reg
)
{
DEBUG_FMT
(
"vmxon_reg_t isn't allocated
\n
"
);
return
-
1
;
...
...
@@ -51,7 +51,7 @@ static int write_vmcs_rev_id_to_vmxon(struct vmxon_reg_t *reg) {
return
0
;
}
int
init_vmxon_reg
(
struct
vmxon_reg_t
*
reg
)
{
int
init_vmxon_reg
(
struct
vmxon_reg
ion
_t
*
reg
)
{
if
(
alloc_vmxon_internals
(
reg
)
!=
0
)
{
return
-
1
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment