Skip to contentSkip to conversation

next-20160314 - crash in i2c_dev_init/bus_register_notifier at boot

DISCUSSION Valdis Kletnieks 2 participants 4 messages Mar 17, 2016 – Mar 18, 2016 I2C subsystem host drivers

lore
Share & tools
lore
#0 lore raw

Seeing this consistent crash on next-20160314. Sorry for shortened traceback, hand-transcribed as the crash doesn't get logged to /sys/fs/pstore as expected. next-20160307 works just fine.

BUG: unable to handle kernel NULL pointer dereference at 000000000260
IP: blocking_notifier_chain_register+0x37/0xd0
...
Call Trace:
bus_register_notifier+0x1c/0x20
i2c_dev_init+0x9c/0xf2
do_one_initcall_+0x99/0x210
? set_debug_rodata+0x12/0x12
kernel_init_freeable+0x1b3/0x240
kernel_init+0x3/0x100

'git blame' doesn't seem to find anything relevant and recent in kernel/notifier.c or drivers/i2c/i2c-dev.c. Does this ring any bells, or is it time to bisect?

#1 lore raw
Quoted 15 lines · Valdis Kletnieks

Seeing this consistent crash on next-20160314. Sorry for shortened traceback, hand-transcribed as the crash doesn't get logged to /sys/fs/pstore as expected. next-20160307 works just fine.

BUG: unable to handle kernel NULL pointer dereference at 000000000260
IP: blocking_notifier_chain_register+0x37/0xd0
...
Call Trace:
bus_register_notifier+0x1c/0x20
i2c_dev_init+0x9c/0xf2
do_one_initcall_+0x99/0x210
? set_debug_rodata+0x12/0x12
kernel_init_freeable+0x1b3/0x240
kernel_init+0x3/0x100
Quoted 3 lines

'git blame' doesn't seem to find anything relevant and recent in kernel/notifier.c or drivers/i2c/i2c-dev.c. Does this ring any bells, or is it time to bisect?

Can you try a newer -next or apply this patch on top?

https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git/patch/drivers/i2c?id=b980a26d02d1f54be31346666222304fcd27ea33

I think this should solve it.

Thanks for reporting!

Wolfram

#3 lore raw
Quoted 2 lines

Confirming that issue is fixed in next-20160317.

Thanks for confirming...

Quoted 1 line

Now on to fix the *next* problem :)

...and good luck with that!

Wolfram