-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Switch kernel pointer in tracemem() test
The tracemem() test dumped a portion of kernel memory, comparing different tracemem() output for the same kernel memory for consistency. Since it was looking at task_struct for the current thread, however, the underlying data could conceivably change as the test ran, leading to inconsistency and a false negative. Change the kernel memory to be the first 14 bytes of `linux_banner, which should remain "Linux version ". Signed-off-by: Eugene Loh <eugene.loh@oracle.com> Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
- Loading branch information
Showing
3 changed files
with
34 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,22 @@ | ||
256 bytes | ||
256 bytes | ||
32 bytes | ||
64 bytes | ||
128 bytes | ||
256 bytes | ||
256 bytes | ||
128 bytes | ||
256 bytes | ||
|
||
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef | ||
0: 4c 69 6e 75 78 20 76 65 72 73 69 6f 6e 20 Linux version | ||
|
||
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef | ||
0: 4c 69 6e 75 78 20 76 65 72 73 69 6f 6e 20 Linux version | ||
|
||
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef | ||
0: 4c 69 Li | ||
|
||
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef | ||
0: 4c 69 6e 75 78 20 76 Linux v | ||
|
||
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef | ||
0: 4c 69 6e 75 78 20 76 65 72 73 69 6f Linux versio | ||
|
||
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef | ||
0: 4c 69 6e 75 78 20 76 65 72 73 69 6f 6e 20 Linux version | ||
|
||
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef | ||
0: 4c 69 6e 75 78 20 76 65 72 73 69 6f 6e 20 Linux version | ||
|
This file was deleted.
Oops, something went wrong.