UBI leb_write_unlock NULL pointer Oops (continuation) on ARM926
Bill Pringlemeir
bpringlemeir at nbsps.com
Tue Feb 4 12:05:06 EST 2014
On 4 Feb 2014, bpringlemeir at nbsps.com wrote:
> The ARM926 systems do not have proper 'lock free' idioms like
> 'ldrex/strex' and they try to do atomic operations by locking
> interrupts. I think that UbiFs/UBI maybe called on a 'data fault' or
> 'program fault' (in user space) when memory pressure is present. I have
> seen this occur in some sound drivers where the data source is coming
> from disk (or maybe the driver uses vmalloc() or something). So I think
> on occasion, the ltree_lookup() may not work or there is something weird
> with the atomic primatives and data/page faults.
https://www.google.ca/#q=site:infradead.org+leb_write_unlock+oops
http://lists.infradead.org/pipermail/linux-mtd/2013-May/046907.html
at91sam9g20 - arm926, different MTD driver. Linux 3.6.9
Code: e5903004 e58d2004 e1560003 0a00002a (e593200c)
0: e5903004 ldr r3, [r0, #4]
4: e58d2004 str r2, [sp, #4]
8: e1560003 cmp r6, r3
c: 0a00002a beq 0xbc
10: e593200c ldr r2, [r3, #12]
The code sequence looks identical and the Oops trace, etc is the same.
People from Pengutronix also indicated seeing the same type of Opps; I
think they deal with the IMX, but maybe this was on another board.
Regards,
Bill Pringlemeir.
More information about the linux-mtd
mailing list