From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-we0-f173.google.com (mail-we0-f173.google.com [74.125.82.173]) by kanga.kvack.org (Postfix) with ESMTP id 731466B0031 for ; Tue, 17 Jun 2014 00:30:20 -0400 (EDT) Received: by mail-we0-f173.google.com with SMTP id t60so6625058wes.32 for ; Mon, 16 Jun 2014 21:30:19 -0700 (PDT) Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by mx.google.com with ESMTPS id k10si22135365wjf.110.2014.06.16.21.30.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 16 Jun 2014 21:30:18 -0700 (PDT) Received: by mail-wi0-f174.google.com with SMTP id bs8so5099050wib.1 for ; Mon, 16 Jun 2014 21:30:17 -0700 (PDT) Date: Tue, 17 Jun 2014 07:30:14 +0300 From: Dan Aloni Subject: Re: mm/sched/net: BUG when running simple code Message-ID: <20140617043014.GA18161@gmail.com> References: <539A6850.4090408@oracle.com> <20140613032754.GA20729@gmail.com> <539A77A1.60700@oracle.com> <20140613041331.GA31688@redhat.com> <539FB363.1070302@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <539FB363.1070302@oracle.com> Sender: owner-linux-mm@kvack.org List-ID: To: Sasha Levin Cc: Dave Jones , "linux-mm@kvack.org" , Andrew Morton , Ingo Molnar , Peter Zijlstra , LKML , "netdev@vger.kernel.org" On Mon, Jun 16, 2014 at 11:17:55PM -0400, Sasha Levin wrote: > On 06/13/2014 12:13 AM, Dave Jones wrote: > > On Fri, Jun 13, 2014 at 12:01:37AM -0400, Sasha Levin wrote: > > another theory: Trinity can sometimes generate plausible looking module > > addresses and pass those in structs etc. > > > > I wonder if there's somewhere in that path that isn't checking that the address > > in the optval it got is actually a userspace address before it tries to write to it. > > It happened again, and this time I've left the kernel addresses in, and it's quite > interesting: > > [ 88.837926] Call Trace: > [ 88.837926] [] __sock_create+0x292/0x3c0 > [ 88.837926] [] ? __sock_create+0x110/0x3c0 > [ 88.837926] [] sock_create+0x30/0x40 > [ 88.837926] [] SyS_socket+0x2c/0x70 > [ 88.837926] [] ? tracesys+0x7e/0xe6 > [ 88.837926] [] tracesys+0xe1/0xe6 > > tracesys() seems to live inside a module space here? I think it's more likely kASLR. The Documentation/x86/x86_64/mm.txt doc needs updating. -- Dan Aloni -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org