diff options
author | Frank Rowand <frank.rowand@am.sony.com> | 2011-10-02 01:58:13 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-05-14 18:38:04 (GMT) |
commit | e140bfa3a880aba70d6e04b54ae80805de86e41e (patch) | |
tree | e2e2d9e8a290bd6554aacab218cbb3a98d1b9d55 /drivers/rtc/rtc-palmas.c | |
parent | a210d5b3fe0a4efdf5b7f40b6f111e7c621c1f92 (diff) | |
download | linux-fsl-qoriq-e140bfa3a880aba70d6e04b54ae80805de86e41e.tar.xz |
ARM: Initialize ptl->lock for vector page
Without this patch, ARM can not use SPLIT_PTLOCK_CPUS if
PREEMPT_RT_FULL=y because vectors_user_mapping() creates a
VM_ALWAYSDUMP mapping of the vector page (address 0xffff0000), but no
ptl->lock has been allocated for the page. An attempt to coredump
that page will result in a kernel NULL pointer dereference when
follow_page() attempts to lock the page.
The call tree to the NULL pointer dereference is:
do_notify_resume()
get_signal_to_deliver()
do_coredump()
elf_core_dump()
get_dump_page()
__get_user_pages()
follow_page()
pte_offset_map_lock() <----- a #define
...
rt_spin_lock()
The underlying problem is exposed by mm-shrink-the-page-frame-to-rt-size.patch.
Signed-off-by: Frank Rowand <frank.rowand@am.sony.com>
Cc: Frank <Frank_Rowand@sonyusa.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/4E87C535.2030907@am.sony.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/rtc/rtc-palmas.c')
0 files changed, 0 insertions, 0 deletions