File tree Expand file tree Collapse file tree 8 files changed +76
-3
lines changed
Expand file tree Collapse file tree 8 files changed +76
-3
lines changed Original file line number Diff line number Diff line change 11KERNEL_MAJOR_VERSION=4.9
2- KERNEL_VERSION=4.9.121
2+ KERNEL_VERSION=4.9.122
33
44echo " Setting up rebase directory..."
55rm -rf rebase
Original file line number Diff line number Diff line change 11DATE=` date +%Y-%m-%d`
22KERNEL_MAJOR_VERSION=4.9
3- KERNEL_VERSION=4.9.121
3+ KERNEL_VERSION=4.9.122
44
55echo " Setting up release directory..."
66mkdir release
Original file line number Diff line number Diff line change 1+ diff --git a/Makefile b/Makefile
2+ index e54a126841a9..1f44343a1e04 100644
3+ --- a/Makefile
4+ +++ b/Makefile
5+ @@ -1,6 +1,6 @@
6+ VERSION = 4
7+ PATCHLEVEL = 9
8+ - SUBLEVEL = 121
9+ + SUBLEVEL = 122
10+ EXTRAVERSION =
11+ NAME = Roaring Lionus
12+
Original file line number Diff line number Diff line change 1+ diff --git a/arch/x86/include/asm/pgtable-invert.h b/arch/x86/include/asm/pgtable-invert.h
2+ index 44b1203ece12..a0c1525f1b6f 100644
3+ --- a/arch/x86/include/asm/pgtable-invert.h
4+ +++ b/arch/x86/include/asm/pgtable-invert.h
5+ @@ -4,9 +4,18 @@
6+
7+ #ifndef __ASSEMBLY__
8+
9+ + /*
10+ + * A clear pte value is special, and doesn't get inverted.
11+ + *
12+ + * Note that even users that only pass a pgprot_t (rather
13+ + * than a full pte) won't trigger the special zero case,
14+ + * because even PAGE_NONE has _PAGE_PROTNONE | _PAGE_ACCESSED
15+ + * set. So the all zero case really is limited to just the
16+ + * cleared page table entry case.
17+ + */
18+ static inline bool __pte_needs_invert(u64 val)
19+ {
20+ - return !(val & _PAGE_PRESENT);
21+ + return val && !(val & _PAGE_PRESENT);
22+ }
23+
24+ /* Get a mask to xor with the page table entry to get the correct pfn. */
Original file line number Diff line number Diff line change 44
55# ADD NEWEST FIRST
66
7+ patch -F 0 -R -p1 < ../../omitted-patches/omit-4.9.122.patch
78patch -F 0 -R -p1 < ../../omitted-patches/omit-4.9.121.patch
89patch -F 0 -R -p1 < ../../omitted-patches/omit-4.9.120.patch
910# 4.9.119 does not need any omissions
Original file line number Diff line number Diff line change 1+ diff --git a/Makefile b/Makefile
2+ index e54a126841a9..1f44343a1e04 100644
3+ --- a/Makefile
4+ +++ b/Makefile
5+ @@ -1,6 +1,6 @@
6+ VERSION = 4
7+ PATCHLEVEL = 9
8+ - SUBLEVEL = 121
9+ + SUBLEVEL = 122
10+ EXTRAVERSION =
11+ NAME = Roaring Lionus
12+
13+ diff --git a/arch/x86/include/asm/pgtable-invert.h b/arch/x86/include/asm/pgtable-invert.h
14+ index 44b1203ece12..a0c1525f1b6f 100644
15+ --- a/arch/x86/include/asm/pgtable-invert.h
16+ +++ b/arch/x86/include/asm/pgtable-invert.h
17+ @@ -4,9 +4,18 @@
18+
19+ #ifndef __ASSEMBLY__
20+
21+ + /*
22+ + * A clear pte value is special, and doesn't get inverted.
23+ + *
24+ + * Note that even users that only pass a pgprot_t (rather
25+ + * than a full pte) won't trigger the special zero case,
26+ + * because even PAGE_NONE has _PAGE_PROTNONE | _PAGE_ACCESSED
27+ + * set. So the all zero case really is limited to just the
28+ + * cleared page table entry case.
29+ + */
30+ static inline bool __pte_needs_invert(u64 val)
31+ {
32+ - return !(val & _PAGE_PRESENT);
33+ + return val && !(val & _PAGE_PRESENT);
34+ }
35+
36+ /* Get a mask to xor with the page table entry to get the correct pfn. */
Original file line number Diff line number Diff line change 11DATE=` date +%Y-%m-%d`
22KERNEL_MAJOR_VERSION=4.9
3- KERNEL_VERSION=4.9.121
3+ KERNEL_VERSION=4.9.122
44
55echo " Removing old kernels..."
66rm -rf test
You can’t perform that action at this time.
0 commit comments