Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751788AbaKUTXR (ORCPT ); Fri, 21 Nov 2014 14:23:17 -0500 Received: from cdptpa-outbound-snat.email.rr.com ([107.14.166.227]:10617 "EHLO cdptpa-oedge-vip.email.rr.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751480AbaKUTXP (ORCPT ); Fri, 21 Nov 2014 14:23:15 -0500 Date: Fri, 21 Nov 2014 14:23:01 -0500 From: Steven Rostedt To: Linus Torvalds Cc: Andy Lutomirski , Tejun Heo , "linux-kernel@vger.kernel.org" , Thomas Gleixner , Arnaldo Carvalho de Melo , Peter Zijlstra , Frederic Weisbecker , Don Zickus , Dave Jones , "the arch/x86 maintainers" Subject: Re: frequent lockups in 3.18rc4 Message-ID: <20141121142301.564f7eb7@gandalf.local.home> In-Reply-To: References: <20141120221122.GA25393@htj.dyndns.org> <20141120230514.GB25393@htj.dyndns.org> <20141120233920.GC25393@htj.dyndns.org> <20141121162742.GB15461@htj.dyndns.org> <20141121170805.GD30603@home.goodmis.org> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-RR-Connecting-IP: 107.14.168.142:25 X-Cloudmark-Score: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 21 Nov 2014 11:06:41 -0800 Linus Torvalds wrote: > static noinline int vmalloc_fault(unsigned long address) > { > pgd_t *pgd_dst; > pgdval_t pgd_entry; > unsigned index = pgd_index(address); > > if (index < KERNEL_PGD_BOUNDARY) > return -1; > > pgd_entry = init_mm.pgd[index].pgd; > if (!pgd_entry) > return -1; Should we at least check to see if it is present? if (!(pgd_entry & 1)) return -1; ? -- Steve > > pgd_dst = __va(PAGE_MASK & read_cr3()); > pgd_dst += index; > > if (pgd_dst->pgd) > return -1; > > ACCESS_ONCE(pgd_dst->pgd) = pgd_entry; > return 0; > } > NOKPROBE_SYMBOL(vmalloc_fault); > > Hmm? Does anybody see anything fundamentally wrong with this? > > Linus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/