Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1278676
| From | Thomas Gleixner <tglx@linutronix.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 15/37] x86, pkeys: pass VMA down in to fault signal generation code |
| Date | 2015-11-27 10:40 +0100 |
| Message-ID | <qznFx-11n-29@gated-at.bofh.it> (permalink) |
| References | <qvFhE-7YL-5@gated-at.bofh.it> <qvFhE-7YL-25@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, 16 Nov 2015, Dave Hansen wrote: > During a page fault, we look up the VMA to ensure that the fault > is in a region with a valid mapping. But, in the top-level page > fault code we don't need the VMA for much else. Once we have > decided that an access is bad, we are going to send a signal no > matter what and do not need the VMA any more. So we do not pass > it down in to the signal generation code. > > But, for protection keys, we need the VMA. It tells us *which* > protection key we violated if we get a PF_PK. So, we need to > pass the VMA down and fill in siginfo->si_pkey. > > Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 15/37] x86, pkeys: pass VMA down in to fault signal generation code Dave Hansen <dave@sr71.net> - 2015-11-17 04:40 +0100 Re: [PATCH 15/37] x86, pkeys: pass VMA down in to fault signal generation code Thomas Gleixner <tglx@linutronix.de> - 2015-11-27 10:40 +0100
csiph-web