Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761565AbcLPORW (ORCPT ); Fri, 16 Dec 2016 09:17:22 -0500 Received: from mx2.suse.de ([195.135.220.15]:46870 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760292AbcLPOQ2 (ORCPT ); Fri, 16 Dec 2016 09:16:28 -0500 From: Andreas Schwab To: Minchan Kim Cc: , , , , Jason Evans Subject: Re: jemalloc testsuite stalls in memset References: <20161214235031.GA2912@bbox> <20161216063940.GA1334@bbox> X-Yow: Concentrate on th'cute, li'l CARTOON GUYS! Remember the SERIAL NUMBERS!! Follow the WHIPPLE AVE EXIT!! Have a FREE PEPSI!! Turn LEFT at th'HOLIDAY INN!! JOIN the CREDIT WORLD!! MAKE me an OFFER!!! Date: Fri, 16 Dec 2016 15:16:20 +0100 In-Reply-To: <20161216063940.GA1334@bbox> (Minchan Kim's message of "Fri, 16 Dec 2016 15:39:40 +0900") Message-ID: <87d1gshscr.fsf@suse.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 764 Lines: 25 On Dez 16 2016, Minchan Kim wrote: > Below helps? > > diff --git a/mm/huge_memory.c b/mm/huge_memory.c > index e10a4fe..dc37c9a 100644 > --- a/mm/huge_memory.c > +++ b/mm/huge_memory.c > @@ -1611,6 +1611,7 @@ int madvise_free_huge_pmd(struct mmu_gather *tlb, struct vm_area_struct *vma, > tlb->fullmm); > orig_pmd = pmd_mkold(orig_pmd); > orig_pmd = pmd_mkclean(orig_pmd); > + orig_pmd = pmd_wrprotect(orig_pmd); > > set_pmd_at(mm, addr, pmd, orig_pmd); > tlb_remove_pmd_tlb_entry(tlb, pmd, addr); Thanks, this fixes the issue (tested with 4.9). Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different."