blob: a6f48413b826160a6df681f71ea1ac82541bd789 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
graphic: 0.946
performance: 0.874
device: 0.872
network: 0.860
files: 0.827
socket: 0.798
vnc: 0.776
PID: 0.740
debug: 0.654
semantic: 0.614
permissions: 0.588
boot: 0.542
other: 0.413
KVM: 0.325
[AARCH64] GP bit (BTI) lost during two stages translation
Description of problem:
I noticed that the BTI faults were not reported.
That's because the GP (guarded page) information is lost during the two stages translation in get_phys_addr_twostage().
The "guarded" information is correctly retrieved by the first call to get_phys_addr_nogpc() but overwritten by the the second call to get_phys_addr_nogpc().
The call to combine_cacheattrs() copies cacheattrs1.guarded but this field is never modified.
The attached patch fixes the issue for me.
[get_phys_addr_twostage_bti_gp_bit_lost_master.patch](/uploads/2fbe8090f92c43a63e39ee66ab2daf47/get_phys_addr_twostage_bti_gp_bit_lost_master.patch)
|