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  linux-cve-announce  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]
Message-ID: <05c64690-fa24-7104-4f1f-d98ff54863bc@oracle.com>
Date:   Wed, 16 Aug 2017 08:34:42 -0600
From:   Khalid Aziz <khalid.aziz@...cle.com>
To:     David Miller <davem@...emloft.net>
Cc:     akpm@...ux-foundation.org, dave.hansen@...ux.intel.com,
        arnd@...db.de, kirill.shutemov@...ux.intel.com, mhocko@...e.com,
        jack@...e.cz, ross.zwisler@...ux.intel.com,
        aneesh.kumar@...ux.vnet.ibm.com, dave.jiang@...el.com,
        willy@...radead.org, hughd@...gle.com, minchan@...nel.org,
        hannes@...xchg.org, hillf.zj@...baba-inc.com, shli@...com,
        mingo@...nel.org, jmarchan@...hat.com, lstoakes@...il.com,
        linux-arch@...r.kernel.org, linux-kernel@...r.kernel.org,
        linux-mm@...ck.org, sparclinux@...r.kernel.org,
        khalid@...ehiking.org
Subject: Re: [PATCH v7 2/9] mm, swap: Add infrastructure for saving page
 metadata on swap

On 08/15/2017 10:53 PM, David Miller wrote:
> From: Khalid Aziz <khalid.aziz@...cle.com>
> Date: Wed,  9 Aug 2017 15:25:55 -0600
> 
>> @@ -1399,6 +1399,12 @@ static bool try_to_unmap_one(struct page *page, struct vm_area_struct *vma,
>>   				(flags & TTU_MIGRATION)) {
>>   			swp_entry_t entry;
>>   			pte_t swp_pte;
>> +
>> +			if (arch_unmap_one(mm, vma, address, pteval) < 0) {
>> +				set_pte_at(mm, address, pvmw.pte, pteval);
>> +				ret = false;
>> +				page_vma_mapped_walk_done(&pvmw);
>> +				break;
>>   			/*
>>   			 * Store the pfn of the page in a special migration
>>   			 * pte. do_swap_page() will wait until the migration
>> @@ -1410,6 +1416,7 @@ static bool try_to_unmap_one(struct page *page, struct vm_area_struct *vma,
>>   			if (pte_soft_dirty(pteval))
>>   				swp_pte = pte_swp_mksoft_dirty(swp_pte);
>>   			set_pte_at(mm, address, pvmw.pte, swp_pte);
>> +			}
> 
> This basic block doesn't look right.  I think the new closing brace is
> intended to be right after the new break; statement.  If not at the
> very least the indentation of the existing code in there needs to be
> adjusted.

Hi Dave,

Thanks. That brace needs to move up right after break. I will fix that.

--
Khalid

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ