All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rabin Vincent <rabin@rab.in>
To: Felipe Balbi <balbi@ti.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Sasha Levin <sasha.levin@oracle.com>,
	"Paul E. McKenney" <paulmck@linux.vnet.ibm.com>,
	Linux USB Mailing List <linux-usb@vger.kernel.org>,
	Alan Stern <stern@rowland.harvard.edu>,
	josh@joshtriplett.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Tony Lindgren <tony@atomide.com>,
	Linux OMAP Mailing List <linux-omap@vger.kernel.org>,
	Linux ARM Kernel Mailing List
	<linux-arm-kernel@lists.infradead.org>,
	Rik van Riel <riel@redhat.com>
Subject: Re: RCU bug with v3.17-rc3 ?
Date: Thu, 9 Oct 2014 22:41:01 +0200	[thread overview]
Message-ID: <20141009204101.GA25955@debian> (raw)
In-Reply-To: <20141009162656.GE16002@saruman>

On Thu, Oct 09, 2014 at 11:26:56AM -0500, Felipe Balbi wrote:
> alright, it's pretty deterministic however. Always on the same test, no
> matter which USB controller, no matter if backing store is RAM or MMC.
> 
> Those two undefined instructions on the disassembly caught my attention,
> perhaps I'm facing a GCC bug ?

The undefined instructions are just ARM's BUG() implementation.

But did you see the question I asked you yesterday in your other thread?
http://www.spinics.net/lists/arm-kernel/msg368634.html

Here it is again:

  What GCC version are you using?
  
  4.8.1 and 4.8.2 are known to miscompile the ARM kernel and these
  find_get_entry() crashes with 0xffffffff involved smell a lot like the
  earlier reports from kernels build with those compilers:
  
  https://lkml.org/lkml/2014/6/25/456
  https://lkml.org/lkml/2014/6/30/375
  https://lkml.org/lkml/2014/6/30/660
  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58854
  https://lkml.org/lkml/2014/5/9/330

Also, I didn't see any public email making a definitive link between GCC
PR 58854 that Nathan pointed out in https://lkml.org/lkml/2014/6/30/660
and the earlier find_get_entry() crashes, but I just built GCC 4.8.1 and
an ARM kernel with that, and the GCC bug is clearly seen in
radix_tree_lookup_slot() which returns the pointer which
find_get_entry() is dereferencing:

  <radix_tree_lookup_slot>:
   e1a0c00d  mov     ip, sp
   e92dd800  push    {fp, ip, lr, pc}
   e24cb004  sub     fp, ip, #4
   e24dd008  sub     sp, sp, #8
   e3a02000  mov     r2, #0
   e24b3010  sub     r3, fp, #16
   ebffffc5  bl      c0176ab8 <__radix_tree_lookup>
   e24bd00c  sub     sp, fp, #12		<--- sp moved up
   e3500000  cmp     r0, #0
   151b0010  ldrne   r0, [fp, #-16]		<--- load from under sp 
   e89da800  ldm     sp, {fp, sp, pc}

Please check your compiler to make sure it's not the same problem.

WARNING: multiple messages have this Message-ID (diff)
From: rabin@rab.in (Rabin Vincent)
To: linux-arm-kernel@lists.infradead.org
Subject: RCU bug with v3.17-rc3 ?
Date: Thu, 9 Oct 2014 22:41:01 +0200	[thread overview]
Message-ID: <20141009204101.GA25955@debian> (raw)
In-Reply-To: <20141009162656.GE16002@saruman>

On Thu, Oct 09, 2014 at 11:26:56AM -0500, Felipe Balbi wrote:
> alright, it's pretty deterministic however. Always on the same test, no
> matter which USB controller, no matter if backing store is RAM or MMC.
> 
> Those two undefined instructions on the disassembly caught my attention,
> perhaps I'm facing a GCC bug ?

The undefined instructions are just ARM's BUG() implementation.

But did you see the question I asked you yesterday in your other thread?
http://www.spinics.net/lists/arm-kernel/msg368634.html

Here it is again:

  What GCC version are you using?
  
  4.8.1 and 4.8.2 are known to miscompile the ARM kernel and these
  find_get_entry() crashes with 0xffffffff involved smell a lot like the
  earlier reports from kernels build with those compilers:
  
  https://lkml.org/lkml/2014/6/25/456
  https://lkml.org/lkml/2014/6/30/375
  https://lkml.org/lkml/2014/6/30/660
  https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58854
  https://lkml.org/lkml/2014/5/9/330

Also, I didn't see any public email making a definitive link between GCC
PR 58854 that Nathan pointed out in https://lkml.org/lkml/2014/6/30/660
and the earlier find_get_entry() crashes, but I just built GCC 4.8.1 and
an ARM kernel with that, and the GCC bug is clearly seen in
radix_tree_lookup_slot() which returns the pointer which
find_get_entry() is dereferencing:

  <radix_tree_lookup_slot>:
   e1a0c00d  mov     ip, sp
   e92dd800  push    {fp, ip, lr, pc}
   e24cb004  sub     fp, ip, #4
   e24dd008  sub     sp, sp, #8
   e3a02000  mov     r2, #0
   e24b3010  sub     r3, fp, #16
   ebffffc5  bl      c0176ab8 <__radix_tree_lookup>
   e24bd00c  sub     sp, fp, #12		<--- sp moved up
   e3500000  cmp     r0, #0
   151b0010  ldrne   r0, [fp, #-16]		<--- load from under sp 
   e89da800  ldm     sp, {fp, sp, pc}

Please check your compiler to make sure it's not the same problem.

  parent reply	other threads:[~2014-10-09 20:41 UTC|newest]

Thread overview: 83+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-04 18:40 RCU bug with v3.17-rc3 ? Felipe Balbi
2014-09-04 19:16 ` Paul E. McKenney
2014-09-04 19:25   ` Felipe Balbi
2014-09-04 20:04     ` Felipe Balbi
2014-09-05 21:32       ` Paul E. McKenney
2014-10-08 17:13         ` Felipe Balbi
2014-10-08 17:13           ` Felipe Balbi
2014-10-08 17:13           ` Felipe Balbi
2014-10-08 17:57           ` Felipe Balbi
2014-10-08 17:57             ` Felipe Balbi
2014-10-08 17:57             ` Felipe Balbi
2014-10-08 21:29             ` Felipe Balbi
2014-10-08 21:29               ` Felipe Balbi
2014-10-08 21:29               ` Felipe Balbi
2014-10-09 16:01               ` Johannes Weiner
2014-10-09 16:01                 ` Johannes Weiner
     [not found]                 ` <20141009160138.GA2396-druUgvl0LCNAfugRpC6u6w@public.gmane.org>
2014-10-09 16:26                   ` Felipe Balbi
2014-10-09 16:26                     ` Felipe Balbi
2014-10-09 16:26                     ` Felipe Balbi
2014-10-09 20:35                     ` Felipe Balbi
2014-10-09 20:35                       ` Felipe Balbi
2014-10-09 20:35                       ` Felipe Balbi
2014-10-09 20:41                     ` Rabin Vincent [this message]
2014-10-09 20:41                       ` Rabin Vincent
2014-10-09 20:46                       ` Felipe Balbi
2014-10-09 20:46                         ` Felipe Balbi
2014-10-09 20:46                         ` Felipe Balbi
2014-10-09 21:07                         ` Felipe Balbi
2014-10-09 21:07                           ` Felipe Balbi
2014-10-09 21:07                           ` Felipe Balbi
2014-10-10 13:57                           ` Felipe Balbi
2014-10-10 13:57                             ` Felipe Balbi
2014-10-10 13:57                             ` Felipe Balbi
2014-10-10 16:25                             ` Russell King - ARM Linux
2014-10-10 16:25                               ` Russell King - ARM Linux
     [not found]                               ` <20141010162531.GL12379-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2014-10-11  1:44                                 ` Nathan Lynch
2014-10-11  1:44                                   ` Nathan Lynch
2014-10-11  1:44                                   ` Nathan Lynch
2014-10-11  2:40                                   ` Peter Hurley
2014-10-11  2:40                                     ` Peter Hurley
2014-10-11  3:54                                   ` Peter Chen
2014-10-11  3:54                                     ` Peter Chen
2014-10-11  3:54                                     ` Peter Chen
2014-10-11 14:16                                     ` Russell King - ARM Linux
2014-10-11 14:16                                       ` Russell King - ARM Linux
2014-10-11 14:16                                       ` Russell King - ARM Linux
2014-10-11 14:51                                       ` Otavio Salvador
2014-10-11 14:51                                         ` Otavio Salvador
2014-10-11 18:15                                         ` Peter Hurley
2014-10-11 18:15                                           ` Peter Hurley
     [not found]                                   ` <54388B81.5020306-nmGgyN9QBj3QT0dZR+AlfA@public.gmane.org>
2014-10-11 14:14                                     ` Russell King - ARM Linux
2014-10-11 14:14                                       ` Russell King - ARM Linux
2014-10-11 14:14                                       ` Russell King - ARM Linux
2014-10-11 19:27                                   ` Nathan Lynch
2014-10-11 19:27                                     ` Nathan Lynch
2014-10-11 19:27                                     ` Nathan Lynch
2014-10-13  9:11                                   ` David Laight
2014-10-13  9:11                                     ` David Laight
2014-10-13 11:43                                     ` Russell King - ARM Linux
2014-10-13 11:43                                       ` Russell King - ARM Linux
2014-10-14  2:06                                       ` Greg KH
2014-10-14  2:06                                         ` Greg KH
2014-10-14 10:27                                         ` Peter Hurley
2014-10-14 10:27                                           ` Peter Hurley
     [not found]                                         ` <20141014020640.GB25433-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2014-10-15 21:23                                           ` Russell King - ARM Linux
2014-10-15 21:23                                             ` Russell King - ARM Linux
2014-10-15 21:23                                             ` Russell King - ARM Linux
     [not found]                                             ` <20141015212310.GP12379-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2014-10-15 21:25                                               ` Russell King - ARM Linux
2014-10-15 21:25                                                 ` Russell King - ARM Linux
2014-10-15 21:25                                                 ` Russell King - ARM Linux
2014-10-19  9:54                                                 ` Russell King - ARM Linux
2014-10-19  9:54                                                   ` Russell King - ARM Linux
2014-10-19 15:28                                                   ` Felipe Balbi
2014-10-19 15:28                                                     ` Felipe Balbi
2014-10-19 20:48                                                     ` Olof Johansson
2014-10-19 20:48                                                       ` Olof Johansson
2014-10-19 20:48                                                       ` Olof Johansson
2014-10-09 21:47                       ` Aaro Koskinen
2014-10-09 21:47                         ` Aaro Koskinen
2014-10-10 16:18                         ` Russell King - ARM Linux
2014-10-10 16:18                           ` Russell King - ARM Linux
2014-10-10 20:52                           ` Aaro Koskinen
2014-10-10 20:52                             ` Aaro Koskinen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141009204101.GA25955@debian \
    --to=rabin@rab.in \
    --cc=akpm@linux-foundation.org \
    --cc=balbi@ti.com \
    --cc=hannes@cmpxchg.org \
    --cc=josh@joshtriplett.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=paulmck@linux.vnet.ibm.com \
    --cc=riel@redhat.com \
    --cc=sasha.levin@oracle.com \
    --cc=stern@rowland.harvard.edu \
    --cc=tony@atomide.com \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.