lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 5 Aug 2014 21:59:47 +0800
From:	Fengguang Wu <fengguang.wu@...el.com>
To:	"linux-mtd@...ts.infradead.org" <linux-mtd@...ts.infradead.org>
Cc:	Jet Chen <jet.chen@...el.com>, Su Tao <tao.su@...el.com>,
	Yuanhan Liu <yuanhan.liu@...el.com>, LKP <lkp@...org>,
	dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: [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-0xdffff
[    4.287060] ------------[ cut here ]------------
[    4.287722] kernel BUG at include/linux/mtd/map.h:148!
[    4.288048] invalid opcode: 0000 [#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:[<ffffffff8177e8de>]  [<ffffffff8177e8de>] mtd_do_chip_probe+0x1d/0x1f
[    4.288048] RSP: 0018:ffff880011049e20  EFLAGS: 00010246
[    4.288048] RAX: 0000000000000000 RBX: ffffffff82a23550 RCX: 0000000000000000
[    4.288048] RDX: ffff880011049e20 RSI: ffffffff82a23580 RDI: ffff880011049e80
[    4.288048] RBP: ffff880011049e80 R08: 0000000000000003 R09: ffffffff810d6c93
[    4.288048] R10: 0000000000000000 R11: 0000000000000001 R12: ffffffff82a23eb0
[    4.288048] R13: ffffffff828790ce R14: 0000000000000000 R15: 0000000000000000
[    4.288048] FS:  0000000000000000(0000) GS:ffff880012600000(0000) knlGS:0000000000000000
[    4.288048] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[    4.288048] CR2: 0000000000000000 CR3: 000000000298c000 CR4: 00000000000406e0
[    4.288048] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    4.288048] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[    4.288048] Process swapper/0 (pid: 1, threadinfo ffff880011048000, task ffff880011040000)
[    4.288048] Stack:
[    4.288048]  0000000000000000 0000000000000000 0000000000000000 0000000000000000
[    4.288048]  0000000000000000 0000000000000000 0000000000000000 0000000000000000
[    4.288048]  0000000000000000 0000000000000000 0000000000000000 0000000000000000
[    4.288048] Call Trace:
[    4.288048]  [<ffffffff81779e05>] cfi_probe+0x15/0x17
[    4.288048]  [<ffffffff81779d9b>] do_map_probe+0xa0/0xac
[    4.288048]  [<ffffffff834d1aac>] ? physmap_init+0x12/0x12
[    4.288048]  [<ffffffff834d1bb0>] init_sbc_gxx+0x104/0x15b
[    4.288048]  [<ffffffff8348d1b3>] do_one_initcall+0x86/0x208
[    4.288048]  [<ffffffff8348d442>] kernel_init+0x10d/0x1c2
[    4.288048]  [<ffffffff8348c739>] ? do_early_param+0xc3/0xc3
[    4.288048]  [<ffffffff8207b2f4>] kernel_thread_helper+0x4/0x10
[    4.288048]  [<ffffffff820797b4>] ? retint_restore_args+0x13/0x13
[    4.288048]  [<ffffffff8348d335>] ? do_one_initcall+0x208/0x208
[    4.288048]  [<ffffffff8207b2f0>] ? 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  [<ffffffff8177e8de>] mtd_do_chip_probe+0x1d/0x1f
[    4.288048]  RSP <ffff880011049e20>
[    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

View attachment "dmesg-quantal-kbuild-15:20140805163937:x86_64-randconfig-s0-08051229:3.5.0-rc4-00162-g49099c4:17" of type "text/plain" (30549 bytes)

Download attachment "x86_64-randconfig-s0-08051229-7d5b32398354b2cb45d711c021557d8da09ae30b-kernel-BUG-at-128910.log" of type "application/octet-stream" (139708 bytes)

View attachment "config-3.5.0-rc4-00162-g49099c4" of type "text/plain" (82559 bytes)

_______________________________________________
LKP mailing list
LKP@...ux.intel.com

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ