1. 17 10月, 2008 1 次提交
  2. 16 10月, 2008 2 次提交
    • L
      Introduce is_vmalloc_or_module_addr() and use with DEBUG_VIRTUAL · 73bdf0a6
      Linus Torvalds 提交于
      Impact: crash on module insertion with CONFIG_DEBUG_VIRTUAL
      
      We would incorrectly BUG due to:
      
         VIRTUAL_BUG_ON(!is_vmalloc_addr(vmalloc_addr) &&
         	          !is_module_address(addr));
      
      ... because, at least on x86-64, is_module_address() doesn't do what
      it should.  This patch introduces is_vmalloc_or_module_addr(), which
      is what we really want anyway, and uses it instead.
      Signed-off-by: NH. Peter Anvin <hpa@zytor.com>
      73bdf0a6
    • S
      x86: fix compat-vdso · f61f1b57
      Suresh Siddha 提交于
      Jeff Chua reported that this patch:
      
      > -#define PTE_IDENT_ATTR  0x007          /* PRESENT+RW+USER */
      > -#define PDE_IDENT_ATTR  0x067          /* PRESENT+RW+USER+DIRTY+ACCESSED */
      > +#define PTE_IDENT_ATTR  0x003          /* PRESENT+RW */
      > +#define PDE_IDENT_ATTR  0x063          /* PRESENT+RW+DIRTY+ACCESSED */
      
      broke kernels with CONFIG_COMPAT_VDSO set with this init segfault:
      
      init[1]: segfault at ffffe01c up b7f0dc28 sp bfc26628 error 5 in ld-2.7.90.so[b7f0b000+1c000]
      
      Include USER bit in the PDE_IDENT_ATTR only, as the protection bits
      are combined from the PDE and PTE entries. This will allow the high
      mapped VDSO page in the case of CONFIG_COMPAT_VDSO to be user
      readable.
      Reported-by: NJeff Chua <jeff.chua.linux@gmail.com>
      Signed-off-by: NSuresh Siddha <suresh.b.siddha@intel.com>
      Tested-by: NJeff Chua <jeff.chua.linux@gmail.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      f61f1b57
  3. 14 10月, 2008 1 次提交
  4. 13 10月, 2008 19 次提交
  5. 12 10月, 2008 17 次提交