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-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140331113412.GA13548@localhost>
Date:	Mon, 31 Mar 2014 19:34:12 +0800
From:	Fengguang Wu <fengguang.wu@...el.com>
To:	Bjorn Helgaas <bhelgaas@...gle.com>
Cc:	"linux-mtd@...ts.infradead.org" <linux-mtd@...ts.infradead.org>,
	LKML <linux-kernel@...r.kernel.org>,
	David Woodhouse <dwmw2@...radead.org>,
	Brian Norris <computersforpeace@...il.com>,
	linux-kbuild <linux-kbuild@...r.kernel.org>,
	Michal Marek <mmarek@...e.cz>
Subject: Re: [mtd/sbc_gxx] kernel BUG at include/linux/mtd/map.h:148!

CC Michal and kbuild list.

On Thu, Mar 27, 2014 at 04:51:53PM -0600, Bjorn Helgaas wrote:
> [+cc David, Brian]
> 
> On Thu, Mar 27, 2014 at 8:01 AM, Fengguang Wu <fengguang.wu@...el.com> wrote:
> > FYI, here is a very old warning, too old to be bisected.
> >
> > [    5.282127] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
> > [    5.286079] SBC-GXx flash: IO:0x258-0x259 MEM:0xdc000-0xdffff
> > [    5.288723] ------------[ cut here ]------------
> > [    5.289649] kernel BUG at include/linux/mtd/map.h:148!
> 
> I think the problem is that your randconfig happens to have none of
> CONFIG_MTD_MAP_BANK_WIDTH_* set (you should have played the lottery
> today!), and the default implementation of map_bankwidth() in that
> case is just "BUG()":
> 
>   $ grep MTD_MAP config-3.14.0-rc8-wl-03045-gdf16ea4
>   # CONFIG_MTD_MAP_BANK_WIDTH_1 is not set
>   # CONFIG_MTD_MAP_BANK_WIDTH_2 is not set
>   # CONFIG_MTD_MAP_BANK_WIDTH_4 is not set
>   # CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
>   # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
>   # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
> 
> I don't know enough Kconfig or MTD to fix this.

Michal, the problem we run into is, how to select one of the above
CONFIG_MTD_MAP_BANK_WIDTH_xx in "make randconfig".

Thanks,
Fengguang
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ