Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 094804c5 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds
Browse files

[PATCH] x86_64: Fix change_page_attr cache flushing



Noticed by Terence Ripperda

Undo wrong change in global_flush_tlb. We need to flush the caches in all
cases, not just when pages were reverted. This was a bogus optimization
added earlier, but it was wrong.

Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f96c3bbe
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -220,8 +220,6 @@ void global_flush_tlb(void)
	down_read(&init_mm.mmap_sem);
	df = xchg(&df_list, NULL);
	up_read(&init_mm.mmap_sem);
	if (!df)
		return;
	flush_map((df && !df->next) ? df->address : 0);
	for (; df; df = next_df) { 
		next_df = df->next;