[sbc_gxx] kernel BUG at include/linux/mtd/map.h:148!
On Thu, Aug 7, 2014 at 6:46 PM, Brian Norris wrote: > Hi, > > On Tue, Aug 05, 2014 at 08:08:57PM -0400, Nick Krause wrote: >> On Tue, Aug 5, 2014 at 9:59 AM, Fengguang Wu >> wrote: >> > Hello, >> > >> > This is an old BUG that still lives in linux-next. >> > >> > [4.284620] device id = 2670 >> > [4.286157] SBC-GXx flash: IO:0x258-0x259 MEM:0xdc000-0xd >> > [4.287060] [ cut here ] >> > [4.287722] kernel BUG at include/linux/mtd/map.h:148! >> > [4.288048] invalid opcode: [#1] PREEMPT SMP >> >> I am new , here and will try to trace your issue on linus's tree >> unless there is a major difference between Linus's tree and >> linux-next. >> If there is please let me known before I start tracing this. > > This is a known issue, and Fengguang has reported this before: > > http://lists.infradead.org/pipermail/linux-mtd/2014-March/053019.html > > I'm still not quite sure how to solve this one. It seems to be a > limitation of the kconfig language. > > Brian I am and banned from the lists but trying to get back on, if you want my help please let me known. I will read this bug report first but just tell me if you want some help. Cheers Nick
[sbc_gxx] kernel BUG at include/linux/mtd/map.h:148!
Hi, On Tue, Aug 05, 2014 at 08:08:57PM -0400, Nick Krause wrote: > On Tue, Aug 5, 2014 at 9:59 AM, Fengguang Wu > wrote: > > Hello, > > > > This is an old BUG that still lives in linux-next. > > > > [4.284620] device id = 2670 > > [4.286157] SBC-GXx flash: IO:0x258-0x259 MEM:0xdc000-0xd > > [4.287060] [ cut here ] > > [4.287722] kernel BUG at include/linux/mtd/map.h:148! > > [4.288048] invalid opcode: [#1] PREEMPT SMP > > I am new , here and will try to trace your issue on linus's tree > unless there is a major difference between Linus's tree and > linux-next. > If there is please let me known before I start tracing this. This is a known issue, and Fengguang has reported this before: http://lists.infradead.org/pipermail/linux-mtd/2014-March/053019.html I'm still not quite sure how to solve this one. It seems to be a limitation of the kconfig language. Brian
[sbc_gxx] kernel BUG at include/linux/mtd/map.h:148!
Hello, This is an old BUG that still lives in linux-next. [4.284620] device id = 2670 [4.286157] SBC-GXx flash: IO:0x258-0x259 MEM:0xdc000-0xd [4.287060] [ cut here ] [4.287722] kernel BUG at include/linux/mtd/map.h:148! [4.288048] invalid opcode: [#1] PREEMPT SMP [4.288048] CPU 1 [4.288048] Pid: 1, comm: swapper/0 Not tainted 3.5.0-rc4-00162-g49099c4 #17 Bochs Bochs [4.288048] RIP: 0010:[] [] mtd_do_chip_probe+0x1d/0x1f [4.288048] RSP: 0018:880011049e20 EFLAGS: 00010246 [4.288048] RAX: RBX: 82a23550 RCX: [4.288048] RDX: 880011049e20 RSI: 82a23580 RDI: 880011049e80 [4.288048] RBP: 880011049e80 R08: 0003 R09: 810d6c93 [4.288048] R10: R11: 0001 R12: 82a23eb0 [4.288048] R13: 828790ce R14: R15: [4.288048] FS: () GS:88001260() knlGS: [4.288048] CS: 0010 DS: ES: CR0: 8005003b [4.288048] CR2: CR3: 0298c000 CR4: 000406e0 [4.288048] DR0: DR1: DR2: [4.288048] DR3: DR6: 0ff0 DR7: 0400 [4.288048] Process swapper/0 (pid: 1, threadinfo 880011048000, task 88001104) [4.288048] Stack: [4.288048] [4.288048] [4.288048] [4.288048] Call Trace: [4.288048] [] cfi_probe+0x15/0x17 [4.288048] [] do_map_probe+0xa0/0xac [4.288048] [] ? physmap_init+0x12/0x12 [4.288048] [] init_sbc_gxx+0x104/0x15b [4.288048] [] do_one_initcall+0x86/0x208 [4.288048] [] kernel_init+0x10d/0x1c2 [4.288048] [] ? do_early_param+0xc3/0xc3 [4.288048] [] kernel_thread_helper+0x4/0x10 [4.288048] [] ? retint_restore_args+0x13/0x13 [4.288048] [] ? do_one_initcall+0x208/0x208 [4.288048] [] ? gs_change+0x13/0x13 [4.288048] Code: 83 c4 58 5b 41 5c 41 5d 41 5e 41 5f 5d c3 55 48 89 e5 48 83 ec 60 66 66 66 66 90 31 c0 b9 18 00 00 00 48 8d 55 a0 48 89 d7 f3 ab <0f> 0b 55 48 89 e5 66 66 66 66 90 48 c7 c6 a0 39 a2 82 e8 cc ff [4.288048] RIP [] mtd_do_chip_probe+0x1d/0x1f [4.288048] RSP [4.321423] ---[ end trace 169195d5d1f9be6e ]--- [4.322118] swapper/0 (1) used greatest stack depth: 3768 bytes left This script may reproduce the error. #!/bin/bash kernel=$1 initrd=quantal-core-x86_64.cgz wget --no-clobber https://github.com/fengguang/reproduce-kernel-bug/raw/master/initrd/$initrd kvm=( qemu-system-x86_64 -enable-kvm -cpu Haswell,+smep,+smap -kernel $kernel -initrd $initrd -m 320 -smp 2 -net nic,vlan=1,model=e1000 -net user,vlan=1 -boot order=nc -no-reboot -watchdog i6300esb -rtc base=localtime -serial stdio -display none -monitor null ) append=( hung_task_panic=1 earlyprintk=ttyS0,115200 debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 panic=10 softlockup_panic=1 nmi_watchdog=panic prompt_ramdisk=0 console=ttyS0,115200 console=tty0 vga=normal root=/dev/ram0 rw drbd.minor_count=8 ) "${kvm[@]}" --append "${append[*]}" Thanks, Fengguang -- next part -- early console in setup code Probing EDD (edd=off to disable)... ok early console in decompress_kernel Decompressing Linux... Parsing ELF... done. Booting the kernel. [0.00] Initializing cgroup subsys cpu [0.00] Linux version 3.5.0-rc4-00162-g49099c4 (kbuild at lkp-hsx01) (gcc version 4.8.2 (Debian 4.8.2-18) ) #17 SMP PREEMPT Tue Aug 5 16:41:03 CST 2014 [0.00] Command line: hung_task_panic=1 earlyprintk=ttyS0,115200 debug apic=debug sysrq_always_enabled rcupdate.rcu_cpu_stall_timeout=100 panic=10 softlockup_panic=1 nmi_watchdog=panic prompt_ramdisk=0 console=ttyS0,115200 console=tty0 vga=normal root=/dev/ram0 rw link=/kbuild-tests/run-queue/kvm/x86_64-randconfig-s0-08051229/linux-devel:devel-hourly-2014080511:49099c4991da3c94773f888aea2e9d27b8a7c6d1:bisect-linux1/.vmlinuz-49099c4991da3c94773f888aea2e9d27b8a7c6d1-20140805164127-2-kbuild branch=linux-devel/devel-hourly-2014080511 BOOT_IMAGE=/kernel/x86_64-randconfig-s0-08051229/49099c4991da3c94773f888aea2e9d27b8a7c6d1/vmlinuz-3.5.0-rc4-00162-g49099c4 drbd.minor_count=8 [0.00] e820:
[sbc_gxx] kernel BUG at include/linux/mtd/map.h:148!
On Tue, Aug 5, 2014 at 9:59 AM, Fengguang Wu wrote: > Hello, > > This is an old BUG that still lives in linux-next. > > [4.284620] device id = 2670 > [4.286157] SBC-GXx flash: IO:0x258-0x259 MEM:0xdc000-0xd > [4.287060] [ cut here ] > [4.287722] kernel BUG at include/linux/mtd/map.h:148! > [4.288048] invalid opcode: [#1] PREEMPT SMP > [4.288048] CPU 1 > [4.288048] Pid: 1, comm: swapper/0 Not tainted 3.5.0-rc4-00162-g49099c4 > #17 Bochs Bochs > [4.288048] RIP: 0010:[] [] > mtd_do_chip_probe+0x1d/0x1f > [4.288048] RSP: 0018:880011049e20 EFLAGS: 00010246 > [4.288048] RAX: RBX: 82a23550 RCX: > > [4.288048] RDX: 880011049e20 RSI: 82a23580 RDI: > 880011049e80 > [4.288048] RBP: 880011049e80 R08: 0003 R09: > 810d6c93 > [4.288048] R10: R11: 0001 R12: > 82a23eb0 > [4.288048] R13: 828790ce R14: R15: > > [4.288048] FS: () GS:88001260() > knlGS: > [4.288048] CS: 0010 DS: ES: CR0: 8005003b > [4.288048] CR2: CR3: 0298c000 CR4: > 000406e0 > [4.288048] DR0: DR1: DR2: > > [4.288048] DR3: DR6: 0ff0 DR7: > 0400 > [4.288048] Process swapper/0 (pid: 1, threadinfo 880011048000, task > 88001104) > [4.288048] Stack: > [4.288048] > > [4.288048] > > [4.288048] > > [4.288048] Call Trace: > [4.288048] [] cfi_probe+0x15/0x17 > [4.288048] [] do_map_probe+0xa0/0xac > [4.288048] [] ? physmap_init+0x12/0x12 > [4.288048] [] init_sbc_gxx+0x104/0x15b > [4.288048] [] do_one_initcall+0x86/0x208 > [4.288048] [] kernel_init+0x10d/0x1c2 > [4.288048] [] ? do_early_param+0xc3/0xc3 > [4.288048] [] kernel_thread_helper+0x4/0x10 > [4.288048] [] ? retint_restore_args+0x13/0x13 > [4.288048] [] ? do_one_initcall+0x208/0x208 > [4.288048] [] ? gs_change+0x13/0x13 > [4.288048] Code: 83 c4 58 5b 41 5c 41 5d 41 5e 41 5f 5d c3 55 48 89 e5 48 > 83 ec 60 66 66 66 66 90 31 c0 b9 18 00 00 00 48 8d 55 a0 48 89 d7 f3 ab <0f> > 0b 55 48 89 e5 66 66 66 66 90 48 c7 c6 a0 39 a2 82 e8 cc ff > [4.288048] RIP [] mtd_do_chip_probe+0x1d/0x1f > [4.288048] RSP > [4.321423] ---[ end trace 169195d5d1f9be6e ]--- > [4.322118] swapper/0 (1) used greatest stack depth: 3768 bytes left > > This script may reproduce the error. > > > #!/bin/bash > > kernel=$1 > initrd=quantal-core-x86_64.cgz > > wget --no-clobber > https://github.com/fengguang/reproduce-kernel-bug/raw/master/initrd/$initrd > > kvm=( > qemu-system-x86_64 > -enable-kvm > -cpu Haswell,+smep,+smap > -kernel $kernel > -initrd $initrd > -m 320 > -smp 2 > -net nic,vlan=1,model=e1000 > -net user,vlan=1 > -boot order=nc > -no-reboot > -watchdog i6300esb > -rtc base=localtime > -serial stdio > -display none > -monitor null > ) > > append=( > hung_task_panic=1 > earlyprintk=ttyS0,115200 > debug > apic=debug > sysrq_always_enabled > rcupdate.rcu_cpu_stall_timeout=100 > panic=10 > softlockup_panic=1 > nmi_watchdog=panic > prompt_ramdisk=0 > console=ttyS0,115200 > console=tty0 > vga=normal > root=/dev/ram0 > rw > drbd.minor_count=8 > ) > > "${kvm[@]}" --append "${append[*]}" > > > Thanks, > Fengguang > > ___ > LKP mailing list > LKP at linux.intel.com > I am new , here and will try to trace your issue on linus's tree unless there is a major difference between Linus's tree and linux-next. If there is please let me known before I start tracing this. Best Regards , Nick