2015-12-15 00:55:24

by kernel test robot

[permalink] [raw]
Subject: [lkp] [mtd] e0460264db: BUG: unable to handle kernel NULL pointer dereference at 000005c4

FYI, we noticed the below changes on

https://github.com/bbrezillon/linux-0day nand/ecclayout-squashed
commit e0460264db239f81a05a0f116efc84b9c650e0df ("mtd: use mtd_eccpos() and mtd_oobfree() where appropriate")


+-----------------------------------------------------+------------+------------+
| | eb02008ffd | e0460264db |
+-----------------------------------------------------+------------+------------+
| boot_successes | 0 | 0 |
| boot_failures | 12 | 12 |
| BUG:scheduling_while_atomic | 12 | |
| WARNING:at_kernel/sched/core.c:#preempt_count_sub() | 12 | |
| INFO:lockdep_is_turned_off | 12 | |
| backtrace:lcd_write_cmd_p8 | 12 | |
| backtrace:lcd_init_display | 12 | |
| backtrace:__parport_register_driver | 12 | |
| backtrace:panel_init_module | 12 | |
| backtrace:kernel_init_freeable | 12 | 12 |
| backtrace:lcd_clear_display | 12 | |
| BUG:unable_to_handle_kernel | 0 | 12 |
| Oops | 0 | 12 |
| EIP_is_at_nand_transfer_oob | 0 | 12 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 12 |
| backtrace:nand_default_bbt | 0 | 12 |
| backtrace:ns_init_module | 0 | 12 |
+-----------------------------------------------------+------------+------------+



[ 6.803737] sector address bytes: 3
[ 6.804161] options: 0x42
[ 6.805299] Scanning device for bad blocks
[ 6.808905] BUG: unable to handle kernel NULL pointer dereference at 000005c4
[ 6.809844] IP: [<7e09a74d>] nand_transfer_oob+0x3d/0x160
[ 6.810593] *pde = 00000000
[ 6.811006] Oops: 0000 [#1] PREEMPT
[ 6.811477] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.0-rc1-00168-ge046026 #1
[ 6.812363] task: 7802ecc0 ti: 78030000 task.ti: 78030000
[ 6.813032] EIP: 0060:[<7e09a74d>] EFLAGS: 00010297 CPU: 0
[ 6.813684] EIP is at nand_transfer_oob+0x3d/0x160
[ 6.814361] EAX: 00000000 EBX: 78031e7c ECX: 00000010 EDX: 00000000
[ 6.815118] ESI: 8131ac2c EDI: 00000010 EBP: 78031dec ESP: 78031dc8
[ 6.826907] DS: 007b ES: 007b FS: 0000 GS: 0000 SS: 0068
[ 6.827558] CR0: 8005003b CR2: 000005c4 CR3: 0698b000 CR4: 00000690
[ 6.828317] Stack:
[ 6.828566] 8130d000 00000000 00000010 8131ac2c 8130d000 00000010 78031e7c 8130d000
[ 6.829633] 00000010 78031e38 7e09b6c3 78031e90 00000010 00000000 00000000 00000010
[ 6.830687] 00000000 78031e90 00000000 8131ac2c 00000000 00000010 00000000 00000000
[ 6.835827] Call Trace:
[ 6.836139] [<7e09b6c3>] nand_read_oob+0x223/0x320
[ 6.836730] [<7e09b4a0>] ? nand_do_read_ops+0x4f0/0x4f0
[ 6.837391] [<7e077f83>] mtd_read_oob+0x23/0x60
[ 6.841249] [<7e09dcd8>] create_bbt+0x118/0x250
[ 6.841812] [<7e09f7a1>] nand_default_bbt+0x641/0x720
[ 6.842446] [<7dafe16e>] ? __kmalloc+0xbe/0x1e0
[ 6.843021] [<7e93f947>] ns_init_module+0xc8f/0xd6f
[ 6.843609] [<7e910b3a>] ? do_one_initcall+0x79/0x14c
[ 6.844238] [<7e93ecb8>] ? init_nanddoc+0xa4/0xa4
[ 6.856895] [<7e910b8f>] do_one_initcall+0xce/0x14c
[ 6.857502] [<7e9104b3>] ? initcall_blacklist+0x7c/0x7c
[ 6.858150] [<7da5886a>] ? parse_args+0x26a/0x3f0
[ 6.858718] [<7e910cc1>] ? kernel_init_freeable+0xb4/0x151
[ 6.859408] [<7e910ce1>] kernel_init_freeable+0xd4/0x151
[ 6.860069] [<7e485f68>] kernel_init+0x8/0xc0
[ 6.860599] [<7e48ea48>] ret_from_kernel_thread+0x20/0x34
[ 6.871322] [<7e485f60>] ? rest_init+0x110/0x110
[ 6.871893] Code: 83 f9 01 89 55 e8 8b 7d 0c 89 45 e0 74 40 72 0e 83 f9 02 74 09 0f 0b 8d b4 26 00 00 00 00 8b 45 08 8b 75 e8 89 f9 8b 10 8b 45 e0 <03> 90 c4 05 00 00 89 f0 e8 66 de db ff 83 c4 18 89 f0 5b 01 f8
[ 6.875193] EIP: [<7e09a74d>] nand_transfer_oob+0x3d/0x160 SS:ESP 0068:78031dc8
[ 6.876180] CR2: 00000000000005c4
[ 6.876607] ---[ end trace 6b773ed9ac0183e7 ]---
[ 6.877173] Kernel panic - not syncing: Fatal exception



Thanks,
Ying Huang


Attachments:
(No filename) (4.43 kB)
config-4.4.0-rc1-00168-ge046026 (96.11 kB)
dmesg.xz (9.50 kB)
Download all attachments

2015-12-15 07:44:58

by Boris Brezillon

[permalink] [raw]
Subject: Re: [lkp] [mtd] e0460264db: BUG: unable to handle kernel NULL pointer dereference at 000005c4

On Tue, 15 Dec 2015 08:55:16 +0800
kernel test robot <[email protected]> wrote:

> FYI, we noticed the below changes on
>
> https://github.com/bbrezillon/linux-0day nand/ecclayout-squashed
> commit e0460264db239f81a05a0f116efc84b9c650e0df ("mtd: use mtd_eccpos() and mtd_oobfree() where appropriate")

Should be fixed now. Sorry for the inconvenience.

Best Regards,

Boris

--
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com