list_add corruption. prev->next should be next (ffff8801daf26708), but was 0000000000000000. (prev=ffff8801daf26740). ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:28! invalid opcode: 0000 [#1] SMP KASAN CPU: 1 PID: 15629 Comm: loop4 Not tainted 4.18.0-rc3-next-20180706+ #1 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__list_add_valid.cold.0+0x23/0x25 lib/list_debug.c:26 Code: e8 9f 72 57 fe eb 97 48 89 d9 48 c7 c7 60 80 1a 88 e8 72 b8 ff fd 0f 0b 48 89 f1 48 c7 c7 20 81 1a 88 48 89 de e8 5e b8 ff fd <0f> 0b 4c 89 e2 48 89 de 48 c7 c7 60 82 1a 88 e8 4a b8 ff fd 0f 0b RSP: 0018:ffff8801daf079c0 EFLAGS: 00010086 RAX: 0000000000000075 RBX: ffff8801daf26708 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff81634381 RDI: 0000000000000001 RBP: ffff8801daf079d8 R08: ffff88019995e600 R09: ffffed003b5e4fc0 R10: ffffed003b5e4fc0 R11: ffff8801daf27e07 R12: ffff8801daf26740 R13: ffff8801daf07ab8 R14: ffff8801daf26740 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6825f11000 CR3: 0000000008e6a000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000001 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __list_add include/linux/list.h:60 [inline] list_add_tail include/linux/list.h:93 [inline] __cpu_stop_queue_work kernel/stop_machine.c:72 [inline] cpu_stop_queue_work+0x248/0x460 kernel/stop_machine.c:87 stop_one_cpu_nowait+0xd3/0x100 kernel/stop_machine.c:341 watchdog_timer_fn+0x93/0x2e0 kernel/watchdog.c:367 __run_hrtimer kernel/time/hrtimer.c:1398 [inline] __hrtimer_run_queues+0x3eb/0x10c0 kernel/time/hrtimer.c:1460 hrtimer_interrupt+0x2f3/0x750 kernel/time/hrtimer.c:1518 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1025 [inline] smp_apic_timer_interrupt+0x165/0x730 arch/x86/kernel/apic/apic.c:1050 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:867 RIP: 0010:check_memory_region+0x14/0x1b0 mm/kasan/kasan.c:266 Code: e0 07 38 c2 40 0f 9e c6 eb c5 66 90 66 2e 0f 1f 84 00 00 00 00 00 48 85 f6 0f 84 3c 01 00 00 48 b8 ff ff ff ff ff 7f ff ff 55 <0f> b6 d2 48 89 e5 41 55 41 54 53 48 39 c7 0f 86 11 01 00 00 4c 8d RSP: 0018:ffff880198bce598 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13 RAX: ffff7fffffffffff RBX: ffffea0006d4a574 RCX: ffffffff8199fc75 RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffea0006d4a574 RBP: ffff880198bce5a8 R08: ffff88019995e600 R09: fffff94000da94ae R10: fffff94000da94ae R11: ffffea0006d4a577 R12: ffff880198bce948 R13: ffff880198bce628 R14: ffff880198bce6c8 R15: dffffc0000000000 atomic_read include/asm-generic/atomic-instrumented.h:21 [inline] atomic_fetch_add_unless include/linux/atomic.h:569 [inline] atomic_add_unless include/linux/atomic.h:591 [inline] page_ref_add_unless include/linux/page_ref.h:157 [inline] get_page_unless_zero include/linux/mm.h:511 [inline] page_cache_get_speculative include/linux/pagemap.h:186 [inline] find_get_entry+0x4d5/0x1120 mm/filemap.c:1411 find_lock_entry+0xe6/0x8c0 mm/filemap.c:1457 shmem_getpage_gfp+0x3cd/0x3ec0 mm/shmem.c:1610 shmem_getpage mm/shmem.c:132 [inline] shmem_file_read_iter+0x399/0x1090 mm/shmem.c:2433 call_read_iter include/linux/fs.h:1816 [inline] do_iter_readv_writev+0x790/0xa90 fs/read_write.c:678 do_iter_read+0x26e/0x650 fs/read_write.c:922 vfs_iter_read+0x77/0xb0 fs/read_write.c:936 lo_read_simple drivers/block/loop.c:350 [inline] do_req_filebacked drivers/block/loop.c:615 [inline] loop_handle_cmd drivers/block/loop.c:1786 [inline] loop_queue_work+0x9ce/0x3afc drivers/block/loop.c:1800 kthread_worker_fn+0x35f/0xa50 kernel/kthread.c:656 loop_kthread_worker_fn+0x51/0x60 drivers/block/loop.c:892 kthread+0x345/0x410 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:415 Modules linked in: Dumping ftrace buffer: (ftrace buffer empty) ---[ end trace 10b58b054f8a123c ]--- RIP: 0010:__list_add_valid.cold.0+0x23/0x25 lib/list_debug.c:26 Code: e8 9f 72 57 fe eb 97 48 89 d9 48 c7 c7 60 80 1a 88 e8 72 b8 ff fd 0f 0b 48 89 f1 48 c7 c7 20 81 1a 88 48 89 de e8 5e b8 ff fd <0f> 0b 4c 89 e2 48 89 de 48 c7 c7 60 82 1a 88 e8 4a b8 ff fd 0f 0b RSP: 0018:ffff8801daf079c0 EFLAGS: 00010086 RAX: 0000000000000075 RBX: ffff8801daf26708 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff81634381 RDI: 0000000000000001 RBP: ffff8801daf079d8 R08: ffff88019995e600 R09: ffffed003b5e4fc0 R10: ffffed003b5e4fc0 R11: ffff8801daf27e07 R12: ffff8801daf26740 R13: ffff8801daf07ab8 R14: ffff8801daf26740 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f6825f11000 CR3: 0000000008e6a000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000001 DR6: 00000000fffe0ff0 DR7: 0000000000000400