Skip to content

Repeatable kernel crash in #737 #859

Closed

Description

@radford-for-smpte

I have a node.js app that repeatable causes the following kernel error:

pi@pi ~ $ uname -a
Linux pi 3.12.36+ #737 PREEMPT Wed Jan 14 19:40:07 GMT 2015 armv6l GNU/Linux

Feb 27 19:33:22 pi kernel: [169472.321768] Modules linked in: snd_bcm2835 snd_pcm snd_page_alloc snd_seq snd_seq_device snd_timer snd pl2303 usbserial leds_gpio led_class spi_bcm2708
Feb 27 19:33:22 pi kernel: [169472.339986] CPU: 0 PID: 2472 Comm: node Not tainted 3.12.36+ #737
Feb 27 19:33:22 pi kernel: [169472.347687] task: d6178c80 ti: d61ee000 task.ti: d61ee000
Feb 27 19:33:22 pi kernel: [169472.354723] PC is at vfp_save_state+0x0/0x28
Feb 27 19:33:22 pi kernel: [169472.360637] LR is at vfp_sync_hwstate+0x70/0x7c
Feb 27 19:33:22 pi kernel: [169472.366797] pc : [<c00099c4>]    lr : [<c0009588>]    psr: 60000013
Feb 27 19:33:22 pi kernel: [169472.366797] sp : d61efeb0  ip : 00000018  fp : beb11de0
Feb 27 19:33:22 pi kernel: [169472.381537] r10: 01771044  r9 : d6179028  r8 : 00000000
Feb 27 19:33:22 pi kernel: [169472.388375] r7 : d61effb0  r6 : beb11cd0  r5 : 80000780  r4 : d61ee030
Feb 27 19:33:22 pi kernel: [169472.396549] r3 : d61ee0f8  r2 : c062ce60  r1 : c0000780  r0 : d61ee0f8
Feb 27 19:33:22 pi kernel: [169472.404701] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
Feb 27 19:33:22 pi kernel: [169472.414917] Control: 00c5387d  Table: 16140008  DAC: 00000015
Feb 27 19:33:22 pi kernel: [169472.563714] [<c00099c4>] (vfp_save_state+0x0/0x28) from [<c0009588>] (vfp_sync_hwstate+0x70/0x7c)
Feb 27 19:33:22 pi kernel: [169472.576493] [<c0009588>] (vfp_sync_hwstate+0x70/0x7c) from [<c0009794>] (vfp_preserve_user_clear_hwstate+0x20/0x8c)
Feb 27 19:33:22 pi kernel: [169472.590885] [<c0009794>] (vfp_preserve_user_clear_hwstate+0x20/0x8c) from [<c0010a8c>] (setup_sigframe+0x190/0x1a0)
Feb 27 19:33:22 pi kernel: [169472.605262] [<c0010a8c>] (setup_sigframe+0x190/0x1a0) from [<c0010ee8>] (do_signal+0x2e8/0x440)
Feb 27 19:33:22 pi kernel: [169472.617874] [<c0010ee8>] (do_signal+0x2e8/0x440) from [<c00111d8>] (do_work_pending+0xa4/0xb4)
Feb 27 19:33:22 pi kernel: [169472.630384] [<c00111d8>] (do_work_pending+0xa4/0xb4) from [<c000df00>] (work_pending+0xc/0x20)
Feb 27 19:33:23 pi kernel: [169472.661933] ---[ end trace ca4423d502cf7049 ]---
Feb 27 19:33:23 pi kernel: [169472.675291] note: node[2472] exited with preempt_count 2
Feb 27 19:33:23 pi kernel: [169472.705002] Modules linked in: snd_bcm2835 snd_pcm snd_page_alloc snd_seq snd_seq_device snd_timer snd pl2303 usbserial leds_gpio led_class spi_bcm2708
Feb 27 19:33:23 pi kernel: [169472.748913] CPU: 0 PID: 2472 Comm: node Tainted: G      D      3.12.36+ #737
Feb 27 19:33:23 pi kernel: [169472.776293] [<c00143d4>] (unwind_backtrace+0x0/0xec) from [<c00116b8>] (show_stack+0x10/0x14)
Feb 27 19:33:23 pi kernel: [169472.805157] [<c00116b8>] (show_stack+0x10/0x14) from [<c04459b8>] (__schedule_bug+0x48/0x64)
Feb 27 19:33:23 pi kernel: [169472.833943] [<c04459b8>] (__schedule_bug+0x48/0x64) from [<c044aebc>] (__schedule+0x518/0x5ac)
Feb 27 19:33:23 pi kernel: [169472.862904] [<c044aebc>] (__schedule+0x518/0x5ac) from [<c0045758>] (__cond_resched+0x24/0x34)
Feb 27 19:33:23 pi kernel: [169472.891872] [<c0045758>] (__cond_resched+0x24/0x34) from [<c044b6c4>] (_cond_resched+0x3c/0x44)
Feb 27 19:33:23 pi kernel: [169472.920995] [<c044b6c4>] (_cond_resched+0x3c/0x44) from [<c00c3004>] (__get_user_pages.part.91+0xa0/0x408)
Feb 27 19:33:23 pi kernel: [169472.950871] [<c00c3004>] (__get_user_pages.part.91+0xa0/0x408) from [<c00b8214>] (get_user_pages_fast+0x60/0x78)
Feb 27 19:33:23 pi kernel: [169472.981397] [<c00b8214>] (get_user_pages_fast+0x60/0x78) from [<c0065af8>] (get_futex_key+0xec/0x244)
Feb 27 19:33:23 pi kernel: [169473.010922] [<c0065af8>] (get_futex_key+0xec/0x244) from [<c0065d00>] (futex_wake+0x30/0x160)
Feb 27 19:33:23 pi kernel: [169473.039707] [<c0065d00>] (futex_wake+0x30/0x160) from [<c0067e0c>] (do_futex+0x120/0xb78)
Feb 27 19:33:23 pi kernel: [169473.068342] [<c0067e0c>] (do_futex+0x120/0xb78) from [<c00688e4>] (SyS_futex+0x80/0x160)
Feb 27 19:33:23 pi kernel: [169473.097280] [<c00688e4>] (SyS_futex+0x80/0x160) from [<c001d328>] (mm_release+0xfc/0x138)
Feb 27 19:33:23 pi kernel: [169473.126477] [<c001d328>] (mm_release+0xfc/0x138) from [<c0021774>] (do_exit+0x110/0x970)
Feb 27 19:33:23 pi kernel: [169473.155673] [<c0021774>] (do_exit+0x110/0x970) from [<c00119f0>] (die+0x334/0x390)
Feb 27 19:33:23 pi kernel: [169473.184507] [<c00119f0>] (die+0x334/0x390) from [<c0008334>] (do_undefinstr+0x1b0/0x1dc)
Feb 27 19:33:23 pi kernel: [169473.213890] [<c0008334>] (do_undefinstr+0x1b0/0x1dc) from [<c044d0ec>] (__und_svc_finish+0x0/0x34)
Feb 27 19:33:23 pi kernel: [169473.244100] Exception stack(0xd61efe28 to 0xd61efe70)
Feb 27 19:33:23 pi kernel: [169473.259851] fe20:                   d61ee0f8 c0000780 c062ce60 d61ee0f8 d61ee030 80000780
Feb 27 19:33:23 pi kernel: [169473.288918] fe40: beb11cd0 d61effb0 00000000 d6179028 01771044 beb11de0 00000018 d61efeb0
Feb 27 19:33:23 pi kernel: [169473.317875] fe60: c0009588 c00099c4 60000013 ffffffff
Feb 27 19:33:23 pi kernel: [169473.333576] [<c044d0ec>] (__und_svc_finish+0x0/0x34) from [<c00099c4>] (vfp_save_state+0x0/0x28)
Feb 27 19:33:23 pi kernel: [169473.363003] [<c00099c4>] (vfp_save_state+0x0/0x28) from [<c0009588>] (vfp_sync_hwstate+0x70/0x7c)
Feb 27 19:33:23 pi kernel: [169473.392348] [<c0009588>] (vfp_sync_hwstate+0x70/0x7c) from [<c0009794>] (vfp_preserve_user_clear_hwstate+0x20/0x8c)
Feb 27 19:33:23 pi kernel: [169473.423359] [<c0009794>] (vfp_preserve_user_clear_hwstate+0x20/0x8c) from [<c0010a8c>] (setup_sigframe+0x190/0x1a0)
Feb 27 19:33:23 pi kernel: [169473.454368] [<c0010a8c>] (setup_sigframe+0x190/0x1a0) from [<c0010ee8>] (do_signal+0x2e8/0x440)
Feb 27 19:33:23 pi kernel: [169473.483620] [<c0010ee8>] (do_signal+0x2e8/0x440) from [<c00111d8>] (do_work_pending+0xa4/0xb4)
Feb 27 19:33:23 pi kernel: [169473.512866] [<c00111d8>] (do_work_pending+0xa4/0xb4) from [<c000df00>] (work_pending+0xc/0x20)

Happy to help debug this more, but I'm not sure exactly how. As I said, it's very repeatable.

Activity

  1. popcornmix commented on Feb 28, 2015

    @popcornmix
    Collaborator

    3.12 kernel is no longer supported. Can you apt-get upgrade to get current 3.18 kernel and confirm if the issue is still present?

  2. radford-for-smpte commented on Feb 28, 2015

    @radford-for-smpte
    Author

    OK thanks, upgraded. I'll update if the problem persists...

  3. radford-for-smpte commented on Mar 2, 2015

    @radford-for-smpte
    Author

    OK problem still occurs:

    [44897.980959] BUG: unsupported FP instruction in kernel mode
    [44897.988358] Internal error: Oops - undefined instruction: 0 [#1] PREEMPT ARM
    [44897.998862] Modules linked in: snd_bcm2835 snd_pcm snd_seq snd_seq_device snd_timer snd pl2303 usbserial spi_bcm2708 uio_pdrv_genirq uio
    [44898.014916] CPU: 0 PID: 2415 Comm: node Not tainted 3.18.7+ #755
    [44898.022729] task: d6321b00 ti: d62ec000 task.ti: d62ec000
    [44898.029912] PC is at vfp_save_state+0x0/0x28
    [44898.035972] LR is at vfp_sync_hwstate+0x7c/0x88
    [44898.042276] pc : [<c0009d20>]    lr : [<c00098b0>]    psr: 60000113
    [44898.042276] sp : d62ede70  ip : d62ede88  fp : d62ede84
    [44898.057358] r10: d6321f58  r9 : d62ec000  r8 : 00000000
    [44898.064377] r7 : d62edec0  r6 : bea1acd8  r5 : 80000780  r4 : d62ec030
    [44898.072714] r3 : d62ec0f8  r2 : c0855904  r1 : c0000780  r0 : d62ec0f8
    [44898.081022] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
    [44898.091720] Control: 00c5387d  Table: 172e8008  DAC: 00000015
    [44898.099297] Process node (pid: 2415, stack limit = 0xd62ec1b0)
    [44898.106934] Stack: (0xd62ede70 to 0xd62ee000)
    [44898.113119] de60:                                     bea1abd0 d62ec000 d62edea4 d62ede88
    [44898.124980] de80: c0009ad4 c0009840 00000120 00000000 bea1aae0 00000000 d62edebc d62edea8
    [44898.136965] dea0: c0011874 c0009ab0 d62edfb0 bea1aae0 d62edf84 d62edec0 c0011cb8 c00116e0
    [44898.148962] dec0: 0028fa94 04000000 b6cbcb20 7ffbfeff fffffffe 00000011 00000000 00040001
    [44898.160958] dee0: 00004d1e 000003e8 00000000 00000001 00000003 c0556c74 a0317588 000028d5
    [44898.173013] df00: d62edf5c d62edf10 c00266a8 c0026234 00010000 c0811200 00000001 00400000
    [44898.185199] df20: c0823388 60000193 00000000 00000000 d62edf5c d62edf40 c0069544 c00c3f98
    [44898.197503] df40: c08104c0 d62ec000 c0837108 d62ec008 d62ec000 00000011 d62edfb0 d62ec008
    [44898.209942] df60: d62ec000 00000000 d62edfb0 00000000 d62ec000 01d40044 d62edfac d62edf88
    [44898.222522] df80: c0011fcc c0011a04 00c5387d 00000001 0030db24 60000010 f200b200 00c5387d
    [44898.235135] dfa0: 00000000 d62edfb0 c000e918 c0011f18 01d40040 00000000 01d40038 330080a8
    [44898.247828] dfc0: 00000002 003eedd4 bea1adec 4f6080c9 4610b3e9 4c6096c4 01d40044 bea1ade0
    [44898.260625] dfe0: bea1add4 bea1add0 39d0a35c 0030db24 60000010 ffffffff 00000000 00000000
    [44898.273491] [<c0009d20>] (vfp_save_state) from [<c0009ad4>] (vfp_preserve_user_clear_hwstate+0x30/0x9c)
    [44898.287607] [<c0009ad4>] (vfp_preserve_user_clear_hwstate) from [<c0011874>] (setup_sigframe+0x1a0/0x1b0)
    [44898.301888] [<c0011874>] (setup_sigframe) from [<c0011cb8>] (do_signal+0x2c0/0x400)
    [44898.314226] [<c0011cb8>] (do_signal) from [<c0011fcc>] (do_work_pending+0xc0/0x110)
    [44898.326552] [<c0011fcc>] (do_work_pending) from [<c000e918>] (work_pending+0xc/0x20)
    [44898.338944] Code: e12fff1e e1a0200d e1a0e009 eafffe76 (eca00b20)
    [44898.363805] ---[ end trace de1f09b100f292e5 ]---
    [44898.377259] note: node[2415] exited with preempt_count 2
    
  4. popcornmix commented on Mar 2, 2015

    @popcornmix
    Collaborator

    Can you provide a tar file containing something that can be run on raspbian to produce this error?

  5. popcornmix commented on Mar 2, 2015

    @popcornmix
    Collaborator

    Your problem looks similar to:
    #600
    Interestingly that appeared to get fixed by an update to BOINC:
    http://boinc.berkeley.edu/dev/forum_thread.php?id=9222
    not by a kernel change, so I suspect the bug is in your user code.

  6. Ferroin commented on Mar 4, 2015

    @Ferroin
    Contributor

    If you are hitting an illegal instruction in kernel mode, it's not a userspace issue, it's a kernel bug. The only reason that it doesn't happen with the updated version of BOINC is that it was modified to not hit that codepath in the kernel, thus avoiding triggering the bug.

  7. popcornmix commented on Mar 4, 2015

    @popcornmix
    Collaborator

    @Ferroin Do you know what the exact change that was made to BOINC? It might help understand the issue.

  8. Ferroin commented on Mar 4, 2015

    @Ferroin
    Contributor

    No, but It shouldn't take me long to figure out, I use a local build of the BOINC client on all my systems, so I have a local copy of the upstream repository anyway. I'll see if I can figure it out and hopefully be back with an answer shortly.

  9. Ferroin commented on Mar 4, 2015

    @Ferroin
    Contributor

    Hmm, I'm not seeing any tag for the release hey are saying is working, despite having just updated my local copy today.

    In theory, it shouldn't be too hard to find out what is causing this, as there isn't a huge ammount of stuff in the kernel that actually uses VFP. Based on the backtraces it looks like something in the kernel's signal handling code is what's having the issues, although why that would be I have no idea. The actual stacktrace appears to be almost identical to the one seen in #600, and I believe the BOINC client changed how it's using signals to manage individual apps between 7.2 and 7.4, so the signal handling code would make some sense as a common issue.

    It would be interesting though to see if the same thing happens on a Pi2, as arm7a has a different superset of the ISA than armv6.

  10. popcornmix commented on Mar 4, 2015

    @popcornmix
    Collaborator

    The should be no VFP code in the kernel.

  11. Ferroin commented on Mar 4, 2015

    @Ferroin
    Contributor

    In the core kernel there isn't any that uses it for floating point calculations, although there are some SIMD optimizations that use it (CryptoAPI has some modules that do this if they detect VFP support, but I don't know for certain of anywhere else that uses it). Also, some non-FP op-codes might get used during context switch when saving the FPU state, and that looks like what is causing the issue here, although why it is only triggering during the context switch for the signal handler I have no idea.

  12. P33M commented on Mar 6, 2015

    @P33M
    Contributor

    It's an undefined instruction exception around the VFP save/restore state.

    From http://lxr.free-electrons.com/source/arch/arm/vfp/vfpmodule.c#L516

    It appears that the macros are using MCR/MRC accesses to talk to VFP registers. Pi 1 is "unusual" in having a VFPv2 implementation which isn't widely used.

    While waiting on availability of the node.js implementation that causes this - perhaps a printk inside vfp_sync_hwstate() will tell us if this function is ever called without crashing?

  13. radford-for-smpte commented on Mar 6, 2015

    @radford-for-smpte
    Author

    Re sample code, it's a rather large project that among other things, polls a lot of different equipment. It'd be rather difficult to run externally. I'll see if I weed it down to a smaller utility that is more portable while still exhibiting the crash.

    Since my last post I had upgraded node to the latest v0.10.28 and I had thought the problem went away. Now after 3 days, the problem recurred:

    [327065.395401] BUG: unsupported FP instruction in kernel mode
    [327065.402939] Internal error: Oops - undefined instruction: 0 [#1] PREEMPT ARM
    [327065.413619] Modules linked in: snd_bcm2835 snd_pcm snd_seq snd_seq_device snd_timer snd pl2303 usbserial spi_bcm2708 uio_pdrv_genirq uio
    [327065.429854] CPU: 0 PID: 4453 Comm: node Not tainted 3.18.8+ #763
    [327065.437801] task: d631a880 ti: d6010000 task.ti: d6010000
    [327065.445117] PC is at vfp_save_state+0x0/0x28
    [327065.451313] LR is at vfp_sync_hwstate+0x7c/0x88
    [327065.457752] pc : [<c0009c4c>]    lr : [<c00097dc>]    psr: 60000113
    [327065.457752] sp : d6011e70  ip : d6011e88  fp : d6011e84
    [327065.473102] r10: d631acd8  r9 : d6010000  r8 : 00000000
    [327065.480260] r7 : d6011ec0  r6 : bea9ec68  r5 : 80000780  r4 : d6010030
    [327065.488732] r3 : d60100f8  r2 : c083cf44  r1 : c0000780  r0 : d60100f8
    [327065.497177] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
    [327065.507988] Control: 00c5387d  Table: 163dc008  DAC: 00000015
    [327065.515650] Process node (pid: 4453, stack limit = 0xd60101b0)
    [327065.523400] Stack: (0xd6011e70 to 0xd6012000)
    [327065.529666] 1e60:                                     bea9eb60 d6010000 d6011ea4 d6011e88
    [327065.541613] 1e80: c0009a00 c000976c 00000120 00000000 bea9ea70 00000000 d6011ebc d6011ea8
    [327065.553692] 1ea0: c00117b4 c00099dc d6011fb0 bea9ea70 d6011f84 d6011ec0 c0011bf8 c0011620
    [327065.565774] 1ec0: 00529b4c 04000000 b6c69b20 7ffbfeff fffffffe 00000011 00000000 00040001
    [327065.577862] 1ee0: 00007eea 000003e8 00000000 00000003 00000003 c05476e4 d8a878b0 00012976
    [327065.590006] 1f00: d6011f5c d6011f10 c0026250 c0025ddc 00010000 c07fac0c 00000001 00400000
    [327065.602274] 1f20: c080b520 60000193 00000000 00000000 d6011f5c d6011f40 c006742c c00c1dac
    [327065.614657] 1f40: c07f9fa0 d6010000 c081f228 d6010008 d6010000 00000011 d6011fb0 d6010008
    [327065.627183] 1f60: d6010000 00000000 d6011fb0 00000000 d6010000 01153044 d6011fac d6011f88
    [327065.639847] 1f80: c0011f0c c0011944 00c5387d 00000001 001fa8e0 60000010 f200b200 00c5387d
    [327065.652544] 1fa0: 00000000 d6011fb0 c000e858 c0011e58 01153040 00000000 01153038 229080a8
    [327065.665319] 1fc0: 00000000 01153040 006e5768 590080c9 234dab1d 455afdc4 01153044 bea9ed7c
    [327065.678202] 1fe0: bea9ed84 bea9ed60 2400a35c 001fa8e0 60000010 ffffffff 00000000 00000000
    [327065.691147] [<c0009c4c>] (vfp_save_state) from [<c0009a00>] (vfp_preserve_user_clear_hwstate+0x30/0x9c)
    [327065.705338] [<c0009a00>] (vfp_preserve_user_clear_hwstate) from [<c00117b4>] (setup_sigframe+0x1a0/0x1b0)
    [327065.719687] [<c00117b4>] (setup_sigframe) from [<c0011bf8>] (do_signal+0x2c0/0x400)
    [327065.732082] [<c0011bf8>] (do_signal) from [<c0011f0c>] (do_work_pending+0xc0/0x110)
    [327065.744478] [<c0011f0c>] (do_work_pending) from [<c000e858>] (work_pending+0xc/0x20)
    [327065.756948] Code: e12fff1e e1a0200d e1a0e009 eafffe76 (eca00b20)
    [327065.777848] ---[ end trace a6e0bc6dd3e22dcd ]---
    [327065.791353] note: node[4453] exited with preempt_count 2
    
  14. johnspackman commented on Mar 12, 2015

    @johnspackman

    We have a lot of Pis in production (70+) and this seems to crop up from time to time in recent builds; I now have a couple in my office that are doing it more frequently and one which does it every morning. The odd thing is that with the Pi which does it every day, I have replaced the SD card and the Pi itself (both brand new out of the packaging, the SD card is supplied by Raspberry themselves), leaving only the PSU, HDML cable, and the TV. The PSU is a standard PSU from RS components.

    Last night I restarted it and by 2:35am it had gone again.

    Stack trace below

    pi@player-00002:~$ uname -a
    Linux player-00002 3.12.28+ #709 PREEMPT Mon Sep 8 15:28:00 BST 2014 armv6l GNU/Linux
    
    pi@player-00002:~$ /opt/vc/bin/vcgencmd version
    Sep  8 2014 19:02:48
    Copyright (c) 2012 Broadcom
    version 3f2f2607186be72e4945cfa8edc77872dfc73195 (clean) (release)
    
    pi@player-00002:~$ node -v
    v0.10.26
    
    [Thu Mar 12 02:36:35 2015] BUG: unsupported FP instruction in kernel mode
    [Thu Mar 12 02:36:35 2015] Internal error: Oops - undefined instruction: 0 [#1] PREEMPT ARM
    [Thu Mar 12 02:36:35 2015] Modules linked in: tun snd_bcm2835 leds_gpio snd_soc_bcm2708_i2s led_class regmap_mmio snd_soc_core snd_compress regmap_i2c snd_pcm_dmaengine regmap_spi snd_pcm snd_page_alloc snd_timer snd
    [Thu Mar 12 02:36:35 2015] CPU: 0 PID: 2161 Comm: node Not tainted 3.12.28+ #709
    [Thu Mar 12 02:36:35 2015] task: d71bcb00 ti: d609c000 task.ti: d609c000
    [Thu Mar 12 02:36:35 2015] PC is at vfp_save_state+0x0/0x28
    [Thu Mar 12 02:36:35 2015] LR is at vfp_sync_hwstate+0x70/0x7c
    [Thu Mar 12 02:36:35 2015] pc : [<c00099c4>]    lr : [<c0009588>]    psr: 60000013
    [Thu Mar 12 02:36:35 2015] sp : d609deb0  ip : 00000018  fp : bec84690
    [Thu Mar 12 02:36:35 2015] r10: 02550044  r9 : d71bce90  r8 : 00000000
    [Thu Mar 12 02:36:35 2015] r7 : d609dfb0  r6 : bec84590  r5 : 80000780  r4 : d609c030
    [Thu Mar 12 02:36:35 2015] r3 : d609c0f8  r2 : c061e920  r1 : c0000780  r0 : d609c0f8
    [Thu Mar 12 02:36:35 2015] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
    [Thu Mar 12 02:36:35 2015] Control: 00c5387d  Table: 17248008  DAC: 00000015
    [Thu Mar 12 02:36:35 2015] Process node (pid: 2161, stack limit = 0xd609c1b8)
    [Thu Mar 12 02:36:35 2015] Stack: (0xd609deb0 to 0xd609e000)
    [Thu Mar 12 02:36:35 2015] dea0:                                     d609dec0 bec84488 d609c000 c0009794
    [Thu Mar 12 02:36:35 2015] dec0: 00000000 bec84398 00000000 c0010a48 5ac3c35a d609dfb0 bec84398 c0010ea4
    [Thu Mar 12 02:36:35 2015] dee0: 00529190 04000000 b6ce9f20 7ffbfeff fffffffe 00000011 00000000 00040001
    [Thu Mar 12 02:36:35 2015] df00: 00007d64 000003e8 00000000 00000000 00000000 c061fa90 c061fc90 c0011114
    [Thu Mar 12 02:36:35 2015] df20: c67429a0 00001883 00000001 00000001 00000004 c061f128 c061f120 d609c000
    [Thu Mar 12 02:36:35 2015] df40: 00000000 00000008 c061f12c c0023a8c d609c000 00000000 0000000a 0028abd1
    [Thu Mar 12 02:36:35 2015] df60: d609c010 00400000 bec84690 60000193 00000003 00000011 d609c018 d609c000
    [Thu Mar 12 02:36:35 2015] df80: 00000000 d609dfb0 00000000 d609c000 02550044 c0011194 00000000 2ae4dc40
    [Thu Mar 12 02:36:35 2015] dfa0: 60000010 f200b200 00000002 c000df00 449080a5 449080a5 449080a4 00002be4
    [Thu Mar 12 02:36:35 2015] dfc0: 449080a5 00000002 000010bf 00000002 58e241c5 b6ba8101 02550044 bec84690
    [Thu Mar 12 02:36:35 2015] dfe0: 2ae4dc00 bec84688 2ae9e9fc 2ae4dc40 60000010 ffffffff 00000000 00000000
    [Thu Mar 12 02:36:35 2015] [<c00099c4>] (vfp_save_state+0x0/0x28) from [<c0009588>] (vfp_sync_hwstate+0x70/0x7c)
    [Thu Mar 12 02:36:35 2015] [<c0009588>] (vfp_sync_hwstate+0x70/0x7c) from [<c0009794>] (vfp_preserve_user_clear_hwstate+0x20/0x8c)
    [Thu Mar 12 02:36:35 2015] [<c0009794>] (vfp_preserve_user_clear_hwstate+0x20/0x8c) from [<c0010a48>] (setup_sigframe+0x190/0x1a0)
    [Thu Mar 12 02:36:35 2015] [<c0010a48>] (setup_sigframe+0x190/0x1a0) from [<c0010ea4>] (do_signal+0x2e8/0x440)
    [Thu Mar 12 02:36:35 2015] [<c0010ea4>] (do_signal+0x2e8/0x440) from [<c0011194>] (do_work_pending+0xa4/0xb4)
    [Thu Mar 12 02:36:35 2015] [<c0011194>] (do_work_pending+0xa4/0xb4) from [<c000df00>] (work_pending+0xc/0x20)
    [Thu Mar 12 02:36:35 2015] Code: e1a0f00e e1a0200d e1a0e009 eafffe89 (eca00b20) 
    [Thu Mar 12 02:36:35 2015] ---[ end trace ac93b69b8274a1e0 ]---
    [Thu Mar 12 02:36:35 2015] note: node[2161] exited with preempt_count 2
    [Thu Mar 12 02:36:35 2015] BUG: scheduling while atomic: node/2161/0x40000003
    [Thu Mar 12 02:36:35 2015] Modules linked in: tun snd_bcm2835 leds_gpio snd_soc_bcm2708_i2s led_class regmap_mmio snd_soc_core snd_compress regmap_i2c snd_pcm_dmaengine regmap_spi snd_pcm snd_page_alloc snd_timer snd
    [Thu Mar 12 02:36:35 2015] CPU: 0 PID: 2161 Comm: node Tainted: G      D      3.12.28+ #709
    [Thu Mar 12 02:36:35 2015] [<c001444c>] (unwind_backtrace+0x0/0xec) from [<c0011730>] (show_stack+0x10/0x14)
    [Thu Mar 12 02:36:35 2015] [<c0011730>] (show_stack+0x10/0x14) from [<c043d490>] (__schedule_bug+0x48/0x64)
    [Thu Mar 12 02:36:35 2015] [<c043d490>] (__schedule_bug+0x48/0x64) from [<c0442b54>] (__schedule+0x518/0x5ac)
    [Thu Mar 12 02:36:35 2015] [<c0442b54>] (__schedule+0x518/0x5ac) from [<c004566c>] (__cond_resched+0x24/0x34)
    [Thu Mar 12 02:36:35 2015] [<c004566c>] (__cond_resched+0x24/0x34) from [<c044335c>] (_cond_resched+0x3c/0x44)
    [Thu Mar 12 02:36:35 2015] [<c044335c>] (_cond_resched+0x3c/0x44) from [<c00c2030>] (__get_user_pages.part.91+0xa0/0x408)
    [Thu Mar 12 02:36:35 2015] [<c00c2030>] (__get_user_pages.part.91+0xa0/0x408) from [<c00b754c>] (get_user_pages_fast+0x60/0x78)
    [Thu Mar 12 02:36:35 2015] [<c00b754c>] (get_user_pages_fast+0x60/0x78) from [<c00657dc>] (get_futex_key+0xec/0x244)
    [Thu Mar 12 02:36:35 2015] [<c00657dc>] (get_futex_key+0xec/0x244) from [<c00659e4>] (futex_wake+0x30/0x160)
    [Thu Mar 12 02:36:35 2015] [<c00659e4>] (futex_wake+0x30/0x160) from [<c0067abc>] (do_futex+0x120/0xb78)
    [Thu Mar 12 02:36:35 2015] [<c0067abc>] (do_futex+0x120/0xb78) from [<c0068594>] (SyS_futex+0x80/0x160)
    [Thu Mar 12 02:36:35 2015] [<c0068594>] (SyS_futex+0x80/0x160) from [<c001d2ac>] (mm_release+0xfc/0x138)
    [Thu Mar 12 02:36:35 2015] [<c001d2ac>] (mm_release+0xfc/0x138) from [<c00216e8>] (do_exit+0x110/0x970)
    [Thu Mar 12 02:36:35 2015] [<c00216e8>] (do_exit+0x110/0x970) from [<c0011a68>] (die+0x334/0x390)
    [Thu Mar 12 02:36:35 2015] [<c0011a68>] (die+0x334/0x390) from [<c0008334>] (do_undefinstr+0x1b0/0x1dc)
    [Thu Mar 12 02:36:35 2015] [<c0008334>] (do_undefinstr+0x1b0/0x1dc) from [<c0444d6c>] (__und_svc_finish+0x0/0x34)
    [Thu Mar 12 02:36:35 2015] Exception stack(0xd609de28 to 0xd609de70)
    [Thu Mar 12 02:36:35 2015] de20:                   d609c0f8 c0000780 c061e920 d609c0f8 d609c030 80000780
    [Thu Mar 12 02:36:35 2015] de40: bec84590 d609dfb0 00000000 d71bce90 02550044 bec84690 00000018 d609deb0
    [Thu Mar 12 02:36:35 2015] de60: c0009588 c00099c4 60000013 ffffffff
    [Thu Mar 12 02:36:35 2015] [<c0444d6c>] (__und_svc_finish+0x0/0x34) from [<c00099c4>] (vfp_save_state+0x0/0x28)
    [Thu Mar 12 02:36:36 2015] [<c00099c4>] (vfp_save_state+0x0/0x28) from [<c0009588>] (vfp_sync_hwstate+0x70/0x7c)
    [Thu Mar 12 02:36:36 2015] [<c0009588>] (vfp_sync_hwstate+0x70/0x7c) from [<c0009794>] (vfp_preserve_user_clear_hwstate+0x20/0x8c)
    [Thu Mar 12 02:36:36 2015] [<c0009794>] (vfp_preserve_user_clear_hwstate+0x20/0x8c) from [<c0010a48>] (setup_sigframe+0x190/0x1a0)
    [Thu Mar 12 02:36:36 2015] [<c0010a48>] (setup_sigframe+0x190/0x1a0) from [<c0010ea4>] (do_signal+0x2e8/0x440)
    [Thu Mar 12 02:36:36 2015] [<c0010ea4>] (do_signal+0x2e8/0x440) from [<c0011194>] (do_work_pending+0xa4/0xb4)
    [Thu Mar 12 02:36:36 2015] [<c0011194>] (do_work_pending+0xa4/0xb4) from [<c000df00>] (work_pending+0xc/0x20)
    
  15. P33M commented on Mar 12, 2015

    @P33M
    Contributor

    Just built from raspberrypi/linux with bcmrpi_defconfig.

    Some disassembly:

    (gdb) disassemble  vfp_sync_hwstate
    Dump of assembler code for function vfp_sync_hwstate:
       0xc0009718 <+0>:     mov     r12, sp
       0xc000971c <+4>:     push    {r4, r5, r11, r12, lr, pc}
       0xc0009720 <+8>:     sub     r11, r12, #4
       0xc0009724 <+12>:    push    {lr}            ; (str lr, [sp, #-4]!)
       0xc0009728 <+16>:    bl      0xc000eba0 <__gnu_mcount_nc>
       0xc000972c <+20>:    mov     r3, sp
       0xc0009730 <+24>:    bic     r4, r3, #8128   ; 0x1fc0
       0xc0009734 <+28>:    bic     r4, r4, #63     ; 0x3f
       0xc0009738 <+32>:    ldr     r3, [r4, #4]
       0xc000973c <+36>:    add     r3, r3, #1
       0xc0009740 <+40>:    str     r3, [r4, #4]
       0xc0009744 <+44>:    ldr     r2, [pc, #76]   ; 0xc0009798 <vfp_sync_hwstate+128>
       0xc0009748 <+48>:    add     r3, r0, #248    ; 0xf8
       0xc000974c <+52>:    ldr     r0, [r2, #4]
       0xc0009750 <+56>:    cmp     r0, r3
       0xc0009754 <+60>:    beq     0xc0009780 <vfp_sync_hwstate+104>
       0xc0009758 <+64>:    ldr     r3, [r4, #4]
       0xc000975c <+68>:    sub     r3, r3, #1
       0xc0009760 <+72>:    cmp     r3, #0
       0xc0009764 <+76>:    str     r3, [r4, #4]
       0xc0009768 <+80>:    ldmne   sp, {r4, r5, r11, sp, pc}
       0xc000976c <+84>:    ldr     r3, [r4]
       0xc0009770 <+88>:    tst     r3, #2
       0xc0009774 <+92>:    ldmeq   sp, {r4, r5, r11, sp, pc}
       0xc0009778 <+96>:    bl      0xc0537420 <preempt_schedule>
       0xc000977c <+100>:   ldm     sp, {r4, r5, r11, sp, pc}
       0xc0009780 <+104>:   vmrs    r5, fpexc
       0xc0009784 <+108>:   orr     r1, r5, #1073741824     ; 0x40000000
       0xc0009788 <+112>:   vmsr    fpexc, r1
       0xc000978c <+116>:   bl      0xc0009bf4 <vfp_save_state>
       0xc0009790 <+120>:   vmsr    fpexc, r5
       0xc0009794 <+124>:   b       0xc0009758 <vfp_sync_hwstate+64>
       0xc0009798 <+128>:   addgt   pc, r2, r4, lsl #8
    End of assembler dump.
    (gdb) disassemble  vfp_save_state
    Dump of assembler code for function vfp_save_state:
       0xc0009bf4 <+0>:     vstmia  r0!, {d0-d15}
       0xc0009bf8 <+4>:     vmrs    r2, fpscr
       0xc0009bfc <+8>:     tst     r1, #-2147483648        ; 0x80000000
       0xc0009c00 <+12>:    beq     0xc0009c14 <vfp_save_state+32>
       0xc0009c04 <+16>:    vmrs    r3, fpinst      @ Impl def
       0xc0009c08 <+20>:    tst     r1, #268435456  ; 0x10000000
       0xc0009c0c <+24>:    beq     0xc0009c14 <vfp_save_state+32>
       0xc0009c10 <+28>:    vmrs    r12, fpinst2    @ Impl def
       0xc0009c14 <+32>:    stm     r0, {r1, r2, r3, r12}
       0xc0009c18 <+36>:    bx      lr
    End of assembler dump.
    
  16. 351 remaining items

  17. added a commit that references this issue on Apr 3, 2019
  18. added a commit that references this issue on Apr 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions