From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 17 18:00:02 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2E6856B1; Fri, 17 Oct 2014 18:00:02 +0000 (UTC) Received: from mail-pa0-x236.google.com (mail-pa0-x236.google.com [IPv6:2607:f8b0:400e:c03::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EB0968F3; Fri, 17 Oct 2014 18:00:01 +0000 (UTC) Received: by mail-pa0-f54.google.com with SMTP id ey11so1262369pad.13 for ; Fri, 17 Oct 2014 11:00:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=3cCLFWNrps3KFEiPiP6skUMMwo6PJM3l8Z5tc1BBKhE=; b=PcGcokNxnVzbAK2xwQPhGntbSllb3LW0ZZOlvlZ39QxSwXL7FVlbLronnsUqzAQKhz NNfcO99j9dfUMalfSeoHPRffrXWfqWqbyRaBNfI2mgKN/OfqutonbYXLCQ1+BJvs0AFL q+3HngJYGvyHBwNLt9yIcL74aUMdPDTjjpdXGmfIp553tQTi4aWRmhYcBHuzF+mwTrcn Fw8wlFhkE8R27u0361Dzka2oLqScu9h2vAxdHFn2x6dMUtaHtTcGyqRMv0JcOpvcevjg t//9tf8grApPixZpdDf9chxJHC9cnHDiPvWGQJ7bO5A6TU8DhvBMS5/K/Ulb2J5XMJxy Z8kg== X-Received: by 10.66.219.38 with SMTP id pl6mr10039845pac.43.1413568800968; Fri, 17 Oct 2014 11:00:00 -0700 (PDT) Received: from ox ([24.6.44.228]) by mx.google.com with ESMTPSA id ey5sm2110406pbb.67.2014.10.17.10.59.58 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 17 Oct 2014 10:59:59 -0700 (PDT) Sender: Navdeep Parhar Date: Fri, 17 Oct 2014 10:59:18 -0700 From: Navdeep Parhar To: John Baldwin Subject: Re: panic in ivy_rng_store() when compiled with -O0 Message-ID: <20141017175918.GA6074@ox> Mail-Followup-To: John Baldwin , freebsd-hackers@freebsd.org References: <54384ABD.5080806@FreeBSD.org> <2533199.DHZybpy49d@ralph.baldwin.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2533199.DHZybpy49d@ralph.baldwin.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2014 18:00:02 -0000 On Fri, Oct 17, 2014 at 11:53:58AM -0400, John Baldwin wrote: > On Friday, October 10, 2014 02:08:13 PM Navdeep Parhar wrote: > > I built my kernel + modules (head as of today) with -O0 and now it > > panics during boot. I did bump up KSTACK_PAGES significantly so that's > > not the problem. I'm going to take out the RNG device next and see if I > > can get past this. > > > > Regards, > > Navdeep > > > > Fatal trap 9: general protection fault while in kernel mode > > cpuid = 0; apic id = 00 > > instruction pointer = 0x20:0xffffffff814ac661 > > stack pointer = 0x28:0xfffffe01ed6c6930 > > frame pointer = 0x28:0xfffffe01ed6c6960 > > code segment = base 0x0, limit 0xfffff, type 0x1b > > = DPL 0, pres 1, long 1, def32 0, gran 1 > > processor eflags = interrupt enabled, resume, IOPL = 0 > > current process = 14 (rand_harvestq) > > [ thread pid 14 tid 100017 ] > > Stopped at ivy_rng_store+0x31: movq %rdi,(%rdi) > > db> bt > > Tracing pid 14 tid 100017 td 0xfffff800042c84c0 > > ivy_rng_store() at ivy_rng_store+0x31/frame 0xfffffe01ed6c6960 > > random_ivy_read() at random_ivy_read+0x78/frame 0xfffffe01ed6c6990 > > live_entropy_sources_feed() at live_entropy_sources_feed+0x73/frame > > 0xfffffe01ed6c69d0 > > random_kthread() at random_kthread+0x224/frame 0xfffffe01ed6c6a30 > > fork_exit() at fork_exit+0x14a/frame 0xfffffe01ed6c6ab0 > > fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe01ed6c6ab0 > > --- trap 0, rip = 0, rsp = 0xfffffe01ed6c6b70, rbp = 0 --- > > Can you 'p $rdi'? I don't have this core around any more. The problem was fixed in r273027. Navdeep