Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
kemi/rwsem_regression_debug
commit 82f87d8e5bb1dc0527aec4395e0cdb1e20efbc2d
Author: Kemi Wang <kemi.wang(a)intel.com>
AuthorDate: Fri Dec 28 10:14:22 2018 +0800
Commit: Kemi Wang <kemi.wang(a)intel.com>
CommitDate: Fri Dec 28 10:14:22 2018 +0800
hack: allow spinning even if sem->owner is reader
Signed-off-by: Kemi Wang <kemi.wang(a)intel.com>
9bc8039e71 mm: brk: downgrade mmap_sem to read when shrinking
82f87d8e5b hack: allow spinning even if sem->owner is reader
+-----------------------------------------------------+------------+------------+
| | 9bc8039e71 | 82f87d8e5b |
+-----------------------------------------------------+------------+------------+
| boot_successes | 33 | 0 |
| boot_failures | 2 | 13 |
| BUG:kernel_hang_in_boot-around-mounting-root_stage | 2 | 1 |
| BUG:KASAN:user-memory-access_in_r | 0 | 10 |
| BUG:unable_to_handle_kernel | 0 | 12 |
| Oops:#[##] | 0 | 12 |
| RIP:rwsem_optimistic_spin | 0 | 12 |
| Kernel_panic-not_syncing:Fatal_exception | 0 | 12 |
| WARNING:at_kernel/locking/lockdep.c:#lock_downgrade | 0 | 2 |
| RIP:lock_downgrade | 0 | 2 |
+-----------------------------------------------------+------------+------------+
[ 224.469564] _warn_unseeded_randomness: 2 callbacks suppressed
[ 224.480544] random: get_random_u64 called from arch_rnd+0x2e/0x50 with crng_init=1
[ 224.494512] random: get_random_u64 called from load_elf_binary+0x617/0x18ad with
crng_init=1
[ 224.652238] random: get_random_u32 called from arch_setup_additional_pages+0x77/0xb0
with crng_init=1
[ 225.404635] ==================================================================
[ 225.417736] BUG: KASAN: user-memory-access in rwsem_optimistic_spin+0xd0/0x270
[ 225.429691] Read of size 4 at addr 0000000000002463 by task udevd/799
[ 225.439737]
[ 225.442818] CPU: 0 PID: 799 Comm: udevd Tainted: G T
4.19.0-06996-g82f87d8 #1
[ 225.457010] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1
04/01/2014
[ 225.470745] Call Trace:
[ 225.475738] dump_stack+0x7c/0xbb
[ 225.481609] ? rwsem_optimistic_spin+0xd0/0x270
[ 225.489382] kasan_report+0x20e/0x360
[ 225.495987] rwsem_optimistic_spin+0xd0/0x270
[ 225.502728] rwsem_down_write_failed+0xd7/0x450
[ 225.510835] ? rwsem_down_read_failed_killable+0x3b0/0x3b0
[ 225.519394] ? mark_lock+0xb7/0x840
[ 225.524117] ? check_chain_key+0x17f/0x1e0
[ 225.529858] ? pvclock_clocksource_read+0xd0/0x180
[ 225.537147] ? sched_clock_cpu+0x30/0x130
[ 225.544015] ? find_held_lock+0xba/0xd0
[ 225.550860] ? path_openat+0x50a/0x11f0
[ 225.557537] ? call_rwsem_down_write_failed+0x13/0x20
[ 225.566217] call_rwsem_down_write_failed+0x13/0x20
[ 225.574540] ? lock_contended+0x5a2/0x5e0
[ 225.581507] down_write+0x8a/0xc0
[ 225.587246] path_openat+0x4b0/0x11f0
[ 225.593827] ? lookup_open+0x9e0/0x9e0
[ 225.600248] ? do_sys_open+0x19f/0x2b0
[ 225.606534] ? do_syscall_64+0x31d/0x510
[ 225.613426] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe
[ 225.621952] ? mark_lock+0xb7/0x840
[ 225.628534] ? check_chain_key+0x17f/0x1e0
[ 225.635921] ? pvclock_clocksource_read+0xd0/0x180
[ 225.644899] ? mark_lock+0xb7/0x840
[ 225.651603] ? check_chain_key+0x17f/0x1e0
[ 225.659446] ? pvclock_clocksource_read+0xd0/0x180
[ 225.668722] do_filp_open+0xf3/0x180
[ 225.675619] ? may_open_dev+0x50/0x50
[ 225.682943] ? check_flags+0x220/0x220
[ 225.690207] ? __lock_is_held+0x61/0xc0
[ 225.697980] do_sys_open+0x1ce/0x2b0
[ 225.704917] ? filp_open+0x50/0x50
[ 225.711495] ? mark_held_locks+0x1b/0xa0
[ 225.719143] ? trace_hardirqs_off_caller+0x4d/0x110
[ 225.728218] ? mark_held_locks+0x1b/0xa0
[ 225.735761] ? do_syscall_64+0xa5/0x510
[ 225.743217] do_syscall_64+0x31d/0x510
[ 225.750182] entry_SYSCALL_64_after_hwframe+0x49/0xbe
[ 225.759321] RIP: 0033:0x7f3d2808feb0
[ 225.765900] Code: 48 8b 15 93 0f 2d 00 f7 d8 64 89 02 48 83 c8 ff c3 90 90 90 90 90 90
90 90 90 83 3d 2d 73 2d 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31
c3 48 83 ec 08 e8 2e b3 01 00 48 89 04 24
[ 225.798018] RSP: 002b:00007ffe3719fed8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
[ 225.811469] RAX: ffffffffffffffda RBX: 0000558a7c0d2fa0 RCX: 00007f3d2808feb0
[ 225.824659] RDX: 00000000000001b6 RSI: 0000000000080241 RDI: 00007ffe371a03a8
[ 225.837808] RBP: 00007ffe3719ff30 R08: 0000000000000000 R09: 0000558a7b9cf973
[ 225.850900] R10: 0000000000000003 R11: 0000000000000246 R12: 0000558a7b9cf971
[ 225.863999] R13: 00007ffe371a03a8 R14: 0000000000000004 R15: 0000558a7c0d2f80
[ 225.877442] ==================================================================
[ 225.890825] Disabling lock debugging due to kernel taint
[ 225.900971] BUG: unable to handle kernel paging request at 0000000000002463
[ 225.913702] PGD 0 P4D 0
[ 225.918433] Oops: 0000 [#1] SMP KASAN
[ 225.925341] CPU: 0 PID: 799 Comm: udevd Tainted: G B T
4.19.0-06996-g82f87d8 #1
[ 225.940632] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1
04/01/2014
[ 225.956907] RIP: 0010:rwsem_optimistic_spin+0xd0/0x270
[ 225.966395] Code: 48 8d 43 68 48 89 c7 48 89 45 c8 e8 7a eb 17 00 4c 8b 63 68 c6 45 d7
01 4d 85 e4 74 1b 49 8d bc 24 60 24 00 00 e8 60 ea 17 00 <41> 8b 84 24 60 24 00 00
85 c0 0f 95 45 d7 e8 ad cc 01 00 85 c0 74
[ 225.999911] RSP: 0018:ffff88001ee1f958 EFLAGS: 00010286
[ 226.009468] RAX: ffff88001f20c800 RBX: ffff88001f0b1040 RCX: ffffffff81165c01
[ 226.022432] RDX: 0000000000000003 RSI: dffffc0000000000 RDI: ffffffff82ccfc78
[ 226.035458] RBP: ffff88001ee1f9a0 R08: fffffbfff0598626 R09: fffffbfff0598626
[ 226.048420] R10: 0000000000000001 R11: fffffbfff0598625 R12: 0000000000000003
[ 226.061446] R13: ffff88001ee1fe01 R14: ffff88001f20c800 R15: 1ffff10003dc3f3a
[ 226.074540] FS: 00007f3d289a97c0(0000) GS:ffff880018e00000(0000)
knlGS:0000000000000000
[ 226.088767] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 226.099420] CR2: 0000000000002463 CR3: 00000000125d0000 CR4: 00000000000006b0
[ 226.112422] Call Trace:
[ 226.117246] rwsem_down_write_failed+0xd7/0x450
[ 226.125735] ? rwsem_down_read_failed_killable+0x3b0/0x3b0
[ 226.135821] ? mark_lock+0xb7/0x840
[ 226.142326] ? check_chain_key+0x17f/0x1e0
[ 226.149946] ? pvclock_clocksource_read+0xd0/0x180
[ 226.158862] ? sched_clock_cpu+0x30/0x130
[ 226.166279] ? find_held_lock+0xba/0xd0
[ 226.173539] ? path_openat+0x50a/0x11f0
[ 226.180730] ? call_rwsem_down_write_failed+0x13/0x20
[ 226.190063] call_rwsem_down_write_failed+0x13/0x20
[ 226.199137] ? lock_contended+0x5a2/0x5e0
[ 226.206564] down_write+0x8a/0xc0
[ 226.211762] _warn_unseeded_randomness: 12 callbacks suppressed
[ 226.211828] random: get_random_u64 called from arch_rnd+0x2e/0x50 with crng_init=1
[ 226.212882] path_openat+0x4b0/0x11f0
[ 226.231688] random: get_random_u64 called from load_elf_binary+0x617/0x18ad with
crng_init=1
[ 226.244793] ? lookup_open+0x9e0/0x9e0
[ 226.244836] ? do_sys_open+0x19f/0x2b0
[ 226.244898] ? do_syscall_64+0x31d/0x510
[ 226.286017] ? entry_SYSCALL_64_after_hwframe+0x49/0xbe
[ 226.295583] ? mark_lock+0xb7/0x840
[ 226.301251] ? check_chain_key+0x17f/0x1e0
[ 226.307216] ? pvclock_clocksource_read+0xd0/0x180
[ 226.307457] random: get_random_u32 called from arch_setup_additional_pages+0x77/0xb0
with crng_init=1
[ 226.314085] ? mark_lock+0xb7/0x840
[ 226.314146] ? check_chain_key+0x17f/0x1e0
[ 226.314211] ? pvclock_clocksource_read+0xd0/0x180
[ 226.314308] do_filp_open+0xf3/0x180
[ 226.356247] ? may_open_dev+0x50/0x50
[ 226.362686] ? check_flags+0x220/0x220
[ 226.369460] ? __lock_is_held+0x61/0xc0
[ 226.376040] do_sys_open+0x1ce/0x2b0
[ 226.381782] ? filp_open+0x50/0x50
[ 226.387064] ? mark_held_locks+0x1b/0xa0
[ 226.393572] ? trace_hardirqs_off_caller+0x4d/0x110
[ 226.401741] ? mark_held_locks+0x1b/0xa0
[ 226.408125] ? do_syscall_64+0xa5/0x510
[ 226.414537] do_syscall_64+0x31d/0x510
[ 226.420959] entry_SYSCALL_64_after_hwframe+0x49/0xbe
[ 226.428767] RIP: 0033:0x7f3d2808feb0
[ 226.435254] Code: 48 8b 15 93 0f 2d 00 f7 d8 64 89 02 48 83 c8 ff c3 90 90 90 90 90 90
90 90 90 83 3d 2d 73 2d 00 00 75 10 b8 02 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 31
c3 48 83 ec 08 e8 2e b3 01 00 48 89 04 24
[ 226.461914] RSP: 002b:00007ffe3719fed8 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
[ 226.472089] RAX: ffffffffffffffda RBX: 0000558a7c0d2fa0 RCX: 00007f3d2808feb0
[ 226.481617] RDX: 00000000000001b6 RSI: 0000000000080241 RDI: 00007ffe371a03a8
[ 226.491311] RBP: 00007ffe3719ff30 R08: 0000000000000000 R09: 0000558a7b9cf973
[ 226.500834] R10: 0000000000000003 R11: 0000000000000246 R12: 0000558a7b9cf971
[ 226.510397] R13: 00007ffe371a03a8 R14: 0000000000000004 R15: 0000558a7c0d2f80
[ 226.519862] Modules linked in:
[ 226.523849] CR2: 0000000000002463
[ 226.528156] ---[ end trace 3763cfdadd4f489a ]---
[ 226.534380] RIP: 0010:rwsem_optimistic_spin+0xd0/0x270
# HH:MM RESULT GOOD BAD
GOOD_BUT_DIRTY DIRTY_NOT_BAD
git bisect start 29edf42dff090551a6838e139a0b8205833d1687
8fe28cb58bcb235034b64cbbb7550a8a43fd88be --
git bisect bad f2e342347a3b0db291f287373cef6cfe0810b47a # 01:33 B 0 11 26 0
Merge
'linux-review/Mathieu-Malaterre/clk-Use-__printf-markup-to-silence-compiler/20181219-090054'
into devel-hourly-2018122818
git bisect bad a32fd1f788c34f3a3f22cdc1d0fc2652fdd7677b # 02:13 B 0 10 25 0
Merge
'linux-review/Tetsuo-Handa/memcg-killed-threads-should-not-invoke-memcg-OOM-killer/20181226-205210'
into devel-hourly-2018122818
git bisect bad e3e238124fd7744596531f1d76f934be7f4e3aaa # 02:29 B 0 9 25 1
Merge
'linux-review/Yangtao-Li/clk-armada-xp-fix-refcount-leak-in-axp_clk_init/20181227-025452'
into devel-hourly-2018122818
git bisect bad 5e6c9923d64eada5d66a5d4714f645accd6c6a98 # 02:45 B 0 4 19 0
Merge
'linux-review/Yangtao-Li/clk-ti-fix-refcount-leak-in-ti_dt_clocks_register/20181226-221559'
into devel-hourly-2018122818
git bisect good c03910493dbb1be9de7f3bef15fa9614b551b945 # 03:13 G 10 0 0 0
Merge 'linux-review/Pavel-Machek/mfd-ti-lmu-fix-typo/20181228-041345' into
devel-hourly-2018122818
git bisect good 15f897a7c0009b90e8ee974d5e86c94731eb9515 # 03:38 G 11 0 0 0
Merge
'linux-review/Srinath-Mannam/nvmem-bcm-ocotp-Add-ACPI-support-to-BCM-OCOTP/20181227-114103'
into devel-hourly-2018122818
git bisect bad bc13d5cab0f904e03c92e0f8592610815ee9df09 # 09:53 B 0 1 16 0
Merge
'linux-review/Siva-Rebbagondla/rsi-add-support-for-hardware-scan-offload/20181227-175637'
into devel-hourly-2018122818
git bisect good 82ba36a2883e55f9a7fe888a496b2536597fd7ce # 10:19 G 11 0 0 0
Merge
'linux-review/huhai/arm64-lib-add-accelerated-do_csum-for-arm64/20181228-155335'
into devel-hourly-2018122818
git bisect bad 4f4857b2df0602c14a79df402d84df2a4038ceeb # 10:37 B 0 1 16 0
Merge 'kemi/rwsem_regression_debug' into devel-hourly-2018122818
git bisect good 51a102f8682cdaa1d711f76eec24998637d6b5bb # 11:05 G 11 0 0 0
Merge 'jkirsher-net-queue/master' into devel-hourly-2018122818
git bisect bad 82f87d8e5bb1dc0527aec4395e0cdb1e20efbc2d # 11:30 B 0 1 17 1
hack: allow spinning even if sem->owner is reader
# first bad commit: [82f87d8e5bb1dc0527aec4395e0cdb1e20efbc2d] hack: allow spinning even
if sem->owner is reader
git bisect good 9bc8039e715da3b53dbac89525323a9f2f69b7b5 # 11:59 G 30 0 0 0
mm: brk: downgrade mmap_sem to read when shrinking
# extra tests with debug options
git bisect bad 82f87d8e5bb1dc0527aec4395e0cdb1e20efbc2d # 12:22 B 0 2 17 0
hack: allow spinning even if sem->owner is reader
# extra tests on HEAD of linux-devel/devel-hourly-2018122818
git bisect bad 29edf42dff090551a6838e139a0b8205833d1687 # 12:27 B 0 13 31 0
0day head guard for 'devel-hourly-2018122818'
# extra tests on tree/branch kemi/rwsem_regression_debug
git bisect bad 82f87d8e5bb1dc0527aec4395e0cdb1e20efbc2d # 12:29 B 0 12 28 1
hack: allow spinning even if sem->owner is reader
# extra tests with first bad commit reverted
git bisect good 8346876dc4ea7f68ec0d661f651f136069606a9a # 13:07 G 11 0 0 0
Revert "hack: allow spinning even if sem->owner is reader"
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/lkp Intel Corporation