list_add corruption. next->prev should be prev (00000000ac8ee546), but was 000000000f9035b6. (next=000000007da04146). ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:25! invalid opcode: 0000 [#1] SMP PTI Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 4560 Comm: syz-executor1 Not tainted 4.16.0+ #87 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__list_add_valid+0x275/0x450 lib/list_debug.c:23 RSP: 0018:ffff880154aef6a0 EFLAGS: 00010086 RAX: 0000000000000075 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88021fd30418 RBP: ffff880154aef708 R08: 0000000000000000 R09: 0000000000000001 R10: 0000000000000000 R11: 0000000000000000 R12: ffffea000799e020 R13: ffffea0007a63420 R14: 0000000000000000 R15: ffffffff8b314000 FS: 0000000002710940(0000) GS:ffff88021fd00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f060409bdb8 CR3: 0000000154b84000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __list_add include/linux/list.h:60 [inline] list_add include/linux/list.h:79 [inline] __free_one_page+0x1483/0x1800 mm/page_alloc.c:915 free_one_page mm/page_alloc.c:1185 [inline] __free_pages_ok+0x87f/0x16b0 mm/page_alloc.c:1276 __free_pages+0x109/0x240 mm/page_alloc.c:4323 kmsan_free_page+0x197/0x2e0 mm/kmsan/kmsan.c:938 free_pages_prepare mm/page_alloc.c:1035 [inline] __free_pages_ok+0x270/0x16b0 mm/page_alloc.c:1270 __free_pages+0x109/0x240 mm/page_alloc.c:4323 free_thread_stack kernel/fork.c:268 [inline] release_task_stack kernel/fork.c:355 [inline] put_task_stack+0x233/0x2f0 kernel/fork.c:366 finish_task_switch+0x167/0x230 kernel/sched/core.c:2750 context_switch kernel/sched/core.c:2869 [inline] __schedule+0x68e/0x730 kernel/sched/core.c:3446 schedule+0x1cc/0x2f0 kernel/sched/core.c:3505 freezable_schedule include/linux/freezer.h:172 [inline] do_nanosleep+0x2c3/0x9b0 kernel/time/hrtimer.c:1640 hrtimer_nanosleep kernel/time/hrtimer.c:1694 [inline] SYSC_nanosleep+0x420/0x6a0 kernel/time/hrtimer.c:1726 SyS_nanosleep+0x46/0x70 kernel/time/hrtimer.c:1713 do_syscall_64+0x309/0x430 arch/x86/entry/common.c:287 entry_SYSCALL_64_after_hwframe+0x3d/0xa2 RIP: 0033:0x481080 RSP: 002b:0000000000a3ea98 EFLAGS: 00000246 ORIG_RAX: 0000000000000023 RAX: ffffffffffffffda RBX: 0000000000000033 RCX: 0000000000481080 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000a3eaa0 RBP: 000000000001cb03 R08: 0000000000000001 R09: 0000000002710940 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000003 R14: 0000000000000195 R15: 000000000001c7df Code: 87 80 0c 00 00 00 00 00 00 41 c7 87 20 03 00 00 00 00 00 00 48 c7 c7 68 f6 82 8a 31 c0 48 89 d6 4c 89 ea 4c 89 e1 e8 fb ac 51 fd <0f> 0b 66 0f 1f 84 00 00 00 00 00 eb fe 48 8b 7d c8 e8 c5 88 cb RIP: __list_add_valid+0x275/0x450 lib/list_debug.c:23 RSP: ffff880154aef6a0 ---[ end trace 42120c9c466a3072 ]---