Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
https://github.com/0day-ci/linux/commits/youngjun/kernfs-fix-possibility-...
commit 90f0081848b85a7943dab6b1036c40f68ee60264
Author: youngjun <her0gyugyu(a)gmail.com>
AuthorDate: Mon Apr 27 09:48:36 2020 -0700
Commit: 0day robot <lkp(a)intel.com>
CommitDate: Tue Apr 28 09:27:55 2020 +0800
kernfs: fix possibility of NULL pointer dereference.
When dentry is negative, "kernfs_dentry_node" returns NULL.
In this case, "kernfs_root" dereferences NULL pointer.
Signed-off-by: youngjun <her0gyugyu(a)gmail.com>
96fa72ffb2 Merge 5.7-rc3 into driver-core-next
90f0081848 kernfs: fix possibility of NULL pointer dereference.
+------------------------------------------------+------------+------------+
| | 96fa72ffb2 | 90f0081848 |
+------------------------------------------------+------------+------------+
| boot_successes | 41 | 6 |
| boot_failures | 0 | 8 |
| WARNING:lock_held_when_returning_to_user_space | 0 | 8 |
| is_leaving_the_kernel_with_locks_still_held | 0 | 8 |
+------------------------------------------------+------------+------------+
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <lkp(a)intel.com>
[child3:684] vm86old (113) returned ENOSYS, marking as inactive.
[child1:686] io_cancel (249) returned ENOSYS, marking as inactive.
[child1:686] mq_getsetattr (282) returned ENOSYS, marking as inactive.
[ 18.050958]
[ 18.051083] ================================================
[ 18.051565] WARNING: lock held when returning to user space!
[ 18.052193] 5.7.0-rc3-00008-g90f0081848b85a #1 Not tainted
[ 18.052819] ------------------------------------------------
[ 18.053465] trinity-c1/686 is leaving the kernel with locks still held!
[ 18.054215] 1 lock held by trinity-c1/686:
[ 18.054687] #0: f42f28f8 (kn->active#6){++++}-{0:0}, at:
kernfs_iop_rename+0x2b/0xd0
[child2:683] mq_getsetattr (282) returned ENOSYS, marking as inactive.
[child2:683] pkey_alloc (381) returned ENOSYS, marking as inactive.
[ 18.077451] VFS: Warning: trinity-c1 using old stat() call. Recompile your binary.
[child1:686] io_setup (245) returned ENOSYS, marking as inactive.
# HH:MM RESULT GOOD BAD
GOOD_BUT_DIRTY DIRTY_NOT_BAD
git bisect start 6af4b6f59d9d3cd72325056b7b25cf9016952263
6a8b55ed4056ea5559ebe4f6a4b247f627870d4c --
git bisect bad 705b896e3b86bfc9653f17c55c1c23b6e6369aad # 05:30 B 1 1 0 0
Merge
'linux-review/yuiko-oshino-microchip-com/net-phy-microchip_t1-add-lan87xx_phy_init-to-initialize-the-lan87xx-phy/20200422-105747'
into devel-hourly-2020042821
git bisect bad d2f89f2e48319d5aa0916afb7409ba79a111bdca # 05:56 B 0 3 19 0
Merge
'linux-review/Shijie-Hu/hugetlbfs-Get-unmapped-area-below-TASK_UNMAPPED_BASE-for-hugetlbfs/20200428-071603'
into devel-hourly-2020042821
git bisect good d6b6606d1fab7b5c0dcc6b71266136c8bf423eb1 # 06:41 G 13 0 0 0
Merge
'linux-review/David-Ahern/net-Add-support-for-XDP-in-egress-path/20200428-135444'
into devel-hourly-2020042821
git bisect bad 6488dc0bee3801181a7e064817cff5cf0838ea47 # 07:04 B 1 4 0 0
Merge
'linux-review/Nishad-Kamdar/NFS-Use-the-correct-style-for-SPDX-License-Identifier/20200427-164819'
into devel-hourly-2020042821
git bisect bad eadb2a0d40b96f5a93dd880e60b92656d8a358fe # 07:34 B 0 4 21 0
Merge
'linux-review/Wei-Yongjun/ath11k-use-GFP_ATOMIC-under-spin-lock/20200428-062853'
into devel-hourly-2020042821
git bisect bad c2f6bab338be7aedaa3b4f5b14b2d9b1e98fa950 # 08:29 B 0 1 17 0
Merge
'linux-review/Wei-Yongjun/ath11k-remove-redundant-dev_err-call-in-ath11k_ahb_probe/20200428-070454'
into devel-hourly-2020042821
git bisect bad 6d50d87806ace0b238c44be99e163f028e62b312 # 09:23 B 1 3 0 0
Merge
'linux-review/Anthony-Felice/net-tc35815-Fix-phydev-supported-advertising-mask/20200428-044618'
into devel-hourly-2020042821
git bisect bad 3ae490f0ef7a579e0009e63e7a368f0bc2868fcf # 10:07 B 2 5 0 0
Merge
'linux-review/youngjun/kernfs-fix-possibility-of-NULL-pointer-dereference/20200428-092748'
into devel-hourly-2020042821
git bisect good 1463aa7c6bee023a635540246f9b1e99e0c23f3f # 10:36 G 14 0 0 0
Merge
'linux-review/Gustavo-A-R-Silva/mtd-lpddr-Fix-bad-logic-bug-in-print_drs_error/20200428-120038'
into devel-hourly-2020042821
git bisect good 69b07ee33eb12a505d55e3e716fc7452496b9041 # 13:32 G 14 0 1 1
debugfs: Use the correct style for SPDX License Identifier
git bisect good fbc35b45f9f6a971341b9462c6e94c257e779fb5 # 14:30 G 13 0 1 1
Add documentation on meaning of -EPROBE_DEFER
git bisect bad 90f0081848b85a7943dab6b1036c40f68ee60264 # 15:54 B 0 1 17 0
kernfs: fix possibility of NULL pointer dereference.
git bisect good 96fa72ffb2155dba9ba8c5d282a1ff19ed32f177 # 16:12 G 13 0 0 0
Merge 5.7-rc3 into driver-core-next
# first bad commit: [90f0081848b85a7943dab6b1036c40f68ee60264] kernfs: fix possibility of
NULL pointer dereference.
git bisect good 96fa72ffb2155dba9ba8c5d282a1ff19ed32f177 # 16:20 G 39 0 1 1
Merge 5.7-rc3 into driver-core-next
# extra tests with debug options
git bisect bad 90f0081848b85a7943dab6b1036c40f68ee60264 # 17:00 B 1 1 0 0
kernfs: fix possibility of NULL pointer dereference.
# extra tests on head commit of
linux-review/youngjun/kernfs-fix-possibility-of-NULL-pointer-dereference/20200428-092748
git bisect bad 90f0081848b85a7943dab6b1036c40f68ee60264 # 17:17 B 6 8 0 0
kernfs: fix possibility of NULL pointer dereference.
# bad: [90f0081848b85a7943dab6b1036c40f68ee60264] kernfs: fix possibility of NULL pointer
dereference.
# extra tests on revert first bad commit
git bisect good cc2b347449ca6666b089dca93c3769e9e8813440 # 18:59 G 13 0 0 0
Revert "kernfs: fix possibility of NULL pointer dereference."
# good: [cc2b347449ca6666b089dca93c3769e9e8813440] Revert "kernfs: fix possibility of
NULL pointer dereference."
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/lkp@lists.01.org