2013-06-06 02:19:56

by Fengguang Wu

[permalink] [raw]
Subject: [init_mac80211_hwsim] WARNING: at include/linux/kref.h:47 kobject_get()

Greetings,

I got the below WARNING in linux-next and the first bad commit is

commit c07fe5ae0667f1077d671f62a093261223f918af
Author: Sasha Levin <[email protected]>
Date: Wed Apr 24 00:40:05 2013 -0400

mac80211_hwsim: correctly register the platform driver

Not registering a platform_driver would make us access garbage
when the platform callbacks under driver_register() kicks in.

Signed-off-by: Sasha Levin <[email protected]>
Tested-By: Martin Pitt <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>

[ 5.303593] mac80211_hwsim: ieee80211_register_hw failed (-2)
[ 5.314335] ------------[ cut here ]------------
[ 5.317010] WARNING: at /c/kernel-tests/src/tip/include/linux/kref.h:47 kobject_get+0x73/0xb0()
[ 5.333165] CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.0-rc3-03384-g9f6f34a #31
[ 5.337226] 0000000000000009 ffff88000d833d18 ffffffff826a10c3 ffff88000d833d58
[ 5.345049] ffffffff81094cde 0000000000000000 ffff880006f9e880 ffff88000d833fd8
[ 5.353556] ffffffff8377fa68 ffff88000d833fd8 ffffffff8299a900 ffff88000d833d68
[ 5.362443] Call Trace:
[ 5.363637] [<ffffffff826a10c3>] dump_stack+0x27/0x30
[ 5.368814] [<ffffffff81094cde>] warn_slowpath_common+0x8e/0xd0
[ 5.377018] [<ffffffff81094e45>] warn_slowpath_null+0x25/0x30
[ 5.384096] [<ffffffff8160e413>] kobject_get+0x73/0xb0
[ 5.386997] [<ffffffff81923d82>] get_device+0x22/0x40
[ 5.398294] [<ffffffff819293c8>] driver_detach+0x98/0x1b0
[ 5.408033] [<ffffffff81927a9d>] bus_remove_driver+0xcd/0x160
[ 5.411274] [<ffffffff81929f20>] driver_unregister+0x90/0x100
[ 5.414411] [<ffffffff8192c115>] platform_driver_unregister+0x15/0x20
[ 5.424777] [<ffffffff839b5cc4>] init_mac80211_hwsim+0xe9b/0xeb3
[ 5.433369] [<ffffffff839b4e00>] ? ath9k_cmn_init+0xf/0xf
[ 5.436394] [<ffffffff839b4e29>] ? wil6210_driver_init+0x29/0x29
[ 5.442718] [<ffffffff8396f569>] do_one_initcall+0xb5/0x196
[ 5.445681] [<ffffffff8396f7fe>] kernel_init_freeable+0x1b4/0x2b7
[ 5.448927] [<ffffffff8396e9a6>] ? loglevel+0x46/0x46
[ 5.456523] [<ffffffff82690400>] ? rest_init+0xd0/0xd0
[ 5.462635] [<ffffffff82690411>] kernel_init+0x11/0x1b0
[ 5.465539] [<ffffffff826ba5fa>] ret_from_fork+0x7a/0xb0
[ 5.473758] [<ffffffff82690400>] ? rest_init+0xd0/0xd0
[ 5.484169] ---[ end trace 01247b2b64952ffd ]---

Note: the parent commit suffers from a NULL pointer dereference BUG (2nd attached dmesg)
in the same init_mac80211_hwsim(). So it's not necessarily the problem
introduced by c07fe5ae0667. Anyway I'm reporting it to you in the hope that
you are (or can find) the most relevant people for looking into this problem.

git bisect start 9f6f34aebccbfb7de857e371e1fa9a0196c7be8e 246b3eda7e38835fad07c327b336f44f2e16b450 --
git bisect good 251df49db3327c64bf917bfdba94491fde2b4ee0 # 10 2013-06-05 21:56:19 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
git bisect good 6eabb3301b1facee669d9938f7c5a0295c21d71d # 10 2013-06-05 22:24:55 ARM: 7720/1: ARM v6/v7 cmpxchg64 shouldn't clear upper 32 bits of the old/new value
git bisect good 4de13d7aa8f4d02f4dc99d4609575659f92b3c5a # 10 2013-06-05 22:41:34 Merge branch 'for-3.10/core' of git://git.kernel.dk/linux-block
git bisect good aef2ea912e0ee39fbca74fed0ab8e612ac2c3ba2 # 10 2013-06-05 23:06:54 Merge tag 'fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux
git bisect good 5cc0c03823ca18c490f8223f85ed40f2a9d936c4 # 10 2013-06-05 23:26:35 Merge tag 'char-misc-3.10-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
git bisect bad 27a24cfa04c6f041c0191847d047f25e5627cd63 # 0 2013-06-05 23:36:58 Merge branch 'fixes' of git://git.infradead.org/users/vkoul/slave-dma
git bisect bad eb3d33900aa953bcdfe132a71bb03ee592ebbb47 # 0 2013-06-06 00:03:44 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
git bisect bad 326017c757e387007c6629797d7ae22fd33c1317 # 0 2013-06-06 00:43:50 perf: net_dropmonitor: Do not assume ordering of dictionaries
git bisect good 98962baad72fd6d393bf39dbb7c2076532c363c6 # 10 2013-06-06 00:54:10 8139cp: reset BQL when ring tx ring cleared
git bisect bad d4988d4c733ba0b61cb372edd3d1992d26dd10d3 # 0 2013-06-06 01:10:37 bcma: add more core IDs
git bisect bad 2b9ccd4e4308272e5aec614b77c5385e7ec2ec90 # 0 2013-06-06 01:19:36 mac80211: fix AP-mode frame matching
git bisect bad b8360ab8d2caf8a4d0d95bc03f0ba6956459505f # 0 2013-06-06 01:27:25 mac80211: fix IEEE80211_SDATA_DISCONNECT_RESUME
git bisect bad c07fe5ae0667f1077d671f62a093261223f918af # 0 2013-06-06 01:35:52 mac80211_hwsim: correctly register the platform driver
git bisect good 03cd7e4e1ea16cd151c799a33b5ca1fd41a464df # 10 2013-06-06 03:04:01 cfg80211: fix wiphy_register error path
git bisect good 03cd7e4e1ea16cd151c799a33b5ca1fd41a464df # 30 2013-06-06 04:05:33 cfg80211: fix wiphy_register error path
git bisect bad 9f6f34aebccbfb7de857e371e1fa9a0196c7be8e # 0 2013-06-06 04:05:35 Merge remote-tracking branch 'stable/master'
git bisect good 10af2cd3c3c1cd8376126e3ffb6699c36032c7d0 # 30 2013-06-06 04:20:31 Revert "mac80211_hwsim: correctly register the platform driver"
git bisect bad f8f126f22a32f2f2b3b61bd5b8a3d51a2cac09ec # 0 2013-06-06 04:24:57 Add linux-next specific files for 20130605

Thanks,
Fengguang


Attachments:
(No filename) (5.37 kB)
dmesg-kvm-inn-3711-20130605211017-3.10.0-rc3-03384-g9f6f34a-31 (38.58 kB)
9f6f34aebccbfb7de857e371e1fa9a0196c7be8e-bisect.log (14.18 kB)
.config-bisect (74.71 kB)
dmesg-kvm-athens-16566-20130606030049-3.9.0-12328-g03cd7e4-34 (34.07 kB)
Download all attachments