Greetings, 0day kernel testing robot got the below dmesg and the first bad commit is https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master commit d17a1d97dc208d664c91cc387ffb752c7f85dc61 Author: Andrey Ryabinin AuthorDate: Wed Nov 15 17:36:35 2017 -0800 Commit: Linus Torvalds CommitDate: Wed Nov 15 18:21:05 2017 -0800 x86/mm/kasan: don't use vmemmap_populate() to initialize shadow The kasan shadow is currently mapped using vmemmap_populate() since that provides a semi-convenient way to map pages into init_top_pgt. However, since that no longer zeroes the mapped pages, it is not suitable for kasan, which requires zeroed shadow memory. Add kasan_populate_shadow() interface and use it instead of vmemmap_populate(). Besides, this allows us to take advantage of gigantic pages and use them to populate the shadow, which should save us some memory wasted on page tables and reduce TLB pressure. Link: http://lkml.kernel.org/r/20171103185147.2688-2-pasha.tatashin@oracle.com Signed-off-by: Andrey Ryabinin Signed-off-by: Pavel Tatashin Cc: Steven Sistare Cc: Daniel Jordan Cc: Bob Picco Cc: Michal Hocko Cc: Alexander Potapenko Cc: Ard Biesheuvel Cc: Catalin Marinas Cc: Christian Borntraeger Cc: David S. Miller Cc: Dmitry Vyukov Cc: Heiko Carstens Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: Mark Rutland Cc: Matthew Wilcox Cc: Mel Gorman Cc: Michal Hocko Cc: Sam Ravnborg Cc: Thomas Gleixner Cc: Will Deacon Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds a4a3ede213 mm: zero reserved and unavailable struct pages d17a1d97dc x86/mm/kasan: don't use vmemmap_populate() to initialize shadow 7c98a42618 Merge tag 'ceph-for-4.20-rc4' of https://github.com/ceph/ceph-client 8c9733fd98 Add linux-next specific files for 20181123 +--------------------------------------------------+------------+------------+------------+---------------+ | | a4a3ede213 | d17a1d97dc | 7c98a42618 | next-20181123 | +--------------------------------------------------+------------+------------+------------+---------------+ | boot_successes | 187 | 0 | 0 | 0 | | boot_failures | 1 | 66 | 66 | 52 | | INFO:task_blocked_for_more_than#seconds | 1 | | | | | Kernel_panic-not_syncing:hung_task:blocked_tasks | 1 | | | | | BUG:soft_lockup-CPU##stuck_for#s | 0 | 66 | 66 | 52 | | RIP:unwind_next_frame | 0 | 18 | 13 | 12 | | Kernel_panic-not_syncing:softlockup:hung_tasks | 0 | 66 | 66 | 52 | | RIP:__asan_load8 | 0 | 13 | 5 | 4 | | RIP:acpi_ps_push_scope | 0 | 1 | | | | RIP:memcmp | 0 | 2 | | | | RIP:__asan_load4 | 0 | 8 | 16 | 5 | | RIP:__asan_load1 | 0 | 6 | 1 | | | RIP:unwind_get_return_address | 0 | 3 | 2 | 1 | | RIP:check_memory_region | 0 | 1 | 7 | 5 | | RIP:__asan_store8 | 0 | 2 | 1 | 3 | | RIP:deref_stack_reg | 0 | 4 | 2 | 3 | | RIP:__orc_find | 0 | 4 | 7 | 5 | | RIP:__memset | 0 | 1 | | | | RIP:__asan_loadN | 0 | 1 | 0 | 4 | | RIP:__kernel_text_address | 0 | 1 | 0 | 1 | | RIP:stack_access_ok | 0 | 1 | 1 | 1 | | RIP:depot_save_stack | 0 | 0 | 2 | 4 | | RIP:__unwind_start | 0 | 0 | 2 | 1 | | RIP:kmem_cache_free | 0 | 0 | 1 | | | RIP:acpi_os_release_object | 0 | 0 | 1 | | | RIP:__read_once_size_nocheck | 0 | 0 | 1 | | | RIP:stackleak_track_stack | 0 | 0 | 2 | | | RIP:save_stack_address | 0 | 0 | 1 | | | RIP:acpi_ut_update_object_reference | 0 | 0 | 1 | | | RIP:__save_stack_trace | 0 | 0 | 0 | 1 | | RIP:__kmalloc | 0 | 0 | 0 | 1 | | RIP:kasan_kmalloc | 0 | 0 | 0 | 1 | +--------------------------------------------------+------------+------------+------------+---------------+ [ 30.066434] parport0: AVR Butterfly [ 30.078258] parport0: cannot grant exclusive access for device spi-lm70llp [ 30.092323] spi_lm70llp: spi_lm70llp probe fail, status -12 [ 30.107585] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI [ 30.121880] e1000: Copyright (c) 1999-2006 Intel Corporation. [ 56.099059] watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [swapper:1] [ 56.099059] CPU: 0 PID: 1 Comm: swapper Not tainted 4.14.0-04089-gd17a1d9 #1 [ 56.099059] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 56.099059] task: ffff88001a511ac0 task.stack: ffff88001a518000 [ 56.099059] RIP: 0010:__asan_load8+0x0/0x80 [ 56.099059] RSP: 0000:ffff88001a51ee30 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff11 [ 56.099059] RAX: 0000000000000000 RBX: ffff88001a51ef10 RCX: ffffffff8103dec8 [ 56.099059] RDX: 0000000000000003 RSI: dffffc0000000000 RDI: ffff88001a51ef48 [ 56.099059] RBP: 1ffff100034a3dcf R08: fffffbfff0a02350 R09: fffffbfff0a0234f [ 56.099059] R10: ffffffff85011a7d R11: fffffbfff0a02350 R12: ffff88001a51ff40 [ 56.099059] R13: ffffffff85011a7a R14: ffffffff85011a7e R15: 0000000000000001 [ 56.099059] FS: 0000000000000000(0000) GS:ffffffff83e6e000(0000) knlGS:0000000000000000 [ 56.099059] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 56.099059] CR2: 0000000000000000 CR3: 0000000003e42001 CR4: 00000000000206b0 [ 56.099059] Call Trace: [ 56.099059] unwind_next_frame+0x93b/0x9c0 [ 56.099059] ? kernel_init_freeable+0x1f2/0x32d [ 56.099059] ? unwind_get_return_address_ptr+0x50/0x50 [ 56.099059] ? memcmp+0x4c/0x70 [ 56.099059] ? depot_save_stack+0x15f/0x530 [ 56.099059] __save_stack_trace+0x91/0xd0 [ 56.099059] ? kernel_init+0xa/0x100 [ 56.099059] kasan_slab_free+0xc2/0x170 [ 56.099059] ? kmem_cache_free+0x10e/0x180 [ 56.099059] ? acpi_os_release_object+0x5/0x10 [ 56.099059] ? acpi_ut_update_object_reference+0x299/0x30f [ 56.099059] ? acpi_ds_clear_operands+0x59/0xa6 [ 56.099059] ? acpi_ds_exec_end_op+0x344/0xa3a [ 56.099059] ? acpi_ps_parse_loop+0xe65/0xf6a [ 56.099059] ? acpi_ps_parse_aml+0x21c/0x665 [ 56.099059] ? acpi_ps_execute_method+0x316/0x407 [ 56.099059] ? acpi_ns_evaluate+0x4de/0x6cd [ 56.099059] ? acpi_ut_evaluate_object+0xe5/0x2f2 [ 56.099059] ? acpi_rs_get_prt_method_data+0x86/0x106 [ 56.099059] ? acpi_get_irq_routing_table+0xad/0xf3 [ 56.099059] ? acpi_pci_irq_find_prt_entry+0xf5/0x5c0 [ 56.099059] ? acpi_pci_irq_lookup+0x6e/0x4a0 [ 56.099059] ? acpi_pci_irq_enable+0x17c/0x380 [ 56.099059] ? do_pci_enable_device+0xbb/0x160 [ 56.099059] ? pci_enable_device_flags+0x157/0x190 [ 56.099059] ? e1000_probe+0x18b0/0x1b30 [ 56.099059] ? pci_device_probe+0xef/0x190 [ 56.099059] ? driver_probe_device+0x1e2/0x400 [ 56.099059] ? __driver_attach+0x92/0xc0 [ 56.099059] ? bus_for_each_dev+0xbf/0x120 [ 56.099059] ? bus_add_driver+0x16b/0x2f0 [ 56.099059] ? driver_register+0xed/0x150 [ 56.099059] ? e1000_init_module+0x60/0xd9 [ 56.099059] ? do_one_initcall+0x130/0x2c5 [ 56.099059] ? kernel_init_freeable+0x1f2/0x32d [ 56.099059] ? kernel_init+0xa/0x100 [ 56.099059] ? ret_from_fork+0x1f/0x30 [ 56.099059] ? do_raw_spin_unlock+0xda/0xf0 [ 56.099059] ? debug_check_no_obj_freed+0x26e/0x3f0 [ 56.099059] ? debug_object_active_state+0x220/0x220 [ 56.099059] ? acpi_ut_track_stack_ptr+0x87/0xb5 [ 56.099059] ? acpi_ut_init_stack_ptr_trace+0x71/0x71 [ 56.099059] ? do_raw_spin_unlock+0xda/0xf0 [ 56.099059] ? acpi_os_release_object+0x5/0x10 [ 56.099059] kmem_cache_free+0x10e/0x180 [ 56.099059] acpi_os_release_object+0x5/0x10 [ 56.099059] acpi_ut_update_object_reference+0x299/0x30f [ 56.099059] ? acpi_ut_update_ref_count+0x9cc/0x9cc [ 56.099059] ? acpi_ex_opcode_2A_2T_1R+0x1c9/0x1c9 [ 56.099059] acpi_ds_clear_operands+0x59/0xa6 [ 56.099059] acpi_ds_exec_end_op+0x344/0xa3a [ 56.099059] ? acpi_ds_exec_begin_op+0x391/0x391 [ 56.099059] acpi_ps_parse_loop+0xe65/0xf6a [ 56.099059] ? acpi_ut_init_stack_ptr_trace+0x71/0x71 [ 56.099059] ? acpi_ps_get_next_arg+0x90d/0x90d [ 56.099059] ? acpi_ut_init_stack_ptr_trace+0x71/0x71 [ 56.099059] ? acpi_ut_create_generic_state+0x42/0x5e [ 56.099059] ? kmem_cache_alloc+0x11c/0x140 [ 56.099059] ? acpi_ut_trace+0x33/0x79 [ 56.099059] acpi_ps_parse_aml+0x21c/0x665 [ 56.099059] acpi_ps_execute_method+0x316/0x407 [ 56.099059] acpi_ns_evaluate+0x4de/0x6cd [ 56.099059] ? kmem_cache_alloc+0x11c/0x140 [ 56.099059] acpi_ut_evaluate_object+0xe5/0x2f2 [ 56.099059] acpi_rs_get_prt_method_data+0x86/0x106 [ 56.099059] ? acpi_rs_set_resource_source+0x79/0x79 [ 56.099059] ? acpi_ut_status_exit+0x94/0xb1 [ 56.099059] ? acpi_rs_validate_parameters+0x11e/0x127 [ 56.099059] acpi_get_irq_routing_table+0xad/0xf3 [ 56.099059] ? acpi_rs_match_vendor_resource+0xf8/0xf8 [ 56.099059] ? stack_access_ok+0x4a/0xb0 [ 56.099059] acpi_pci_irq_find_prt_entry+0xf5/0x5c0 [ 56.099059] ? deref_stack_reg+0x7a/0xb0 [ 56.099059] ? __orc_find+0x55/0xa0 [ 56.099059] ? acpi_penalize_sci_irq+0x30/0x30 [ 56.099059] acpi_pci_irq_lookup+0x6e/0x4a0 [ 56.099059] ? acpi_pci_irq_find_prt_entry+0x5c0/0x5c0 [ 56.099059] ? pci_conf1_read+0xff/0x110 [ 56.099059] acpi_pci_irq_enable+0x17c/0x380 [ 56.099059] ? acpi_pci_irq_lookup+0x4a0/0x4a0 [ 56.099059] ? pci_enable_resources+0xa2/0x1c0 [ 56.099059] ? pci_reassign_resource+0x140/0x140 [ 56.099059] ? pci_platform_power_transition+0xa0/0xa0 [ 56.099059] ? is_acpi_device_node+0x1e/0x30 [ 56.099059] do_pci_enable_device+0xbb/0x160 [ 56.099059] ? pci_set_power_state+0x190/0x190 [ 56.099059] ? bus_for_each_dev+0xbf/0x120 [ 56.099059] ? bus_add_driver+0x16b/0x2f0 [ 56.099059] ? driver_register+0xed/0x150 [ 56.099059] ? e1000_init_module+0x60/0xd9 [ 56.099059] ? do_one_initcall+0x130/0x2c5 [ 56.099059] ? kernel_init_freeable+0x1f2/0x32d [ 56.099059] ? kernel_init+0xa/0x100 [ 56.099059] ? ret_from_fork+0x1f/0x30 [ 56.099059] ? idr_get_free_cmn+0x318/0x3b0 [ 56.099059] ? delete_node+0x57/0x350 [ 56.099059] pci_enable_device_flags+0x157/0x190 [ 56.099059] ? pci_reenable_device+0x30/0x30 [ 56.099059] ? idr_alloc_cmn+0xf7/0x130 [ 56.099059] ? __fprop_inc_percpu_max+0x110/0x110 [ 56.099059] ? ret_from_fork+0x1f/0x30 [ 56.099059] e1000_probe+0x18b0/0x1b30 [ 56.099059] ? idr_alloc_cyclic+0xa9/0x140 [ 56.099059] ? idr_alloc_cyclic+0x103/0x140 [ 56.099059] ? idr_alloc_cmn+0x130/0x130 [ 56.099059] ? rpm_resume+0x1a3/0x940 [ 56.099059] ? e1000_io_slot_reset+0xc0/0xc0 [ 56.099059] ? __pm_runtime_idle+0x80/0x80 [ 56.099059] ? pci_match_id+0x136/0x160 [ 56.099059] ? pci_match_device+0x209/0x230 [ 56.099059] ? do_raw_spin_unlock+0xda/0xf0 [ 56.099059] pci_device_probe+0xef/0x190 [ 56.099059] driver_probe_device+0x1e2/0x400 [ 56.099059] ? driver_probe_device+0x400/0x400 [ 56.099059] __driver_attach+0x92/0xc0 [ 56.099059] bus_for_each_dev+0xbf/0x120 [ 56.099059] ? bus_remove_file+0x70/0x70 [ 56.099059] ? bus_add_driver+0x291/0x2f0 [ 56.099059] ? do_raw_spin_lock+0xb3/0xd0 [ 56.099059] bus_add_driver+0x16b/0x2f0 [ 56.099059] ? net_olddevs_init+0x109/0x109 [ 56.099059] driver_register+0xed/0x150 [ 56.099059] e1000_init_module+0x60/0xd9 [ 56.099059] do_one_initcall+0x130/0x2c5 [ 56.099059] ? start_kernel+0x8a0/0x8a0 [ 56.099059] ? strcpy+0x1e/0x50 [ 56.099059] ? __asan_load1+0x50/0x50 [ 56.099059] kernel_init_freeable+0x1f2/0x32d [ 56.099059] ? rest_init+0xb0/0xb0 [ 56.099059] kernel_init+0xa/0x100 [ 56.099059] ? rest_init+0xb0/0xb0 [ 56.099059] ret_from_fork+0x1f/0x30 [ 56.099059] Code: ff df 0f b6 04 30 84 c0 74 18 38 d0 0f 9e c0 84 c0 74 0f ba 01 00 00 00 be 04 00 00 00 e9 f9 07 00 00 f3 c3 0f 1f 80 00 00 00 00 <48> b8 ff ff ff ff ff 7f ff ff 48 8b 0c 24 48 39 c7 76 5a 48 8d [ 56.099059] Kernel panic - not syncing: softlockup: hung tasks [ 56.099059] CPU: 0 PID: 1 Comm: swapper Tainted: G L 4.14.0-04089-gd17a1d9 #1 [ 56.099059] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1 04/01/2014 [ 56.099059] Call Trace: [ 56.099059] [ 56.099059] panic+0x13a/0x288 [ 56.099059] ? refcount_error_report+0xe8/0xe8 [ 56.099059] watchdog_timer_fn+0x1a7/0x1e0 [ 56.099059] ? watchdog_should_run+0x20/0x20 [ 56.099059] hrtimer_run_queues+0x13e/0x210 [ 56.099059] run_local_timers+0x5/0x50 [ 56.099059] update_process_times+0x1b/0x50 [ 56.099059] tick_nohz_handler+0xb3/0x110 [ 56.099059] smp_apic_timer_interrupt+0x72/0x90 [ 56.099059] apic_timer_interrupt+0x89/0x90 [ 56.099059] [ 56.099059] RIP: 0010:__asan_load8+0x0/0x80 [ 56.099059] RSP: 0000:ffff88001a51ee30 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff11 [ 56.099059] RAX: 0000000000000000 RBX: ffff88001a51ef10 RCX: ffffffff8103dec8 [ 56.099059] RDX: 0000000000000003 RSI: dffffc0000000000 RDI: ffff88001a51ef48 [ 56.099059] RBP: 1ffff100034a3dcf R08: fffffbfff0a02350 R09: fffffbfff0a0234f [ 56.099059] R10: ffffffff85011a7d R11: fffffbfff0a02350 R12: ffff88001a51ff40 [ 56.099059] R13: ffffffff85011a7a R14: ffffffff85011a7e R15: 0000000000000001 [ 56.099059] ? unwind_next_frame+0x978/0x9c0 [ 56.099059] unwind_next_frame+0x93b/0x9c0 [ 56.099059] ? kernel_init_freeable+0x1f2/0x32d [ 56.099059] ? unwind_get_return_address_ptr+0x50/0x50 [ 56.099059] ? memcmp+0x4c/0x70 [ 56.099059] ? depot_save_stack+0x15f/0x530 [ 56.099059] __save_stack_trace+0x91/0xd0 [ 56.099059] ? kernel_init+0xa/0x100 [ 56.099059] kasan_slab_free+0xc2/0x170 [ 56.099059] ? kmem_cache_free+0x10e/0x180 [ 56.099059] ? acpi_os_release_object+0x5/0x10 [ 56.099059] ? acpi_ut_update_object_reference+0x299/0x30f [ 56.099059] ? acpi_ds_clear_operands+0x59/0xa6 [ 56.099059] ? acpi_ds_exec_end_op+0x344/0xa3a [ 56.099059] ? acpi_ps_parse_loop+0xe65/0xf6a [ 56.099059] ? acpi_ps_parse_aml+0x21c/0x665 [ 56.099059] ? acpi_ps_execute_method+0x316/0x407 [ 56.099059] ? acpi_ns_evaluate+0x4de/0x6cd [ 56.099059] ? acpi_ut_evaluate_object+0xe5/0x2f2 [ 56.099059] ? acpi_rs_get_prt_method_data+0x86/0x106 [ 56.099059] ? acpi_get_irq_routing_table+0xad/0xf3 [ 56.099059] ? acpi_pci_irq_find_prt_entry+0xf5/0x5c0 [ 56.099059] ? acpi_pci_irq_lookup+0x6e/0x4a0 [ 56.099059] ? acpi_pci_irq_enable+0x17c/0x380 [ 56.099059] ? do_pci_enable_device+0xbb/0x160 # HH:MM RESULT GOOD BAD GOOD_BUT_DIRTY DIRTY_NOT_BAD git bisect start v4.15 v4.14 -- git bisect bad e017b4db26d03c1a6531f814ecc5ab41bcb889e9 # 17:09 B 2 1 2 2 Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip git bisect bad e0bcb42e602816415f6fe07313b6fc84932244b7 # 17:27 B 9 3 9 10 Merge tag 'ecryptfs-4.15-rc1-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tyhicks/ecryptfs git bisect good 23c258763ba992f6a95a4b8980ffa7c1890bc8d8 # 17:47 G 54 0 1 1 Merge tag 'dmaengine-4.15-rc1' of git://git.infradead.org/users/vkoul/slave-dma git bisect bad 93ea0eb7d77afab34657715630d692a78b8cea6a # 18:01 B 23 3 23 23 Merge tag 'leaks-4.15-rc1' of git://github.com/tcharding/linux git bisect good 373c4557d2aa362702c4c2d41288fb1e54990b7c # 18:27 G 62 0 0 0 mm/pagewalk.c: report holes in hugetlb ranges git bisect good 1bc03573e1c9024d4e4be97df4a1e0931edbae2c # 18:53 G 61 0 4 4 Merge branch 'for-4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/libata git bisect good ad0835a93008e5901415a0a27847d6a27649aa3a # 19:12 G 63 0 1 1 Merge tag 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dledford/rdma git bisect good 6363b3f3ac5be096d08c8c504128befa0c033529 # 19:36 G 66 0 0 0 Merge tag 'ipmi-for-4.15' of git://github.com/cminyard/linux-ipmi git bisect bad 7c225c69f86c934e3be9be63ecde754e286838d7 # 19:50 B 6 1 6 6 Merge branch 'akpm' (patches from Andrew) git bisect good 4be90299a1693c2112edb20ca78d6cc9f2183326 # 20:10 G 61 0 0 0 ceph: use pagevec_lookup_range_nr_tag() git bisect bad 76253fbc8fbf6018401755fc5c07814a837cc832 # 20:25 B 17 4 17 17 mm: move accounting updates before page_cache_tree_delete() git bisect good 353b1e7b5859e98860f984d8894fa7ddc242a90e # 20:48 G 62 0 0 0 x86/mm: set fields in deferred pages git bisect bad 78c943662f4b1d53ddbfc515e427827915781377 # 21:01 B 14 2 14 14 sparc64: optimize struct page zeroing git bisect good a4a3ede2132ae0863e2d43e06f9b5697c51a7a3b # 21:21 G 66 0 1 1 mm: zero reserved and unavailable struct pages git bisect bad e17d8025f07e4fd9d73b137a8bcab04548126b83 # 21:37 B 24 2 24 24 arm64/mm/kasan: don't use vmemmap_populate() to initialize shadow git bisect bad d17a1d97dc208d664c91cc387ffb752c7f85dc61 # 21:54 B 13 3 13 13 x86/mm/kasan: don't use vmemmap_populate() to initialize shadow # first bad commit: [d17a1d97dc208d664c91cc387ffb752c7f85dc61] x86/mm/kasan: don't use vmemmap_populate() to initialize shadow git bisect good a4a3ede2132ae0863e2d43e06f9b5697c51a7a3b # 22:07 G 181 0 3 4 mm: zero reserved and unavailable struct pages # extra tests with debug options git bisect bad d17a1d97dc208d664c91cc387ffb752c7f85dc61 # 22:26 B 21 2 21 21 x86/mm/kasan: don't use vmemmap_populate() to initialize shadow # extra tests on HEAD of linux-devel/devel-hourly-2018112413 git bisect bad 853af81642fe696cb188e1f04c9373cc7c027f38 # 22:32 B 0 4 29 8 0day head guard for 'devel-hourly-2018112413' # extra tests on tree/branch linus/master git bisect bad 7c98a42618271210c60b79128b220107d35938d9 # 22:51 B 5 1 5 5 Merge tag 'ceph-for-4.20-rc4' of https://github.com/ceph/ceph-client # extra tests on tree/branch linux-next/master git bisect bad 8c9733fd9806c71e7f2313a280f98cb3051f93df # 23:05 B 1 1 1 2 Add linux-next specific files for 20181123 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/lkp Intel Corporation