Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master commit 9ff4452912d63fe076ed01324bc651d51d807d5c Author: Wei Yang AuthorDate: Fri Jan 24 16:17:30 2020 +1100 Commit: Stephen Rothwell CommitDate: Fri Jan 24 16:17:30 2020 +1100 mm/mremap: use pmd_addr_end to calculate next in move_page_tables() Use the general helper instead of doing it by hand. Link: http://lkml.kernel.org/r/20200117232254.2792-4-richardw.yang@linux.intel.com Signed-off-by: Wei Yang Cc: Aneesh Kumar K.V Cc: Dan Williams Cc: Kirill A. Shutemov Cc: Thomas Hellstrom Cc: Yang Shi Signed-off-by: Andrew Morton Signed-off-by: Stephen Rothwell cc3cd8721a mm/mremap: it is sure to have enough space when extent meets requirement 9ff4452912 mm/mremap: use pmd_addr_end to calculate next in move_page_tables() +-----------------------------------------------------------------------------------+------------+------------+ | | cc3cd8721a | 9ff4452912 | +-----------------------------------------------------------------------------------+------------+------------+ | boot_successes | 878 | 70 | | boot_failures | 50 | 228 | | WARNING:possible_circular_locking_dependency_detected | 8 | 2 | | WARNING:at_mm/usercopy.c:#usercopy_warn | 4 | 1 | | EIP:usercopy_warn | 4 | 1 | | INFO:rcu_preempt_detected_stalls_on_CPUs/tasks | 2 | | | EIP:___might_sleep | 1 | | | EIP:lock_is_held_type | 1 | | | BUG:kernel_hang_in_test_stage | 7 | 2 | | BUG:sleeping_function_called_from_invalid_context_at_include/linux/percpu-rwsem.h | 2 | | | Mem-Info | 1 | 3 | | BUG:kernel_hang_in_boot_stage | 24 | 6 | | EIP:_raw_spin_unlock_irq | 1 | | | EIP:drain_array | 1 | | | EIP:lock_acquire | 1 | | | EIP:schedule_timeout | 1 | | | BUG:kernel_timeout_in_torture_test_stage | 1 | | | WARNING:at_kernel/rcu/tree_stall.h:#rcu_check_gp_start_stall | 1 | | | EIP:rcu_check_gp_start_stall | 1 | | | EIP:default_idle | 1 | | | invalid_opcode:#[##] | 1 | 38 | | EIP:serial8250_ports | 1 | | | Kernel_panic-not_syncing:Fatal_exception | 1 | 149 | | BUG:kernel_timeout_in_boot_stage | 3 | | | BUG:Bad_rss-counter_state_mm:#type:MM_FILEPAGES_val | 0 | 10 | | BUG:Bad_rss-counter_state_mm:#type:MM_ANONPAGES_val | 0 | 17 | | BUG:non-zero_pgtables_bytes_on_freeing_mm | 0 | 2 | | BUG:Bad_page_map_in_process | 0 | 60 | | kernel_BUG_at_include/linux/mm.h | 0 | 26 | | EIP:release_pages | 0 | 32 | | BUG:Bad_rss-counter_state_mm:#type:MM_SHMEMPAGES_val | 0 | 33 | | BUG:kernel_NULL_pointer_dereference,address | 0 | 89 | | Oops:#[##] | 0 | 118 | | EIP:___cache_free | 0 | 19 | | BUG:unable_to_handle_page_fault_for_address | 0 | 38 | | EIP:native_machine_emergency_restart | 0 | 15 | | EIP:do_swap_page | 0 | 9 | | EIP:__copy_user_ll | 0 | 1 | | EIP:filp_close | 0 | 11 | | BUG:Bad_rss-counter_state_mm:(ptrval)type:MM_ANONPAGES_val | 0 | 6 | | BUG:Bad_page_state_in_process | 0 | 6 | | BUG:Bad_rss-counter_state_mm:#type:MM_SWAPENTS_val | 0 | 8 | | EIP:__rb_insert_augmented | 0 | 17 | | WARNING:at_lib/refcount.c:#refcount_warn_saturate | 0 | 3 | | EIP:refcount_warn_saturate | 0 | 3 | | EIP:do_exit | 0 | 1 | | INFO:trying_to_register_non-static_key | 0 | 11 | | EIP:close_pdeo | 0 | 2 | | EIP:umount_tree | 0 | 1 | | EIP:__rb_erase_color | 0 | 8 | | WARNING:at_kernel/locking/rwsem.c:#down_write | 0 | 4 | | EIP:down_write | 0 | 5 | | WARNING:at_kernel/locking/rwsem.c:#up_write | 0 | 3 | | EIP:up_write | 0 | 3 | | EIP:locks_remove_posix | 0 | 1 | | EIP:follow_page_mask | 0 | 2 | | EIP:unlink_anon_vmas | 0 | 3 | | EIP:copy_page_to_iter | 0 | 4 | | EIP:vma_interval_tree_augment_rotate | 0 | 1 | | EIP:fib_rules_event | 0 | 1 | | WARNING:at_kernel/locking/lockdep.c:#mark_lock | 0 | 1 | | EIP:mark_lock | 0 | 1 | | EIP:neigh_parms_release | 0 | 1 | | Kernel_panic-not_syncing:Fatal_exception_in_interrupt | 0 | 2 | | EIP:list_lru_del | 0 | 1 | | EIP:handle_mm_fault | 0 | 1 | | EIP:clear_user | 0 | 1 | | WARNING:at_fs/proc/generic.c:#remove_proc_entry | 0 | 1 | | EIP:remove_proc_entry | 0 | 1 | | EIP:rb_erase | 0 | 1 | | EIP:__lock_acquire | 0 | 4 | | EIP:dnotify_flush | 0 | 1 | | EIP:unmap_page_range | 0 | 9 | | EIP:shmem_mapping | 0 | 5 | | EIP:visit_groups_merge | 0 | 1 | | sysctl_link_missing_during_unregister | 0 | 1 | | EIP:sysctl_print_dir | 0 | 1 | | Kernel_panic-not_syncing:corrupted_stack_end_detected_inside_scheduler | 0 | 2 | | WARNING:at_fs/proc/proc_sysctl.c:#retire_sysctl_set | 0 | 4 | | EIP:retire_sysctl_set | 0 | 4 | | EIP:count_subheaders | 0 | 1 | | EIP:do_raw_spin_trylock | 0 | 1 | | EIP:event_sched_in | 0 | 1 | | EIP:anon_vma_interval_tree_insert | 0 | 1 | | EIP:__wake_up_common | 0 | 2 | | EIP:snmp6_unregister_dev | 0 | 1 | | kernel_BUG_at_mm/usercopy.c | 0 | 1 | | EIP:usercopy_abort | 0 | 1 | | EIP:perf_iterate_ctx | 0 | 4 | | BUG:Bad_rss-counter_state_mm:(ptrval)type:MM_SHMEMPAGES_val | 0 | 2 | | kernel_BUG_at_mm/filemap.c | 0 | 6 | | EIP:unaccount_page_cache_page | 0 | 6 | | kernel_BUG_at_mm/internal.h | 0 | 1 | | EIP:rmap_walk_file | 0 | 1 | | WARNING:at_fs/sysfs/group.c:#sysfs_remove_group | 0 | 1 | | EIP:sysfs_remove_group | 0 | 1 | | WARNING:at_fs/kernfs/dir.c:#__kernfs_remove | 0 | 2 | | EIP:__kernfs_remove | 0 | 2 | | EIP:idr_remove | 0 | 2 | | EIP:munlock_vma_pages_range | 0 | 1 | | EIP:__put_anon_vma | 0 | 1 | | WARNING:at_net/xfrm/xfrm_state.c:#xfrm_state_fini | 0 | 1 | | EIP:xfrm_state_fini | 0 | 1 | | EIP:anon_vma_clone | 0 | 2 | | EIP:iov_iter_fault_in_readable | 0 | 2 | | EIP:strlen | 0 | 1 | | WARNING:at_mm/rmap.c:#anon_vma_clone | 0 | 1 | | EIP:apparmor_file_free_security | 0 | 1 | | EIP:uevent_net_exit | 0 | 1 | | kernel_BUG_at_mm/slab.c | 0 | 1 | | EIP:__check_heap_object | 0 | 1 | | EIP:mremap_userfaultfd_prep | 0 | 1 | +-----------------------------------------------------------------------------------+------------+------------+ If you fix the issue, kindly add following tag Reported-by: kernel test robot [ 58.385214] LoadPin: kernel-module old-api-pinning-ignored obj= pid=1148 cmdline="/bin/trinity -q -d -x get_robust_list -N 999999" [main] 10264 iterations. [F:7282 S:2943 HI:1665] [main] 11562 iterations. [F:8107 S:3402 HI:2254] [ 66.557674] cfg80211: failed to load regulatory.db [ 66.558831] Writes: Total: 47169752 Max/Min: 0/0 Fail: 0 [ 70.987730] BUG: Bad rss-counter state mm:01f5c40b type:MM_SHMEMPAGES val:15 [ 70.991024] LoadPin: kernel-module old-api-pinning-ignored obj= pid=1305 cmdline="/bin/trinity -q -d -N 999999" [ 89.787760] ------------[ cut here ]------------ [ 89.789359] WARNING: CPU: 0 PID: 7 at fs/proc/proc_sysctl.c:1714 retire_sysctl_set+0xd/0x20 [ 89.790335] Modules linked in: [ 89.790643] CPU: 0 PID: 7 Comm: kworker/u4:0 Not tainted 5.5.0-rc7-00100-g9ff4452912d63 #1 [ 89.791429] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 89.792266] Workqueue: netns cleanup_net [ 89.792651] EIP: retire_sysctl_set+0xd/0x20 [ 89.793063] Code: 00 00 c7 43 28 00 00 00 00 c7 43 2c 00 00 00 00 8b 5d f4 89 ec 5d c3 8d b6 00 00 00 00 55 89 e5 53 89 c3 8b 43 30 85 c0 74 02 <0f> 0b 5b 5d c3 cc cc cc cc cc cc cc cc cc cc cc cc cc cc 55 89 e5 [ 89.794811] EAX: f2fd9e70 EBX: f2f7ae9c ECX: c21b0210 EDX: c2e2f1b4 [ 89.795432] ESI: c2e2f1b0 EDI: f2f7adc0 EBP: f48e7eb4 ESP: f48e7eb0 [ 89.796032] DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068 EFLAGS: 00010282 [ 89.796684] CR0: 80050033 CR2: 00000020 CR3: 30984000 CR4: 000406d0 [ 89.797284] Call Trace: [ 89.797532] sysctl_net_exit+0x11/0x20 [ 89.797897] ops_exit_list+0x24/0x50 [ 89.798308] cleanup_net+0x1ae/0x2a0 [ 89.798658] process_one_work+0x335/0x5e0 [ 89.799047] ? process_one_work+0x1e0/0x5e0 [ 89.799447] worker_thread+0x28c/0x4b0 [ 89.799805] kthread+0xfa/0x100 [ 89.800115] ? process_one_work+0x5e0/0x5e0 [ 89.800533] ? kthread_create_worker_on_cpu+0x20/0x20 [ 89.801017] ret_from_fork+0x1e/0x28 [ 89.801365] irq event stamp: 302164 [ 89.801703] hardirqs last enabled at (302163): [] _raw_spin_unlock_irqrestore+0x3d/0x60 [ 89.802544] hardirqs last disabled at (302164): [] trace_hardirqs_off_thunk+0xc/0x10 [ 89.803357] softirqs last enabled at (302148): [] netlink_release+0x805/0x890 [ 89.804113] softirqs last disabled at (302146): [] netlink_release+0x805/0x890 [ 89.804873] ---[ end trace 1be77e98e8984beb ]--- [main] Error opening /boot/trace.txt : No such file or directory # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD git bisect start 702ccea170f07783bd002055a353a0866c062267 v5.4 -- git bisect good 48a8dd171993569cb77dee0882a47abad47d2837 # 03:04 G 300 0 10 10 Merge tag 'drm-fixes-2019-12-28' of git://anongit.freedesktop.org/drm/drm git bisect good 88eec99fc15ed5abc3d56b444d60718a23f1a87c # 04:32 G 300 0 6 6 Merge remote-tracking branch 'mediatek/for-next' git bisect good d09cfb473db33e1b8f9bbac1a2d236907dbc2734 # 06:30 G 301 0 7 7 Merge remote-tracking branch 'sound/for-next' git bisect good 0a45358c872e756d9b0f9ae31cbc7e15809df908 # 07:22 G 308 0 7 7 Merge remote-tracking branch 'chrome-platform/for-next' git bisect good 94e26012eb8955f973af6e4f069bc4240c6bd846 # 08:14 G 300 0 7 7 Merge remote-tracking branch 'pinctrl-intel/for-next' git bisect good f029b5bb02f9507115275ca8f56a4951bdadacd2 # 09:19 G 302 0 12 13 Merge remote-tracking branch 'at24/at24/for-next' git bisect good ae3d536cd9783e30790af9a6fe78e340cc7475a6 # 10:21 G 301 0 16 16 Merge remote-tracking branch 'pidfd/for-next' git bisect good ebaedb3eb2435ef1f30289a3c32da1de0d26f965 # 12:34 G 304 0 12 12 Merge remote-tracking branch 'kunit-next/kunit' git bisect bad 9dafa06d235e112a653fc5c1430c3d9be75ec0fd # 12:50 B 21 1 21 21 Merge branch 'akpm-current/current' git bisect bad b3437b1c1440a341b273ab182c288d8ca71a11b5 # 13:20 B 62 1 46 46 mm/huge_memory.c: reduce critical section protected by split_queue_lock git bisect good 44d82a4867542ef86e279996863ade52de2eae51 # 16:29 G 310 0 11 11 mm/gup: introduce pin_user_pages*() and FOLL_PIN git bisect bad 0347aa789d573fce9c7153ddf97e338501e54c0e # 17:50 B 148 1 111 111 mm/mremap: start addresses are properly aligned git bisect good 66cf11e1741eded78bd9d981bbd3660c195756f1 # 18:57 G 300 0 10 10 mm/gup_benchmark: use proper FOLL_WRITE flags instead of hard-coding "1" git bisect good 4bd4e0f691e7efbe00558717e2b7d680c3aa9bb2 # 19:57 G 304 0 7 7 mm/mmap.c: fix the adjusted length error git bisect good cc3cd8721a75db76fbd76532f1df6234fbc38a0a # 21:31 G 300 0 18 18 mm/mremap: it is sure to have enough space when extent meets requirement git bisect bad 65fbe0ffd2a3ff3bb8b5be3a7565a6dbe896bbe3 # 00:44 B 47 1 38 39 mm/mremap: calculate extent in one place git bisect bad 9ff4452912d63fe076ed01324bc651d51d807d5c # 01:48 B 40 1 34 34 mm/mremap: use pmd_addr_end to calculate next in move_page_tables() # first bad commit: [9ff4452912d63fe076ed01324bc651d51d807d5c] mm/mremap: use pmd_addr_end to calculate next in move_page_tables() git bisect good cc3cd8721a75db76fbd76532f1df6234fbc38a0a # 05:20 G 901 0 35 57 mm/mremap: it is sure to have enough space when extent meets requirement # extra tests with debug options git bisect good 9ff4452912d63fe076ed01324bc651d51d807d5c # 13:22 G 300 0 246 246 mm/mremap: use pmd_addr_end to calculate next in move_page_tables() --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/hyperkitty/list/lkp@lists.01.org Intel Corporation