From owner-freebsd-hackers@FreeBSD.ORG Fri Oct 17 16:52:25 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 55F045D4; Fri, 17 Oct 2014 16:52:25 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 308EEFE3; Fri, 17 Oct 2014 16:52:25 +0000 (UTC) Received: from ralph.baldwin.cx (pool-173-70-85-31.nwrknj.fios.verizon.net [173.70.85.31]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 3E1F9B98D; Fri, 17 Oct 2014 12:52:24 -0400 (EDT) From: John Baldwin To: freebsd-hackers@freebsd.org Subject: Re: panic in ivy_rng_store() when compiled with -O0 Date: Fri, 17 Oct 2014 11:53:58 -0400 Message-ID: <2533199.DHZybpy49d@ralph.baldwin.cx> User-Agent: KMail/4.12.5 (FreeBSD/10.1-BETA2; KDE/4.12.5; amd64; ; ) In-Reply-To: <54384ABD.5080806@FreeBSD.org> References: <54384ABD.5080806@FreeBSD.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Fri, 17 Oct 2014 12:52:24 -0400 (EDT) Cc: Navdeep Parhar 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 16:52:25 -0000 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'? -- John Baldwin