lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 24 Dec 2014 12:29:44 +0000
From:	Vineet Gupta <Vineet.Gupta1@...opsys.com>
To:	"Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>,
	"akpm@...ux-foundation.org" <akpm@...ux-foundation.org>
CC:	"peterz@...radead.org" <peterz@...radead.org>,
	"mingo@...nel.org" <mingo@...nel.org>,
	"davej@...hat.com" <davej@...hat.com>,
	"sasha.levin@...cle.com" <sasha.levin@...cle.com>,
	"hughd@...gle.com" <hughd@...gle.com>,
	"linux-mm@...ck.org" <linux-mm@...ck.org>,
	"linux-arch@...r.kernel.org" <linux-arch@...r.kernel.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	Vineet Gupta <Vineet.Gupta1@...opsys.com>
Subject: Re: [PATCH 10/38] arc: drop _PAGE_FILE and pte_file()-related
 helpers

Hi Kirill,

On Wednesday 24 December 2014 05:54 PM, Kirill A. Shutemov wrote:
> We've replaced remap_file_pages(2) implementation with emulation.
> Nobody creates non-linear mapping anymore.
>
> Signed-off-by: Kirill A. Shutemov <kirill.shutemov@...ux.intel.com>
> Cc: Vineet Gupta <vgupta@...opsys.com>
> ---
>  arch/arc/include/asm/pgtable.h | 15 ++-------------
>  1 file changed, 2 insertions(+), 13 deletions(-)
>
> diff --git a/arch/arc/include/asm/pgtable.h b/arch/arc/include/asm/pgtable.h
> index 6b0b7f7ef783..55694ee428d4 100644
> --- a/arch/arc/include/asm/pgtable.h
> +++ b/arch/arc/include/asm/pgtable.h
> @@ -61,7 +61,6 @@
>  #define _PAGE_WRITE         (1<<4)	/* Page has user write perm (H) */
>  #define _PAGE_READ          (1<<5)	/* Page has user read perm (H) */
>  #define _PAGE_MODIFIED      (1<<6)	/* Page modified (dirty) (S) */
> -#define _PAGE_FILE          (1<<7)	/* page cache/ swap (S) */
>  #define _PAGE_GLOBAL        (1<<8)	/* Page is global (H) */
>  #define _PAGE_PRESENT       (1<<10)	/* TLB entry is valid (H) */
>  
> @@ -73,7 +72,6 @@
>  #define _PAGE_READ          (1<<3)	/* Page has user read perm (H) */
>  #define _PAGE_ACCESSED      (1<<4)	/* Page is accessed (S) */
>  #define _PAGE_MODIFIED      (1<<5)	/* Page modified (dirty) (S) */
> -#define _PAGE_FILE          (1<<6)	/* page cache/ swap (S) */
>  #define _PAGE_GLOBAL        (1<<8)	/* Page is global (H) */
>  #define _PAGE_PRESENT       (1<<9)	/* TLB entry is valid (H) */
>  #define _PAGE_SHARED_CODE   (1<<11)	/* Shared Code page with cmn vaddr
> @@ -268,15 +266,6 @@ static inline void pmd_set(pmd_t *pmdp, pte_t *ptep)
>  	pte;								\
>  })
>  
> -/* TBD: Non linear mapping stuff */
> -static inline int pte_file(pte_t pte)
> -{
> -	return pte_val(pte) & _PAGE_FILE;
> -}
> -
> -#define PTE_FILE_MAX_BITS	30
> -#define pgoff_to_pte(x)         __pte(x)
> -#define pte_to_pgoff(x)		(pte_val(x) >> 2)
>  #define pte_pfn(pte)		(pte_val(pte) >> PAGE_SHIFT)
>  #define pfn_pte(pfn, prot)	(__pte(((pfn) << PAGE_SHIFT) | pgprot_val(prot)))
>  #define __pte_index(addr)	(((addr) >> PAGE_SHIFT) & (PTRS_PER_PTE - 1))
> @@ -358,13 +347,13 @@ static inline void set_pte_at(struct mm_struct *mm, unsigned long addr,
>  #endif
>  
>  extern void paging_init(void);
> -extern pgd_t swapper_pg_dir[] __aligned(PAGE_SIZE);
> +xtern pgd_t swapper_pg_dir[] __aligned(PAGE_SIZE);

I don't think u intended that. Otherwise

Acked-by: Vineet Gupta <vgupta@...opsys.com>

Thx,
-Vineet

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists