Skip to contentSkip to conversation

remap_file_pages protection support: s390 bits

PATCH In review [email protected] 1 participant 1 message Aug 12, 2005

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 31/39 remap_file_pages protection support: s390 bits

From: Martin Schwidefsky <[email protected]>

s390 memory management changes for remap-file-pages-prot patch:

- Add pgoff_prot_to_pte/pte_to_pgprot, remove pgoff_to_pte (required for 'prot' parameteter in shared-writeable mappings).

- Handle VM_FAULT_SIGSEGV from handle_mm_fault in do_exception.

---

 linux-2.6.git-paolo/arch/s390/mm/fault.c       |    2 
 linux-2.6.git-paolo/include/asm-s390/pgtable.h |   90 ++++++++++++++++---------
 2 files changed, 60 insertions(+), 32 deletions(-)
arch/s390/mm/fault.c renamed from arch/s390/mm/fault.c~rfp-arch-s390 +2 -0
diff -puN arch/s390/mm/fault.c~rfp-arch-s390 arch/s390/mm/fault.c
@@ -260,6 +260,8 @@ survive:
 		goto do_sigbus;
 	case VM_FAULT_OOM:
 		goto out_of_memory;
+	case VM_FAULT_SIGSEGV:
+		goto bad_area;
 	default:
 		BUG();
 	}
include/asm-s390/pgtable.h renamed from include/asm-s390/pgtable.h~rfp-arch-s390 +58 -32

151 lines not on this page · raw message

_

-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
User-mode-linux-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel