1. 07 2月, 2009 30 次提交
  2. 14 1月, 2009 1 次提交
  3. 20 12月, 2008 2 次提交
  4. 19 12月, 2008 3 次提交
  5. 17 12月, 2008 1 次提交
    • J
      x86: consolidate __swp_XXX() macros · 1796316a
      Jan Beulich 提交于
      Impact: cleanup, code robustization
      
      The __swp_...() macros silently relied upon which bits are used for
      _PAGE_FILE and _PAGE_PROTNONE. After having changed _PAGE_PROTNONE in
      our Xen kernel to no longer overlap _PAGE_PAT, live locks and crashes
      were reported that could have been avoided if these macros properly
      used the symbolic constants. Since, as pointed out earlier, for Xen
      Dom0 support mainline likewise will need to eliminate the conflict
      between _PAGE_PAT and _PAGE_PROTNONE, this patch does all the necessary
      adjustments, plus it introduces a mechanism to check consistency
      between MAX_SWAPFILES_SHIFT and the actual encoding macros.
      
      This also fixes a latent bug in that x86-64 used a 6-bit mask in
      __swp_type(), and if MAX_SWAPFILES_SHIFT was increased beyond 5 in (the
      seemingly unrelated) linux/swap.h, this would have resulted in a
      collision with _PAGE_FILE.
      
      Non-PAE 32-bit code gets similarly adjusted for its pte_to_pgoff() and
      pgoff_to_pte() calculations.
      Signed-off-by: NJan Beulich <jbeulich@novell.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      1796316a
  6. 23 10月, 2008 2 次提交
  7. 16 10月, 2008 1 次提交
    • 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