linux
linux copied to clipboard
jffs2 backtrace on 4.10
I was booting a 4.10 based kernel with the upstream mtd driver appied and I got this one:
jffs2: notice: (334) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
------------[ cut here ]------------
WARNING: CPU: 0 PID: 336 at drivers/mtd/spi-nor/spi-nor.c:1182 spi_nor_write+0x84/0x18c
Writing at offset 236 into a NOR page. Writing partial pages may decrease reliability and increase wear of NOR flash.
CPU: 0 PID: 336 Comm: rm Not tainted 4.10.0-rc7-00032-g75683d4a0b5f #201
Hardware name: Generic DT based system
[<801073cc>] (unwind_backtrace) from [<80105580>] (show_stack+0x10/0x14)
[<80105580>] (show_stack) from [<80110cc0>] (__warn+0xd8/0xf4)
[<80110cc0>] (__warn) from [<80110d20>] (warn_slowpath_fmt+0x44/0x6c)
[<80110d20>] (warn_slowpath_fmt) from [<802df828>] (spi_nor_write+0x84/0x18c)
[<802df828>] (spi_nor_write) from [<802d8590>] (mtd_writev+0x98/0xf0)
[<802d8590>] (mtd_writev) from [<8023d74c>] (jffs2_flash_writev+0x44/0x448)
[<8023d74c>] (jffs2_flash_writev) from [<80236478>] (jffs2_write_dirent+0x28c/0x450)
[<80236478>] (jffs2_write_dirent) from [<80236f44>] (jffs2_do_unlink+0x1fc/0x300)
[<80236f44>] (jffs2_do_unlink) from [<80230090>] (jffs2_rmdir+0x4c/0xa0)
[<80230090>] (jffs2_rmdir) from [<801b6238>] (vfs_rmdir+0x74/0xf0)
[<801b6238>] (vfs_rmdir) from [<801b63d8>] (do_rmdir+0x124/0x15c)
[<801b63d8>] (do_rmdir) from [<801021c0>] (ret_fast_syscall+0x0/0x3c)
---[ end trace 9ed3518152643136 ]---
A fix is in the spi-nor repo and the warning should be removed in 4.11. May you could pull the commit in linux-openbmc when it is merged in the linux tree