Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
https://github.com/0day-ci/linux
Sudip-Mukherjee/i2c-i2c-core-do-not-use-bus-internal-data/20160307-195104
commit f3eab4251515a492aa38e515d9a2322c535ce358
Author: Sudip Mukherjee <sudipm.mukherjee(a)gmail.com>
AuthorDate: Mon Mar 7 17:19:17 2016 +0530
Commit: 0day robot <fengguang.wu(a)intel.com>
CommitDate: Mon Mar 7 19:51:06 2016 +0800
i2c: i2c-core: do not use bus internal data
The variable p is a data structure which is used by the driver core
internally and it is not expected that busses will be directly accessing
these driver core internal only data.
Signed-off-by: Sudip Mukherjee <sudip.mukherjee(a)codethink.co.uk>
+----------------------------------------------------------------+------------+------------+------------+
| | 3bf58bb5da | f3eab42515
| f3eab42515 |
+----------------------------------------------------------------+------------+------------+------------+
| boot_successes | 80 | 0
| 0 |
| boot_failures | 2 | 13
| 13 |
| BUG:unable_to_handle_kernel | 1 | 13
| 13 |
| Oops | 1 | 13
| 13 |
| EIP_is_at_perf_callchain | 1 |
| |
| Kernel_panic-not_syncing:Fatal_exception_in_interrupt | 1 |
| |
| backtrace:__ubsan_handle_type_mismatch | 2 |
| |
| backtrace:late_resume_init | 2 |
| |
| backtrace:kernel_init_freeable | 2 | 13
| 13 |
| backtrace:iterate_dir | 1 |
| |
| backtrace:SyS_getdents64 | 1 |
| |
| WARNING:at_arch/x86/include/asm/fpu/internal.h:#fpu__restore() | 1 |
| |
| WARNING:at_drivers/i2c/i2c-core.c:#i2c_register_driver() | 0 | 13
| 13 |
| EIP_is_at_blocking_notifier_chain_register | 0 | 13
| 13 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 13
| 13 |
| backtrace:i2c_register_driver | 0 | 13
| 13 |
| backtrace:i2c_init | 0 | 13
| 13 |
| backtrace:max7300_init | 0 | 13
| 13 |
| backtrace:max1586_pmic_init | 0 | 13
| 13 |
| backtrace:max8952_pmic_init | 0 | 13
| 13 |
| backtrace:tps51632_init | 0 | 13
| 13 |
| backtrace:tps_65023_init | 0 | 13
| 13 |
| backtrace:pm805_i2c_init | 0 | 13
| 13 |
| backtrace:wm#_module_init | 0 | 13
| 13 |
| backtrace:wm#x_i2c_init | 0 | 13
| 13 |
| backtrace:wm#_i2c_init | 0 | 13
| 13 |
| backtrace:tps65912_i2c_init | 0 | 13
| 13 |
| backtrace:tps80031_init | 0 | 13
| 13 |
| backtrace:max14577_i2c_init | 0 | 13
| 13 |
| backtrace:max77843_i2c_init | 0 | 13
| 13 |
| backtrace:max8997_i2c_init | 0 | 13
| 13 |
| backtrace:max8998_i2c_init | 0 | 13
| 13 |
| backtrace:pcf50633_init | 0 | 13
| 13 |
| backtrace:tps6586x_init | 0 | 13
| 13 |
| backtrace:aat2870_init | 0 | 13
| 13 |
| backtrace:palmas_i2c_init | 0 | 13
| 13 |
| backtrace:rc5t583_i2c_init | 0 | 13
| 13 |
| backtrace:sec_pmic_init | 0 | 13
| 13 |
| backtrace:lm#_i2c_init | 0 | 13
| 13 |
| backtrace:act8865_pmic_driver_init | 0 | 13
| 13 |
| backtrace:ltc3589_driver_init | 0 | 13
| 13 |
| backtrace:pv88090_regulator_driver_init | 0 | 13
| 13 |
| backtrace:bmp085_i2c_driver_init | 0 | 13
| 13 |
| backtrace:apds990x_driver_init | 0 | 13
| 13 |
| backtrace:tsl2550_driver_init | 0 | 13
| 13 |
| backtrace:eeprom_driver_init | 0 | 13
| 13 |
| backtrace:fsa9480_i2c_driver_init | 0 | 13
| 13 |
| backtrace:twl_driver_init | 0 | 13
| 13 |
| backtrace:twl6040_driver_init | 0 | 13
| 13 |
| backtrace:axp20x_i2c_driver_init | 0 | 13
| 13 |
| backtrace:da9150_driver_init | 0 | 13
| 13 |
| backtrace:rn5t618_i2c_driver_init | 0 | 13
| 13 |
| backtrace:sky81452_driver_init | 0 | 13
| 13 |
| backtrace:usb#_init | 0 | 13
| 13 |
| backtrace:cyapa_driver_init | 0 | 13
| 13 |
| backtrace:drv2665_driver_init | 0 | 13
| 13 |
| backtrace:drv2667_driver_init | 0 | 13
| 13 |
| backtrace:mpu3050_i2c_driver_init | 0 | 13
| 13 |
| backtrace:bus_register_notifier | 0 | 13
| 13 |
| backtrace:i2c_dev_init | 0 | 13
| 13 |
+----------------------------------------------------------------+------------+------------+------------+
[ 1.156740] RTC time: 20:24:25, date: 03/07/16
[ 1.159021] NET: Registered protocol family 16
[ 1.161817] ------------[ cut here ]------------
[ 1.163734] WARNING: CPU: 0 PID: 1 at drivers/i2c/i2c-core.c:1930
i2c_register_driver+0xaf/0x100()
[ 1.167712] Modules linked in:
[ 1.169387] CPU: 0 PID: 1 Comm: swapper Not tainted 4.5.0-rc3-00029-gf3eab42 #425
[ 1.172703] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Debian-1.8.2-1
04/01/2014
[ 1.176318] d0e60000 00000000 d0e69e6c c15d695c d0e69ea0 c1078634 c20ef328 00000000
[ 1.180655] 00000001 c21d2ca0 0000078a c1b5af9f c1b5af9f c21d2ca0 c2700460 00000000
[ 1.184966] c2247920 d0e69eb0 c1078720 00000009 00000000 d0e69ed4 c1b5af9f d0c05120
[ 1.189307] Call Trace:
[ 1.190748] [<c15d695c>] dump_stack+0x16/0x1a
[ 1.192612] [<c1078634>] warn_slowpath_common+0x94/0xe0
[ 1.194670] [<c1b5af9f>] ? i2c_register_driver+0xaf/0x100
[ 1.196777] [<c1b5af9f>] ? i2c_register_driver+0xaf/0x100
[ 1.198876] [<c1078720>] warn_slowpath_null+0x20/0x30
[ 1.200887] [<c1b5af9f>] i2c_register_driver+0xaf/0x100
[ 1.202950] [<c17e1cfc>] ? class_compat_register+0x3c/0x60
[ 1.205067] [<c289fd9c>] i2c_init+0x5b/0x8d
[ 1.206928] [<c289fd41>] ? trace_event_define_fields_smbus_write+0xa/0xa
[ 1.209306] [<c10004a0>] do_one_initcall+0xd0/0x2e0
[ 1.211284] [<c289fd41>] ? trace_event_define_fields_smbus_write+0xa/0xa
[ 1.213670] [<c10a2ce3>] ? parse_args+0x233/0x640
[ 1.215613] [<c289fd41>] ? trace_event_define_fields_smbus_write+0xa/0xa
[ 1.218022] [<c10af62d>] ? preempt_count_sub+0xbd/0x140
[ 1.220077] [<c10bf774>] ? __wake_up+0x44/0x50
[ 1.221962] [<c2843faf>] ? kernel_init_freeable+0x1fc/0x30d
[ 1.224091] [<c2844033>] kernel_init_freeable+0x280/0x30d
[ 1.226206] [<c1e05d90>] kernel_init+0x10/0xe0
[ 1.228107] [<c1e0e9c8>] ret_from_kernel_thread+0x20/0x34
[ 1.230214] [<c1e05d80>] ? rest_init+0xb0/0xb0
[ 1.232107] ---[ end trace e92e6e4d14dc1d8f ]---
[ 1.245810] cpuidle: using governor menu
git bisect start f3eab4251515a492aa38e515d9a2322c535ce358
3bf58bb5da86d0a9e20f108a2f5163c4ce1a60dc --
# first bad commit: [f3eab4251515a492aa38e515d9a2322c535ce358] i2c: i2c-core: do not use
bus internal data
git bisect good 3bf58bb5da86d0a9e20f108a2f5163c4ce1a60dc # 20:32 62+ 2 i2c:
imx: remove extra spaces.
# extra tests with DEBUG_INFO
git bisect bad f3eab4251515a492aa38e515d9a2322c535ce358 # 20:34 0- 61 i2c:
i2c-core: do not use bus internal data
# extra tests on HEAD of
linux-review/Sudip-Mukherjee/i2c-i2c-core-do-not-use-bus-internal-data/20160307-195104
git bisect bad f3eab4251515a492aa38e515d9a2322c535ce358 # 20:34 0- 13 i2c:
i2c-core: do not use bus internal data
# extra tests on tree/branch
linux-review/Sudip-Mukherjee/i2c-i2c-core-do-not-use-bus-internal-data/20160307-195104
git bisect bad f3eab4251515a492aa38e515d9a2322c535ce358 # 20:34 0- 13 i2c:
i2c-core: do not use bus internal data
# extra tests with first bad commit reverted
git bisect good 1a18b66147dfc4ef72c38b238a8ea1c2d9ee29e0 # 20:43 62+ 3 Revert
"i2c: i2c-core: do not use bus internal data"
# extra tests on tree/branch linus/master
git bisect good f6cede5b49e822ebc41a099fe41ab4989f64e2cb # 20:46 62+ 0 Linux
4.5-rc7
# extra tests on tree/branch linux-next/master
git bisect good 078dd3bb709cb9848707609916f424a5de7f8e63 # 20:48 62+ 1 Add
linux-next specific files for 20160307
This script may reproduce the error.
----------------------------------------------------------------------------
#!/bin/bash
kernel=$1
initrd=quantal-core-i386.cgz
wget --no-clobber
https://github.com/fengguang/reproduce-kernel-bug/raw/master/initrd/$initrd
kvm=(
qemu-system-x86_64
-enable-kvm
-cpu kvm64
-kernel $kernel
-initrd $initrd
-m 300
-smp 2
-device e1000,netdev=net0
-netdev user,id=net0
-boot order=nc
-no-reboot
-watchdog i6300esb
-rtc base=localtime
-serial stdio
-display none
-monitor null
)
append=(
hung_task_panic=1
earlyprintk=ttyS0,115200
systemd.log_level=err
debug
apic=debug
sysrq_always_enabled
rcupdate.rcu_cpu_stall_timeout=100
panic=-1
softlockup_panic=1
nmi_watchdog=panic
oops=panic
load_ramdisk=2
prompt_ramdisk=0
console=ttyS0,115200
console=tty0
vga=normal
root=/dev/ram0
rw
drbd.minor_count=8
)
"${kvm[@]}" --append "${append[*]}"
----------------------------------------------------------------------------
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/lkp Intel Corporation