]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mm: Fix slow_virt_to_phys() for X86_PAE again
authorDexuan Cui <decui@microsoft.com>
Thu, 25 Feb 2016 09:58:12 +0000 (01:58 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 25 Feb 2016 18:53:15 +0000 (19:53 +0100)
commitd3adfdcadd4e91247d3f160e3849aceff05e282f
tree1a51a4cc28ecb10799e8c9e96504ce78081065d8
parent50e45c219e8578536dfb69440e98f15bcf0bd91c
x86/mm: Fix slow_virt_to_phys() for X86_PAE again

"2744daffaa20: x86, pageattr: Prevent overflow in slow_virt_to_phys() for
X86_PAE" was unintentionally removed by the recent "6db51070563f: x86/mm: Fix
slow_virt_to_phys() to handle large PAT bit".

And, the variable 'phys_addr' was defined as "unsigned long" by mistake -- it should
be "phys_addr_t".

As a result, Hyper-V network driver in 32-PAE Linux guest can't work again.

Fixes: commit 6db51070563f: "x86/mm: Fix slow_virt_to_phys() to handle large PAT bit"
Signed-off-by: Dexuan Cui <decui@microsoft.com>
Reviewed-by: Toshi Kani <toshi.kani@hpe.com>
Cc: olaf@aepfle.de
Cc: gregkh@linuxfoundation.org
Cc: jasowang@redhat.com
Cc: driverdev-devel@linuxdriverproject.org
Cc: linux-mm@kvack.org
Cc: apw@canonical.com
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: K. Y. Srinivasan <kys@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Link: http://lkml.kernel.org/r/1456394292-9030-1-git-send-email-decui@microsoft.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/mm/pageattr.c