Project

General

Profile

Bug #1789

Boot failure on ALIX during LED registration

Added by Carlo Landmeter about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
High
Assignee:
Category:
Boot sequence
Target version:
Start date:
04/17/2013
Due date:
% Done:

100%

Estimated time:
Affected versions:
Security IDs:

Description

   OpenRC 0.11.8.f045407 is starting up Linux 3.8.7-0-grsec (i586)

 * /proc is already mounted
 * Mounting /run ... * /run/openrc: creating directory
 * /run/lock: creating directory
 * /run/lock: correcting owner
 * Caching service dependencies ... [ ok ]
 * Mounting security filesystem ... [ ok ]
 * Mounting debug filesystem ... [ ok ]
 * Mounting cgroup filesystem ... [ ok ]
 * Starting busybox mdev ... [ ok ]
 * Mounting modloop /media/sda1/boot/grsec.modloop.squashfs ... [ ok ]
 * Loading hardware drivers ...[   15.709955] general protection fault: 0000 [#1] SMP
[   15.712287] Modules linked in: leds_gpio(+) via_rhine mii cs5535_mfd mfd_core geode_rng rng_core geode_aes isofs nls_utf8 nls_cp437 vfat fat pata_acpi pata_cs5536 pata_amd ata_generic libata ehci_pci ehci_hcd ohci_hcd usbcore usb_common sd_mod scsi_mod squashfs loop
[   15.712287] Pid: 782, comm: modprobe Not tainted 3.8.7-0-grsec #1-Alpine
[   15.712287] EIP: 0060:[<c1141043>] EFLAGS: 00010212 CPU: 0
[   15.712287] EIP is at __gpio_cansleep+0xd/0x14
[   15.712287] EAX: 00000000 EBX: ce3c2818 ECX: c1379bf0 EDX: 00000000
[   15.712287] ESI: c142f7a4 EDI: c142f770 EBP: cdd67ddc ESP: cdd67dbc
[   15.712287]  DS: 0068 ES: 0068 FS: 00d8 GS: 007b SS: 0068
[   15.712287] CR0: 8005003b CR2: aaa409b0 CR3: 0dd16000 CR4: 00000090
[   15.712287] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[   15.712287] DR6: ffff0ff0 DR7: 00000400
[   15.712287] Process modprobe (pid: 782, ti=ce6d6a90 task=ce6d6700 task.ti=ce6d6a90)
[   15.712287] Stack:
[   15.712287]  d0aa91cb 00000000 c142f660 ce3c2814 00000000 c142f660 c142f654 d0aa7014
[   15.712287]  cdd67df0 c11a5efd c142f660 d0aa7014 d0aa7014 cdd67e04 c11a4bf2 c142f660
[   15.712287]  d0aa7014 c142f694 cdd67e18 c11a4d2b cdd67e20 d0aa7014 00000000 cdd67e34
[   15.712287] Call Trace:
[   15.712287]  [<d0aa91cb>] ? gpio_led_probe+0xba/0x203 [leds_gpio]
[   15.712287]  [<c11a5efd>] platform_drv_probe+0x26/0x48
[   15.712287]  [<c11a4bf2>] driver_probe_device+0x80/0x172
[   15.712287]  [<c11a4d2b>] __driver_attach+0x47/0x63
[   15.712287]  [<c11a38db>] bus_for_each_dev+0x3c/0x66
[   15.712287]  [<c11a4899>] driver_attach+0x14/0x16
[   15.712287]  [<c11a4ce4>] ? driver_probe_device+0x172/0x172
[   15.712287]  [<c11a4577>] bus_add_driver+0xbd/0x1bc
[   15.712287]  [<d0aab000>] ? 0xd0aaafff
[   15.712287]  [<d0aab000>] ? 0xd0aaafff
[   15.712287]  [<c11a51a0>] driver_register+0x74/0xec
[   15.712287]  [<c12784c8>] ? notifier_call_chain+0x25/0x46
[   15.712287]  [<d0aab000>] ? 0xd0aaafff
[   15.712287]  [<c11a5a8c>] platform_driver_register+0x38/0x3a
[   15.712287]  [<d0aab00d>] gpio_led_driver_init+0xd/0x5b5 [leds_gpio]
[   15.712287]  [<c1001173>] do_one_initcall+0x6a/0xff
[   15.712287]  [<c1063d30>] load_module+0x15b2/0x18de
[   15.712287]  [<c109f731>] ? insert_vmalloc_vmlist+0x14/0x52
[   15.712287]  [<c10a0eee>] ? __vmalloc_node_range+0x13e/0x15f
[   15.712287]  [<c106416f>] sys_init_module+0x113/0x129
[   15.712287]  [<c12758cf>] syscall_call+0x7/0xb
[   15.712287] Code: 00 5c 50 c1 75 14 8b 82 04 5c 50 c1 a8 01 74 0a 8b 8a 08 5c 50 c1 eb 02 31 c9 89 c8 5d c3 6b c0 0c 55 89 e5 5d 8b 80 00 5c 50 c1 <8a> 40 40 83 e0 01 c3 6b d0 0c 55 89 e5 53 8b 8a 00 5c 50 c1 8b
[   15.712287] EIP: [<c1141043>] __gpio_cansleep+0xd/0x14 SS:ESP 0068:cdd67dbc
[   15.714343] ---[ end trace d6fdd52620ab8376 ]---
[   16.491213] cs5535-gpio cs5535-gpio: reserved resource region [io  0x6100-0x61ff]
[   16.604968] cs5535-mfgpt cs5535-mfgpt: reserved resource region [io  0x6200-0x623f]
[   16.606766] cs5535-mfgpt cs5535-mfgpt: 8 MFGPT timers available

Associated revisions

Revision 38b0da64 (diff)
Added by Natanael Copa about 6 years ago

main/linux-grsec: upgrade to 2.9.1-3.9.2-201305162327 and fix boot on alix

fixes #1789

History

#1 Updated by Natanael Copa about 6 years ago

can you try linux-vanilla?

#2 Updated by William Pitcock about 6 years ago

it is jump-to-nil. i suspect vanilla is also affected in the same way, but do not have an ALIX board to test with.

#3 Updated by Carlo Landmeter about 6 years ago

It's currently running in production. So I'm not able to test it.
On Apr 24, 2013 8:06 PM, wrote:

Issue #1789 has been updated by William Pitcock.

it is jump-to-nil. i suspect vanilla is also affected in the same way, but
do not have an ALIX board to test with.
------------------------------
Bug #1789: Latest edge fails to boot on Alix

- Author: Carlo Landmeter
- Status: New
- Priority: Normal
- Assignee: Natanael Copa
- Category: Boot sequence
- Target version:
- Affected versions:

OpenRC 0.11.8.f045407 is starting up Linux 3.8.7-0-grsec (i586)

  • /proc is already mounted
  • Mounting /run ... * /run/openrc: creating directory
  • /run/lock: creating directory
  • /run/lock: correcting owner
  • Caching service dependencies ... [ ok ]
  • Mounting security filesystem ... [ ok ]
  • Mounting debug filesystem ... [ ok ]
  • Mounting cgroup filesystem ... [ ok ]
  • Starting busybox mdev ... [ ok ]
  • Mounting modloop /media/sda1/boot/grsec.modloop.squashfs ... [ ok ]
  • Loading hardware drivers ...[ 15.709955] general protection fault: 0000 [#1] SMP
    [ 15.712287] Modules linked in: leds_gpio(+) via_rhine mii cs5535_mfd mfd_core geode_rng rng_core geode_aes isofs nls_utf8 nls_cp437 vfat fat pata_acpi pata_cs5536 pata_amd ata_generic libata ehci_pci ehci_hcd ohci_hcd usbcore usb_common sd_mod scsi_mod squashfs loop
    [ 15.712287] Pid: 782, comm: modprobe Not tainted 3.8.7-0-grsec #1-Alpine
    [ 15.712287] EIP: 0060:[] EFLAGS: 00010212 CPU: 0
    [ 15.712287] EIP is at __gpio_cansleep+0xd/0x14
    [ 15.712287] EAX: 00000000 EBX: ce3c2818 ECX: c1379bf0 EDX: 00000000
    [ 15.712287] ESI: c142f7a4 EDI: c142f770 EBP: cdd67ddc ESP: cdd67dbc
    [ 15.712287] DS: 0068 ES: 0068 FS: 00d8 GS: 007b SS: 0068
    [ 15.712287] CR0: 8005003b CR2: aaa409b0 CR3: 0dd16000 CR4: 00000090
    [ 15.712287] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
    [ 15.712287] DR6: ffff0ff0 DR7: 00000400
    [ 15.712287] Process modprobe (pid: 782, ti=ce6d6a90 task=ce6d6700 task.ti=ce6d6a90)
    [ 15.712287] Stack:
    [ 15.712287] d0aa91cb 00000000 c142f660 ce3c2814 00000000 c142f660 c142f654 d0aa7014
    [ 15.712287] cdd67df0 c11a5efd c142f660 d0aa7014 d0aa7014 cdd67e04 c11a4bf2 c142f660
    [ 15.712287] d0aa7014 c142f694 cdd67e18 c11a4d2b cdd67e20 d0aa7014 00000000 cdd67e34
    [ 15.712287] Call Trace:
    [ 15.712287] [] ? gpio_led_probe+0xba/0x203 [leds_gpio]
    [ 15.712287] [] platform_drv_probe+0x26/0x48
    [ 15.712287] [] driver_probe_device+0x80/0x172
    [ 15.712287] [] __driver_attach+0x47/0x63
    [ 15.712287] [] bus_for_each_dev+0x3c/0x66
    [ 15.712287] [] driver_attach+0x14/0x16
    [ 15.712287] [] ? driver_probe_device+0x172/0x172
    [ 15.712287] [] bus_add_driver+0xbd/0x1bc
    [ 15.712287] [] ? 0xd0aaafff
    [ 15.712287] [] ? 0xd0aaafff
    [ 15.712287] [] driver_register+0x74/0xec
    [ 15.712287] [] ? notifier_call_chain+0x25/0x46
    [ 15.712287] [] ? 0xd0aaafff
    [ 15.712287] [] platform_driver_register+0x38/0x3a
    [ 15.712287] [] gpio_led_driver_init+0xd/0x5b5 [leds_gpio]
    [ 15.712287] [] do_one_initcall+0x6a/0xff
    [ 15.712287] [] load_module+0x15b2/0x18de
    [ 15.712287] [] ? insert_vmalloc_vmlist+0x14/0x52
    [ 15.712287] [] ? __vmalloc_node_range+0x13e/0x15f
    [ 15.712287] [] sys_init_module+0x113/0x129
    [ 15.712287] [] syscall_call+0x7/0xb
    [ 15.712287] Code: 00 5c 50 c1 75 14 8b 82 04 5c 50 c1 a8 01 74 0a 8b 8a 08 5c 50 c1 eb 02 31 c9 89 c8 5d c3 6b c0 0c 55 89 e5 5d 8b 80 00 5c 50 c1 40 40 83 e0 01 c3 6b d0 0c 55 89 e5 53 8b 8a 00 5c 50 c1 8b
    [ 15.712287] EIP: [] __gpio_cansleep+0xd/0x14 SS:ESP 0068:cdd67dbc
    [ 15.714343] ---[ end trace d6fdd52620ab8376 ]---
    [ 16.491213] cs5535-gpio cs5535-gpio: reserved resource region [io 0x6100-0x61ff]
    [ 16.604968] cs5535-mfgpt cs5535-mfgpt: reserved resource region [io 0x6200-0x623f]
    [ 16.606766] cs5535-mfgpt cs5535-mfgpt: 8 MFGPT timers available

You have received this notification because you have either subscribed to
it, or are involved in it.
To change your notification preferences, please click here:
http://bugs.alpinelinux.org/my/account

#4 Updated by Timo Teräs about 6 years ago

Seems upstream bug related to GPIO changes.

Booting to single mode, loading the module gpio-cs5535.ko early during init, and resuming the boot, makes things work ok.

Sounds like kernel does not handle if the leds-gpio and gpio-cs5535 are loaded in "wrong order".

#5 Updated by Timo Teräs about 6 years ago

  • Subject changed from Latest edge fails to boot on Alix to Boot failure on ALIX during LED registration

#6 Updated by Natanael Copa about 6 years ago

  • Priority changed from Normal to High
  • Target version set to Alpine 2.6.0

we want fix this for v2.6

#7 Updated by Timo Teräs about 6 years ago

Kernel bug pinpointed and patch sent for upstream with detailed analysis.

See: http://marc.info/?l=linux-kernel&m=136877686718151&w=2

#8 Updated by Natanael Copa about 6 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

#9 Updated by Natanael Copa about 6 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF