Greetings,
0day kernel testing robot got the below dmesg and the first bad commit is
git://git.infradead.org/users/hch/misc.git mmu-notifier-cleanup
commit 7a2452a9b098b402be81bef0b49953f3376e35dc
Author: Christoph Hellwig <hch(a)lst.de>
AuthorDate: Tue Jul 23 10:23:09 2019 +0200
Commit: Christoph Hellwig <hch(a)lst.de>
CommitDate: Tue Jul 23 12:34:53 2019 +0200
mm: assert that mmap_sem is held over invalidate_range_{start,end}
The notifiers rely on the fact that mmap_sem is held, so add lockdep
annotations to assert that this is actually true.
Signed-off-by: Christoph Hellwig <hch(a)lst.de>
58f936694c mm: merge struct mmu_notifier_mm into struct mm_struct
7a2452a9b0 mm: assert that mmap_sem is held over invalidate_range_{start,end}
fd2a4ea66b mm: remove the hmm_mirror abstraction
+-----------------------------------------------------------------+------------+------------+------------+
| | 58f936694c |
7a2452a9b0 | fd2a4ea66b |
+-----------------------------------------------------------------+------------+------------+------------+
| boot_successes | 31 | 0
| 0 |
| boot_failures | 4 | 13
| 13 |
| BUG:soft_lockup-CPU##stuck_for#s | 2 | 1
| |
| RIP:__asan_load1 | 1 |
| |
| Kernel_panic-not_syncing:softlockup:hung_tasks | 2 | 1
| |
| RIP:__asan_load4 | 1 |
| |
| invoked_oom-killer:gfp_mask=0x | 2 |
| |
| Mem-Info | 2 |
| |
| WARNING:at_include/linux/mmu_notifier.h:#unmap_vmas | 0 | 12
| 13 |
| RIP:unmap_vmas | 0 | 12
| 13 |
| WARNING:at_include/linux/mmu_notifier.h:#__unmap_hugepage_range | 0 | 12
| 13 |
| RIP:__unmap_hugepage_range | 0 | 12
| 13 |
| WARNING:at_include/linux/mmu_notifier.h:#try_to_unmap_one | 0 | 6
| 6 |
| RIP:try_to_unmap_one | 0 | 6
| 6 |
| RIP:__asan_load8 | 0 | 1
| |
+-----------------------------------------------------------------+------------+------------+------------+
If you fix the issue, kindly add following tag
Reported-by: kernel test robot <lkp(a)intel.com>
[ 23.120145] x86/mm: Checked W+X mappings: passed, no W+X pages found.
[ 23.121141] Run /init as init process
[ 23.141368] random: init: uninitialized urandom read (12 bytes read)
[ 23.149842] init: Failed to spawn kernel-tests main process: unable to execute: No such
file or directory
[ 23.156208] ------------[ cut here ]------------
[ 23.157217] WARNING: CPU: 1 PID: 150 at include/linux/mmu_notifier.h:296
unmap_vmas+0x18d/0x260
[ 23.159194] Modules linked in:
[ 23.159696] CPU: 1 PID: 150 Comm: init Not tainted 5.3.0-rc1-00010-g7a2452a #1
[ 23.160848] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1
04/01/2014
[ 23.162148] RIP: 0010:unmap_vmas+0x18d/0x260
[ 23.162850] Code: 00 37 02 01 85 c0 0f 85 94 00 00 00 48 c7 c7 10 df c7 af 31 c0 48 83
05 10 00 37 02 01 e8 72 fc ec ff 48 83 05 0b 00 37 02 01 <0f> 0b 48 83 05 09 00 37
02 01 4c 8b 7d b8 e9 ca fe ff ff 48 8b 45
[ 23.165765] RSP: 0018:ffff88801eebfcf8 EFLAGS: 00010202
[ 23.166739] RAX: 0000000000000024 RBX: ffff888012cd8300 RCX: ffffffffae5af16b
[ 23.168127] RDX: 1ffffffff5fdb464 RSI: dffffc0000000000 RDI: 0000000000000246
[ 23.169289] RBP: ffff88801eebfd48 R08: fffffbfff5fdb465 R09: fffffbfff5fdb465
[ 23.170413] R10: 0000000002c55508 R11: fffffbfff5fdb464 R12: ffffffffffffffff
[ 23.171592] R13: 0000000000000000 R14: ffff88801eebfd58 R15: ffff888000158600
[ 23.173001] FS: 0000000000000000(0000) GS:ffff888018f00000(0000)
knlGS:0000000000000000
[ 23.174304] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 23.175264] CR2: 00007f4dae70b1b8 CR3: 00000000125e0000 CR4: 00000000000006e0
[ 23.176403] Call Trace:
[ 23.176807] exit_mmap+0x100/0x2f0
[ 23.177342] ? __might_sleep+0x7b/0x120
[ 23.177926] mmput+0xea/0x2e0
[ 23.178393] do_exit+0x6f9/0x1bd0
[ 23.178954] ? find_held_lock+0xd9/0x100
[ 23.179594] ? __context_tracking_exit+0x9c/0xa0
[ 23.180319] do_group_exit+0x95/0x1c0
[ 23.180878] __x64_sys_exit_group+0x2f/0x30
[ 23.181488] do_syscall_64+0xc6/0x670
[ 23.182030] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 23.182781] RIP: 0033:0x7f4dae205408
[ 23.183448] Code: 00 00 be 3c 00 00 00 eb 19 66 0f 1f 84 00 00 00 00 00 48 89 d7 89 f0
0f 05 48 3d 00 f0 ff ff 77 19 f4 48 89 d7 44 89 c0 0f 05 <48> 3d 00 f0 ff ff 76 e0
f7 d8 64 41 89 01 eb d8 f7 d8 64 41 89 01
[ 23.186213] RSP: 002b:00007fff62896c58 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
[ 23.187467] RAX: ffffffffffffffda RBX: 00000000000000ff RCX: 00007f4dae205408
[ 23.188614] RDX: 00000000000000ff RSI: 000000000000003c RDI: 00000000000000ff
[ 23.189794] RBP: 00007f4dae4f9820 R08: 00000000000000e7 R09: ffffffffffffffa0
[ 23.190869] R10: 00007f4dae500fa8 R11: 0000000000000246 R12: 00007f4dae4f9820
[ 23.192035] R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000
[ 23.193197] ---[ end trace 71cd3a11be9963a5 ]---
[ 23.200209] ------------[ cut here ]------------
[ 23.200209] ------------[ cut here ]------------
[ 23.201412] WARNING: CPU: 1 PID: 151 at include/linux/mmu_notifier.h:296
unmap_vmas+0x18d/0x260
[ 23.203921] Modules linked in:
[ 23.204675] CPU: 1 PID: 151 Comm: init Tainted: G W
5.3.0-rc1-00010-g7a2452a #1
[ 23.206691] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1
04/01/2014
[ 23.208637] RIP: 0010:unmap_vmas+0x18d/0x260
[ 23.209655] Code: 00 37 02 01 85 c0 0f 85 94 00 00 00 48 c7 c7 10 df c7 af 31 c0 48 83
05 10 00 37 02 01 e8 72 fc ec ff 48 83 05 0b 00 37 02 01 <0f> 0b 48 83 05 09 00 37
02 01 4c 8b 7d b8 e9 ca fe ff ff 48 8b 45
[ 23.214736] RSP: 0018:ffff88801ef07b50 EFLAGS: 00010202
[ 23.216293] RAX: 0000000000000024 RBX: ffff888012daae00 RCX: ffffffffae5af16b
[ 23.218383] RDX: 1ffffffff5fdb464 RSI: dffffc0000000000 RDI: 0000000000000246
[ 23.220467] RBP: ffff88801ef07ba0 R08: fffffbfff5fdb465 R09: fffffbfff5fdb465
[ 23.222577] R10: 0000000002c66395 R11: fffffbfff5fdb464 R12: ffffffffffffffff
[ 23.224681] R13: 0000000000000000 R14: ffff88801ef07bb0 R15: ffff888000158040
[ 23.226787] FS: 0000000000000000(0000) GS:ffff888018f00000(0000)
knlGS:0000000000000000
[ 23.229162] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 23.230862] CR2: 00005565193f9de9 CR3: 000000001ef5a000 CR4: 00000000000006e0
[ 23.232986] Call Trace:
[ 23.233761] exit_mmap+0x100/0x2f0
[ 23.234805] ? __might_sleep+0x7b/0x120
[ 23.235986] mmput+0xea/0x2e0
[ 23.236897] flush_old_exec+0x375/0x580
[ 23.238068] load_elf_binary+0x720/0x1ac1
[ 23.239294] ? match_held_lock+0x24/0x360
[ 23.240585] ? find_held_lock+0xd9/0x100
[ 23.241823] search_binary_handler+0xf8/0x3a0
[ 23.243147] __do_execve_file+0xcf3/0x10c0
[ 23.244594] do_execve+0x28/0x40
[ 23.245586] __x64_sys_execve+0x56/0x70
[ 23.246707] do_syscall_64+0xc6/0x670
[ 23.247793] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 23.248936] RIP: 0033:0x7f4dae205427
[ 23.249759] Code: Bad RIP value.
[ 23.250504] RSP: 002b:00007fff62896be8 EFLAGS: 00000246 ORIG_RAX: 000000000000003b
[ 23.252310] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f4dae205427
[ 23.254394] RDX: 000055651b2a7a30 RSI: 000055651b2a86b0 RDI: 00007fff62896c28
[ 23.256886] RBP: 00007fff62896cd0 R08: 0000000000000009 R09: 0000000000000000
[ 23.258568] R10: 0000000000000008 R11: 0000000000000246 R12: 000055651b2a7a30
[ 23.259851] R13: 000055651b2a880d R14: 000055651b2a8811 R15: 00007fff62896c28
[ 23.260977] ---[ end trace 71cd3a11be9963a6 ]---
[ 23.262868] ------------[ cut here ]------------
[ 23.262868] ------------[ cut here ]------------
[ 23.263984] WARNING: CPU: 1 PID: 150 at include/linux/mmu_notifier.h:317
unmap_vmas+0x1e7/0x260
[ 23.265630] Modules linked in:
[ 23.266132] CPU: 1 PID: 150 Comm: init Tainted: G W
5.3.0-rc1-00010-g7a2452a #1
[ 23.267521] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1
04/01/2014
[ 23.268816] RIP: 0010:unmap_vmas+0x1e7/0x260
[ 23.269504] Code: 48 83 05 1b 00 37 02 01 85 c0 75 2d 48 c7 c7 10 df c7 af 31 c0 48 83
05 16 00 37 02 01 e8 18 fc ec ff 48 83 05 11 00 37 02 01 <0f> 0b 48 83 05 0f 00 37
02 01 e9 19 ff ff ff 48 83 05 ea ff 36 02
[ 23.272522] RSP: 0018:ffff88801eebfcf8 EFLAGS: 00010202
[ 23.273345] RAX: 0000000000000024 RBX: 0000000000000000 RCX: ffffffffae5af16b
[ 23.274463] RDX: 1ffffffff5fdb464 RSI: dffffc0000000000 RDI: 0000000000000246
[ 23.275583] RBP: ffff88801eebfd48 R08: fffffbfff5fdb465 R09: fffffbfff5fdb465
[ 23.276561] R10: 0000000002c6abf8 R11: fffffbfff5fdb464 R12: ffffffffffffffff
[ 23.277543] R13: 0000000000000000 R14: ffff88801eebfd58 R15: ffff888000158600
[ 23.278525] FS: 00007f4daef8c700(0000) GS:ffff888018f00000(0000)
knlGS:0000000000000000
[ 23.279752] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 23.280547] CR2: 00007f4dae2053fd CR3: 000000001ef5a000 CR4: 00000000000006e0
[ 23.281553] Call Trace:
[ 23.281922] exit_mmap+0x100/0x2f0
[ 23.282420] mmput+0xea/0x2e0
[ 23.282849] do_exit+0x6f9/0x1bd0
[ 23.283426] ? find_held_lock+0xd9/0x100
[ 23.283983] ? __context_tracking_exit+0x9c/0xa0
[ 23.284630] do_group_exit+0x95/0x1c0
[ 23.285151] __x64_sys_exit_group+0x2f/0x30
[ 23.285740] do_syscall_64+0xc6/0x670
[ 23.286264] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 23.287063] RIP: 0033:0x7f4dae205408
[ 23.287888] Code: Bad RIP value.
[ 23.288632] RSP: 002b:00007fff62896c58 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
[ 23.290305] RAX: ffffffffffffffda RBX: 00000000000000ff RCX: 00007f4dae205408
[ 23.291968] RDX: 00000000000000ff RSI: 000000000000003c RDI: 00000000000000ff
[ 23.293643] RBP: 00007f4dae4f9820 R08: 00000000000000e7 R09: ffffffffffffffa0
[ 23.295355] R10: 00007f4dae500fa8 R11: 0000000000000246 R12: 00007f4dae4f9820
[ 23.297018] R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000
[ 23.298701] ---[ end trace 71cd3a11be9963a7 ]---
[ 23.301781] ------------[ cut here ]------------
[ 23.301781] ------------[ cut here ]------------
[ 23.303298] WARNING: CPU: 1 PID: 151 at include/linux/mmu_notifier.h:317
unmap_vmas+0x1e7/0x260
[ 23.306417] Modules linked in:
[ 23.307416] CPU: 1 PID: 151 Comm: init Tainted: G W
5.3.0-rc1-00010-g7a2452a #1
[ 23.309931] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1
04/01/2014
[ 23.312604] RIP: 0010:unmap_vmas+0x1e7/0x260
[ 23.314069] Code: 48 83 05 1b 00 37 02 01 85 c0 75 2d 48 c7 c7 10 df c7 af 31 c0 48 83
05 16 00 37 02 01 e8 18 fc ec ff 48 83 05 11 00 37 02 01 <0f> 0b 48 83 05 0f 00 37
02 01 e9 19 ff ff ff 48 83 05 ea ff 36 02
[ 23.320445] RSP: 0018:ffff88801ef07b50 EFLAGS: 00010202
[ 23.322254] RAX: 0000000000000024 RBX: 0000000000000000 RCX: ffffffffae5af16b
[ 23.324586] RDX: 1ffffffff5fdb464 RSI: dffffc0000000000 RDI: 0000000000000246
[ 23.327152] RBP: ffff88801ef07ba0 R08: fffffbfff5fdb465 R09: fffffbfff5fdb465
[ 23.329643] R10: 0000000002c70424 R11: fffffbfff5fdb464 R12: ffffffffffffffff
[ 23.332287] R13: 0000000000000000 R14: ffff88801ef07bb0 R15: ffff888000158040
[ 23.334851] FS: 00007f4daef8c700(0000) GS:ffff888018f00000(0000)
knlGS:0000000000000000
[ 23.337830] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 23.339949] CR2: 00007f4dae2053de CR3: 000000001ef5a000 CR4: 00000000000006e0
[ 23.342667] Call Trace:
[ 23.343651] exit_mmap+0x100/0x2f0
[ 23.344960] mmput+0xea/0x2e0
[ 23.346099] flush_old_exec+0x375/0x580
[ 23.347560] load_elf_binary+0x720/0x1ac1
[ 23.348221] ? match_held_lock+0x24/0x360
[ 23.348865] ? find_held_lock+0xd9/0x100
[ 23.349511] search_binary_handler+0xf8/0x3a0
[ 23.350218] __do_execve_file+0xcf3/0x10c0
[ 23.351005] do_execve+0x28/0x40
[ 23.351533] __x64_sys_execve+0x56/0x70
[ 23.352191] do_syscall_64+0xc6/0x670
[ 23.352792] entry_SYSCALL_64_after_hwframe+0x44/0xa9
[ 23.353595] RIP: 0033:0x7f4dae205427
[ 23.354176] Code: Bad RIP value.
[ 23.354754] RSP: 002b:00007fff62896be8 EFLAGS: 00000246 ORIG_RAX: 000000000000003b
[ 23.356467] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f4dae205427
[ 23.358049] RDX: 000055651b2a7a30 RSI: 000055651b2a86b0 RDI: 00007fff62896c28
[ 23.359466] RBP: 00007fff62896cd0 R08: 0000000000000009 R09: 0000000000000000
[ 23.360576] R10: 0000000000000008 R11: 0000000000000246 R12: 000055651b2a7a30
[ 23.361683] R13: 000055651b2a880d R14: 000055651b2a8811 R15: 00007fff62896c28
[ 23.362833] ---[ end trace 71cd3a11be9963a8 ]---
[ 23.364976] init (150) used greatest stack depth: 29472 bytes left
# HH:MM RESULT GOOD BAD
GOOD_BUT_DIRTY DIRTY_NOT_BAD
git bisect start 9753d961df5e44d13629e2ab95a25c0b9e412040
5f9e832c137075045d15cd6899ab0505cfb2ca4b --
git bisect bad 797829a5e97cb5bc7298aeb5ac203f3472b662ed # 12:19 B 2 1 2 2
Merge
'linux-review/Wei-Yongjun/RDMA-siw-fix-error-return-code-in-siw_init_module/20190718-205449'
into devel-hourly-2019072323
git bisect good ff446f0a684d90c251a580d9dc354388fcca4500 # 13:39 G 13 0 6 6
Merge
'linux-review/Eric-Auger/dma-mapping-Protect-dma_addressing_limited-against-NULL-dma_mask/20190723-060727'
into devel-hourly-2019072323
git bisect good a322704b127411fc05b51d0d4adbb7793bb3af36 # 14:01 G 12 0 3 3
Merge
'linux-review/Maxime-Chevallier/net-mvpp2-Don-t-check-for-3-consecutive-Idle-frames-for-10G-links/20190720-082727'
into devel-hourly-2019072323
git bisect bad f10cb51d7c82c62dca224c646872d0d708108766 # 14:20 B 1 2 1 1
Merge
'linux-review/Peter-Zijlstra/stacktrace-Force-USER_DS-for-stack_trace_save_user/20190719-150828'
into devel-hourly-2019072323
git bisect bad 1dc21bdc4480ef140cf80bd5523612990b67dcab # 14:48 B 0 2 18 0
Merge
'linux-review/UPDATE-20190721-044728/Yoshiaki-Okamoto/USB-serial-option-Add-support-for-ZTE-MF871A/20190712-053808'
into devel-hourly-2019072323
git bisect bad 12b2224057cf9bbc6138de5165f5d8da5a8e9755 # 15:09 B 0 3 19 0
Merge 'hch-misc/mmu-notifier-cleanup' into devel-hourly-2019072323
git bisect good 73df828ed5111467daefc7a882af0fd714820eb4 # 15:21 G 12 0 5 5
Merge
'linux-review/Chuhong-Yuan/ax88179_178a-Merge-memcpy-le32_to_cpus-to-get_unaligned_le32/20190720-070926'
into devel-hourly-2019072323
git bisect good 9f79f1a79dab2f8a1096d25b3f03b34e415038da # 15:40 G 12 0 5 5
Merge
'linux-review/Marek-Szyprowski/phy-exynos5-usbdrd-Calibrating-makes-sense-only-for-USB2-0-PHY/20190720-064551'
into devel-hourly-2019072323
git bisect good f8eef02736194483854d7f7eed529e8f23c8fe29 # 16:00 G 12 0 2 2
Merge
'linux-review/Marek-Szyprowski/phy-core-document-calibrate-method/20190720-062046'
into devel-hourly-2019072323
git bisect bad c4495f22b9f390611e7752f6b03c2eca57afaab9 # 16:21 B 0 2 18 0
nouveau: pass struct nouveau_svmm to nouveau_range_fault
git bisect good 58f936694c5fd6a4c50217e65ee2ee8b88438b66 # 17:59 G 13 0 3 3
mm: merge struct mmu_notifier_mm into struct mm_struct
git bisect bad 2f80e0c686f69d6071f1dd92f0faae36101a3871 # 18:19 B 0 3 19 0
amdkfd: reorder create_process
git bisect bad 7a2452a9b098b402be81bef0b49953f3376e35dc # 18:32 B 0 1 17 1
mm: assert that mmap_sem is held over invalidate_range_{start,end}
# first bad commit: [7a2452a9b098b402be81bef0b49953f3376e35dc] mm: assert that mmap_sem is
held over invalidate_range_{start,end}
git bisect good 58f936694c5fd6a4c50217e65ee2ee8b88438b66 # 18:40 G 37 0 7 10
mm: merge struct mmu_notifier_mm into struct mm_struct
# extra tests on HEAD of linux-devel/devel-hourly-2019072323
git bisect bad 9753d961df5e44d13629e2ab95a25c0b9e412040 # 18:41 B 0 304 361 39
0day head guard for 'devel-hourly-2019072323'
# extra tests on tree/branch hch-misc/mmu-notifier-cleanup
git bisect bad fd2a4ea66b2e93fbe75a8c51a686bf44be3a7f3c # 19:02 B 0 1 17 0
mm: remove the hmm_mirror abstraction
# extra tests with first bad commit reverted
git bisect good b4f1849202ffa17d500232caeebcdea2b6f8ff0e # 19:39 G 12 0 4 4
Revert "mm: assert that mmap_sem is held over invalidate_range_{start,end}"
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/lkp Intel Corporation