Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://github.com/bvanassche/linux for-next commit 3a5d5346ab1f5d27593fe18af30ab6b7b76dff0d Author: Bart Van Assche AuthorDate: Tue Mar 26 10:51:45 2019 -0700 Commit: Bart Van Assche CommitDate: Tue Mar 26 12:20:20 2019 -0700 locking/lockdep: Zap lock classes even with lock debugging disabled Commit a0b0fd53e1e6 ("locking/lockdep: Free lock classes that are no longer in use") changed the behavior of lockdep_free_key_range() from unconditionally zapping lock classes into only zapping lock classes if debug_lock == true. Since the new behavior can cause cat /proc/lockdep to crash due to a NULL pointer dereference, restore the pre-v5.1 behavior. Cc: Thomas Gleixner Cc: Will Deacon Cc: Waiman Long Cc: shenghui Reported-by: shenghui Fixes: a0b0fd53e1e6 ("locking/lockdep: Free lock classes that are no longer in use") # v5.1-rc1. Signed-off-by: Bart Van Assche 0e5a8bb428 tools-lockdep-gitignore 3a5d5346ab locking/lockdep: Zap lock classes even with lock debugging disabled +---------------------------------------------------+------------+------------+ | | 0e5a8bb428 | 3a5d5346ab | +---------------------------------------------------+------------+------------+ | boot_successes | 31 | 0 | | boot_failures | 0 | 11 | | WARNING:at_kernel/softirq.c:#__local_bh_enable_ip | 0 | 11 | | EIP:__local_bh_enable_ip | 0 | 11 | +---------------------------------------------------+------------+------------+ [ 3.742250] zswap: pool creation failed [ 3.742796] page_owner is disabled [ 3.743229] kAFS: Red Hat AFS client v0.1 registering. [ 3.744935] ------------[ cut here ]------------ [ 3.745522] IRQs not enabled as expected [ 3.746036] WARNING: CPU: 0 PID: 7 at kernel/softirq.c:170 __local_bh_enable_ip+0x9c/0xf0 [ 3.747200] CPU: 0 PID: 7 Comm: ksoftirqd/0 Tainted: G T 5.1.0-rc2-00007-g3a5d534 #1 [ 3.748214] EIP: __local_bh_enable_ip+0x9c/0xf0 [ 3.748726] Code: 8d b6 00 00 00 00 8b 90 28 08 00 00 85 d2 75 af 80 3d af 96 a5 c2 00 75 a6 68 42 04 62 c2 c6 05 af 96 a5 c2 01 e8 e4 bb ff ff <0f> 0b 58 eb 90 8d b4 26 00 00 00 00 89 f0 e8 d1 e4 02 00 eb 9c 8d [ 3.750799] EAX: 0000001c EBX: 00000200 ECX: 00000000 EDX: 00000003 [ 3.751503] ESI: c10a8ed5 EDI: c108a980 EBP: db089f24 ESP: db089f18 [ 3.752203] DS: 007b ES: 007b FS: 0000 GS: 00e0 SS: 0068 EFLAGS: 00210292 [ 3.752962] CR0: 80050033 CR2: 00000000 CR3: 02b96000 CR4: 001406f0 [ 3.753661] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000 [ 3.754362] DR6: fffe0ff0 DR7: 00000400 [ 3.754795] Call Trace: [ 3.755084] rcu_process_callbacks+0x96/0x150 [ 3.755576] __do_softirq+0xba/0x357 [ 3.755986] run_ksoftirqd+0x25/0x50 [ 3.756393] smpboot_thread_fn+0xe5/0x1b0 [ 3.756852] kthread+0xd9/0x110 [ 3.757210] ? sort_range+0x30/0x30 [ 3.757606] ? kthread_delayed_work_timer_fn+0x90/0x90 [ 3.758185] ret_from_fork+0x1e/0x28 [ 3.758577] irq event stamp: 12645 [ 3.758907] hardirqs last enabled at (12644): [] console_unlock+0x4b5/0x5a0 [ 3.759641] hardirqs last disabled at (12645): [] trace_hardirqs_off_thunk+0xc/0x1a [ 3.760437] softirqs last enabled at (12616): [] __do_softirq+0x316/0x357 [ 3.761162] softirqs last disabled at (12621): [] run_ksoftirqd+0x25/0x50 [ 3.761875] ---[ end trace bdfdaa1cb4aea060 ]--- [ 3.762333] kAFS: failed to register: -97 # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD git bisect start c2a13009673fb4858bdc08325e9db6eec8bc33b3 79a3aaa7b82e3106be97842dedfd8429248896e6 -- git bisect bad 6770e365259c9f3dff3613e45af3ad373b60bb46 # 20:38 B 0 1 15 0 Merge 'frank-w-bpi-r2-4.14/5.1-hdmi-v7' into devel-hourly-2019040317 git bisect good 17346f7365f7c195889454f5039b6f7672c8fc74 # 20:53 G 11 0 0 0 Merge 'iio/fixes-togreg' into devel-hourly-2019040317 git bisect good 64e5e330e0f74628b226c68d88010525ff800233 # 21:09 G 10 0 0 0 Merge 'linux-review/Nicholas-Piggin/powerpc-64s-radix-Fix-radix-segment-exception-handling/20190329-172659' into devel-hourly-2019040317 git bisect bad 80052c2315edbf1ab4a12fd08c90eada23a5f1cf # 21:21 B 0 1 15 0 Merge 'linux-review/Boris-Brezillon/drm-connector-Document-the-optional-margin-props-in-the-HDMI-section/20190328-215405' into devel-hourly-2019040317 git bisect bad 0a2ae3a7e7f124b8703d322887b03c7a0fc904d9 # 21:40 B 0 5 19 0 Merge 'linux-review/Florian-Westphal/xfrm-remove-xfrm_mode-indirections/20190330-231134' into devel-hourly-2019040317 git bisect good a14bf39eb18d4186348f8b3e81d3747ca5f05c82 # 21:58 G 11 0 0 0 Merge 'linux-review/Dan-Carpenter/drm-mediatek-Fix-an-error-code-in-mtk_hdmi_dt_parse_pdata/20190329-104408' into devel-hourly-2019040317 git bisect bad 53ad86b04f754e5a039a1e8676de212c64af049e # 22:08 B 0 11 25 0 Merge 'linux-review/Quentin-Deslandes/scsi-aic79xx-NULL-check-before-some-freeing-functions-is-not-needed/20190329-085203' into devel-hourly-2019040317 git bisect bad 13661a1fde4264bfef0ca9913f5930d2a65db100 # 22:22 B 0 8 22 0 Merge 'linux-review/Paolo-Abeni/net-sched-fix-stats-accounting-for-child-NOLOCK-qdiscs/20190329-133038' into devel-hourly-2019040317 git bisect bad 841f8512a7c0d534e1f9f25f39bb74104bcc119f # 22:43 B 0 11 25 0 Merge 'bvanassche/for-next' into devel-hourly-2019040317 git bisect good ba14a7cb27e335b1f3d16c308cefb232ad1c7416 # 23:06 G 11 0 0 0 Revert "target/core: Remove se_lun.lun_ref_active" git bisect good d3d9dbae5eef2a30bfc27f18625c002c2a80f982 # 23:22 G 10 0 0 0 Merge branch 'scsi-for-next' into bva-for-next git bisect good d828362ddd9e8f39d4b0320a1490cd5a19ec5196 # 23:37 G 11 0 0 0 tools-rcupdate git bisect good 0e5a8bb4289f431e012851f1ccfa37c548a76eb6 # 23:53 G 11 0 0 0 tools-lockdep-gitignore git bisect bad d64ce5ba29c48a4dd9c76db5ad7742ace2abf928 # 23:53 B 0 2 16 0 Merge branch 'dynamic-lockdep-keys' into bva-for-next git bisect bad 3a5d5346ab1f5d27593fe18af30ab6b7b76dff0d # 00:11 B 0 3 17 0 locking/lockdep: Zap lock classes even with lock debugging disabled # first bad commit: [3a5d5346ab1f5d27593fe18af30ab6b7b76dff0d] locking/lockdep: Zap lock classes even with lock debugging disabled git bisect good 0e5a8bb4289f431e012851f1ccfa37c548a76eb6 # 00:21 G 30 0 0 0 tools-lockdep-gitignore # extra tests with debug options git bisect bad 3a5d5346ab1f5d27593fe18af30ab6b7b76dff0d # 00:39 B 0 11 25 0 locking/lockdep: Zap lock classes even with lock debugging disabled # extra tests on HEAD of linux-devel/devel-hourly-2019040317 git bisect bad c2a13009673fb4858bdc08325e9db6eec8bc33b3 # 00:39 B 0 17 34 0 0day head guard for 'devel-hourly-2019040317' # extra tests on tree/branch bvanassche/for-next # extra tests with first bad commit reverted git bisect good 382101bdbc1352e56f140c1db7e2ba29985f784f # 01:16 G 10 0 0 0 Revert "locking/lockdep: Zap lock classes even with lock debugging disabled" --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/lkp Intel Corporation