syzbot


INFO: task hung in migrate_pages (2)

Status: auto-closed as invalid on 2022/04/08 00:51
Reported-by: syzbot+67c846f7c9b8278e8471@syzkaller.appspotmail.com
First crash: 685d, last: 356d
similar bugs (1):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in migrate_pages 14 780d 904d 0/24 auto-closed as invalid on 2021/01/09 03:04

Sample crash report:
INFO: task kcompactd0:30 blocked for more than 143 seconds.
      Not tainted 5.16.0-rc4-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kcompactd0      state:D stack:28440 pid:   30 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:4972 [inline]
 __schedule+0xa9a/0x4940 kernel/sched/core.c:6253
 schedule+0xd2/0x260 kernel/sched/core.c:6326
 io_schedule+0xee/0x170 kernel/sched/core.c:8371
 folio_wait_bit_common+0x4f2/0xa60 mm/filemap.c:1371
 lock_page include/linux/pagemap.h:796 [inline]
 __unmap_and_move mm/migrate.c:980 [inline]
 unmap_and_move mm/migrate.c:1204 [inline]
 migrate_pages+0xa5a/0x3810 mm/migrate.c:1481
 compact_zone+0x1abb/0x3860 mm/compaction.c:2399
 kcompactd_do_work+0x2c9/0x730 mm/compaction.c:2839
 kcompactd+0x86b/0xf30 mm/compaction.c:2941
 kthread+0x405/0x4f0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/27:
 #0: ffffffff8bb83d20 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6458
1 lock held by khugepaged/33:
 #0: ffffffff8bc68d68 (lock#5){+.+.}-{3:3}, at: __lru_add_drain_all+0x65/0x760 mm/swap.c:798
1 lock held by kswapd0/96:
2 locks held by systemd-journal/2958:
1 lock held by in:imklog/6214:
1 lock held by syz-fuzzer/6509:
2 locks held by kworker/u4:2/1444:
3 locks held by kworker/1:2/5644:
3 locks held by kworker/0:0/14524:
2 locks held by syz-executor.2/16086:
 #0: ffff888016b7d008 (mapping.invalidate_lock#2){.+.+}-{3:3}, at: filemap_invalidate_lock_shared include/linux/fs.h:838 [inline]
 #0: ffff888016b7d008 (mapping.invalidate_lock#2){.+.+}-{3:3}, at: page_cache_ra_unbounded+0x1b3/0x940 mm/readahead.c:194
 #1: ffffffff8bca9028 (pcpu_drain_mutex){+.+.}-{3:3}, at: __drain_all_pages+0x4f/0x6c0 mm/page_alloc.c:3181

=============================================

NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.16.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106
 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1b3/0x230 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline]
 watchdog+0xc1d/0xf50 kernel/hung_task.c:295
 kthread+0x405/0x4f0 kernel/kthread.c:327
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 6509 Comm: syz-fuzzer Not tainted 5.16.0-rc4-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:_compound_head include/linux/page-flags.h:198 [inline]
RIP: 0010:add_page_to_lru_list include/linux/mm_inline.h:106 [inline]
RIP: 0010:move_pages_to_lru+0x598/0x16b0 mm/vmscan.c:2316
Code: 04 00 00 e8 4a cc d4 ff 48 89 ef e8 52 ac ff ff 49 39 c4 0f 85 2d ff ff ff e8 34 cc d4 ff 48 89 d8 48 c1 e8 03 42 80 3c 30 00 <0f> 85 dc 0e 00 00 4c 8b 2b 31 ff 4c 89 ed 83 e5 01 48 89 ee e8 9f
RSP: 0018:ffffc90001a7efb8 EFLAGS: 00000046
RAX: 1ffffd4000eac0f9 RBX: ffffea00075607c8 RCX: 0000000000000000
RDX: ffff88807b318000 RSI: ffffffff81a2debc RDI: 0000000000000003
RBP: ffffea00075607c0 R08: 0000000000000000 R09: ffffea00075607c7
R10: ffffffff81a28bf0 R11: 0000000000000000 R12: ffff888010e5c000
R13: 0000000000000001 R14: dffffc0000000000 R15: ffffea00075607c0
FS:  000000c000187c90(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000726600 CR3: 000000001c960000 CR4: 0000000000350ee0
Call Trace:
 <TASK>
 shrink_inactive_list mm/vmscan.c:2397 [inline]
 shrink_list mm/vmscan.c:2621 [inline]
 shrink_lruvec+0xcb4/0x2660 mm/vmscan.c:2940
 shrink_node_memcgs mm/vmscan.c:3129 [inline]
 shrink_node+0x858/0x1eb0 mm/vmscan.c:3252
 shrink_zones mm/vmscan.c:3485 [inline]
 do_try_to_free_pages+0x4e2/0x1640 mm/vmscan.c:3541
 try_to_free_pages+0x29f/0x750 mm/vmscan.c:3776
 __perform_reclaim mm/page_alloc.c:4588 [inline]
 __alloc_pages_direct_reclaim mm/page_alloc.c:4609 [inline]
 __alloc_pages_slowpath.constprop.0+0xac7/0x20d0 mm/page_alloc.c:5007
 __alloc_pages+0x412/0x500 mm/page_alloc.c:5382
 alloc_pages+0x1a7/0x300 mm/mempolicy.c:2191
 folio_alloc+0x1c/0x70 mm/mempolicy.c:2201
 filemap_alloc_folio+0x8e/0xb0 mm/filemap.c:1036
 __page_cache_alloc include/linux/pagemap.h:374 [inline]
 page_cache_ra_unbounded+0x36a/0x940 mm/readahead.c:215
 do_page_cache_ra+0xf9/0x140 mm/readahead.c:268
 do_sync_mmap_readahead mm/filemap.c:2996 [inline]
 filemap_fault+0x1562/0x26d0 mm/filemap.c:3089
 __do_fault+0x10d/0x4d0 mm/memory.c:3849
 do_read_fault mm/memory.c:4164 [inline]
 do_fault mm/memory.c:4293 [inline]
 handle_pte_fault mm/memory.c:4551 [inline]
 __handle_mm_fault+0x28e8/0x5120 mm/memory.c:4686
 handle_mm_fault+0x1c8/0x790 mm/memory.c:4784
 do_user_addr_fault+0x489/0x11c0 arch/x86/mm/fault.c:1397
 handle_page_fault arch/x86/mm/fault.c:1485 [inline]
 exc_page_fault+0x9e/0x180 arch/x86/mm/fault.c:1541
 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:568
RIP: 0033:0x414ca5
Code: 00 00 00 00 00 48 39 c8 0f 84 af 00 00 00 80 3d 54 19 48 01 00 0f 84 98 00 00 00 48 8b 54 24 38 48 8b 5a 08 90 48 85 db 75 62 <48> 8b 1a 48 89 04 24 48 89 4c 24 08 48 89 5c 24 10 e8 a5 84 05 00
RSP: 002b:000000c0000bfc40 EFLAGS: 00010246
RAX: 000000c01a3c4bc0 RBX: 0000000000000018 RCX: 000000c0000bfd48
RDX: 0000000000726600 RSI: c063f0b799bebd4a RDI: 0000000000000001
RBP: 000000c0000bfc68 R08: 0000000000000a98 R09: 00007ffc3736e080
R10: 00007ffc3736e090 R11: 0000000000081b7a R12: 00000277b56e5370
R13: 0000000000000001 R14: 00000277b56e5370 R15: 000000000000cee5
 </TASK>
----------------
Code disassembly (best guess), 1 bytes skipped:
   0:	00 00                	add    %al,(%rax)
   2:	e8 4a cc d4 ff       	callq  0xffd4cc51
   7:	48 89 ef             	mov    %rbp,%rdi
   a:	e8 52 ac ff ff       	callq  0xffffac61
   f:	49 39 c4             	cmp    %rax,%r12
  12:	0f 85 2d ff ff ff    	jne    0xffffff45
  18:	e8 34 cc d4 ff       	callq  0xffd4cc51
  1d:	48 89 d8             	mov    %rbx,%rax
  20:	48 c1 e8 03          	shr    $0x3,%rax
  24:	42 80 3c 30 00       	cmpb   $0x0,(%rax,%r14,1)
* 29:	0f 85 dc 0e 00 00    	jne    0xf0b <-- trapping instruction
  2f:	4c 8b 2b             	mov    (%rbx),%r13
  32:	31 ff                	xor    %edi,%edi
  34:	4c 89 ed             	mov    %r13,%rbp
  37:	83 e5 01             	and    $0x1,%ebp
  3a:	48 89 ee             	mov    %rbp,%rsi
  3d:	e8                   	.byte 0xe8
  3e:	9f                   	lahf

Crashes (70):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-root 2021/12/07 11:54 upstream f80ef9e49fdf 0230ba3e .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/12/06 08:00 upstream 944207047ca4 a617004c .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/12/06 01:33 upstream 944207047ca4 a617004c .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/12/04 10:13 upstream 12119cfa1052 a617004c .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/12/03 08:16 upstream a51e3ac43ddb 61f86278 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/12/03 01:27 upstream a51e3ac43ddb 61f86278 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/12/03 00:44 upstream a51e3ac43ddb 61f86278 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/12/01 19:49 upstream 58e1100fdc59 5fa3eacc .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/12/01 13:48 upstream 58e1100fdc59 5fa3eacc .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/12/01 02:44 upstream f080815fdb3e 80270552 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/11/30 22:58 upstream f080815fdb3e 80270552 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/11/30 16:06 upstream d58071a8a76d 80270552 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/11/30 00:59 upstream d58071a8a76d d0830353 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/11/29 23:50 upstream d58071a8a76d d0830353 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/11/29 10:29 upstream d06c942efea4 63eeac02 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/11/26 01:23 upstream b501b85957de 63eeac02 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/11/23 06:03 upstream 136057256686 545ab074 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/11/22 21:24 upstream 136057256686 545ab074 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/11/21 01:39 upstream a90af8f15bdc 4eb20a4e .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/11/20 23:39 upstream a90af8f15bdc 4eb20a4e .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/11/17 23:00 upstream ee1703cda8dc cafff8b6 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/11/17 15:18 upstream 8ab774587903 cafff8b6 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/11/16 20:35 upstream 8ab774587903 600426bd .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/11/15 04:10 upstream ce49bfc8d037 83f5c9b5 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/11/15 00:22 upstream c8c109546a19 83f5c9b5 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/11/14 10:39 upstream ccfff0a2bd2a 83f5c9b5 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/11/13 04:36 upstream 5833291ab6de 83f5c9b5 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/11/12 10:55 upstream 5833291ab6de 75b04091 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/11/12 03:49 upstream 5833291ab6de 75b04091 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/11/11 19:19 upstream debe436e77c7 75b04091 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/11/11 17:01 upstream debe436e77c7 75b04091 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/11/11 15:37 upstream debe436e77c7 75b04091 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/11/10 18:16 upstream cb690f5238d7 75b04091 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/11/09 18:34 upstream d2f38a3c6507 59bcaf9a .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/11/08 08:23 upstream 6b75d88fa81b 4c1be0be .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/11/08 06:12 upstream 6b75d88fa81b 4c1be0be .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/11/07 01:48 upstream 512b7931ad05 4c1be0be .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/11/06 04:42 upstream d4439a1189f9 4c1be0be .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/11/01 16:44 upstream 8bb7eca972ad 098b5d53 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/10/20 07:57 upstream d9abdee5fd5a 466b7db1 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/10/10 13:22 upstream 7fd2bf83d59a 838e7e2c .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/10/05 07:24 upstream 84b3e42564ac ce697b49 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/09/26 05:51 upstream a5e0aceabef6 8cac236e .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/09/21 08:23 upstream e4e737bb5c17 af796c18 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/09/09 13:27 upstream 730bf31b8fc8 e2776ee4 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/08/20 11:21 upstream f87d64319e6f b599f2fc .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/07/27 14:30 upstream ff1176468d36 fd511809 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/07/07 03:11 upstream 3dbdb38e2869 cca78469 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/06/21 02:33 upstream cba5e97280f5 aba2b2fb .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/06/01 18:22 upstream c2131f7e73c9 032639db .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/04/24 14:27 upstream e77a830c8297 17f0b706 .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/04/22 01:46 upstream 16fc44d6387e 2bc8999a .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/04/08 03:56 upstream 3a22981230f9 6a81331a .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-root 2021/01/21 14:53 upstream 9791581c049c d4f4eca5 .config log report info INFO: task hung in migrate_pages
ci-upstream-linux-next-kasan-gce-root 2021/12/09 00:50 linux-next 4eee8d0b64ec a4a2a501 .config log report info INFO: task hung in migrate_pages
ci-upstream-linux-next-kasan-gce-root 2021/12/06 06:54 linux-next f81e94e91878 a617004c .config log report info INFO: task hung in migrate_pages
ci-upstream-linux-next-kasan-gce-root 2021/12/05 05:30 linux-next f81e94e91878 a617004c .config log report info INFO: task hung in migrate_pages
ci-upstream-linux-next-kasan-gce-root 2021/11/01 02:10 linux-next bdcc9f6a5682 098b5d53 .config log report info INFO: task hung in migrate_pages
ci-upstream-linux-next-kasan-gce-root 2021/10/19 23:35 linux-next 60e8840126bd 466b7db1 .config log report info INFO: task hung in migrate_pages
ci-upstream-linux-next-kasan-gce-root 2021/10/14 19:21 linux-next 8006b911c90a 7aa5fe41 .config log report info INFO: task hung in migrate_pages
ci-upstream-linux-next-kasan-gce-root 2021/10/11 13:42 linux-next d3134eb5de85 838e7e2c .config log report info INFO: task hung in migrate_pages
ci-upstream-linux-next-kasan-gce-root 2021/10/07 05:40 linux-next 0dda5ee37364 62ee0987 .config log report info INFO: task hung in migrate_pages
ci-upstream-linux-next-kasan-gce-root 2021/10/05 04:46 linux-next a25006a77348 ce697b49 .config log report info INFO: task hung in migrate_pages
ci-upstream-linux-next-kasan-gce-root 2021/09/03 03:05 linux-next c1b13fe76e95 15cea0a3 .config log report info INFO: task hung in migrate_pages
ci-upstream-linux-next-kasan-gce-root 2021/07/11 22:05 linux-next 92510a7fd93c 8f5a7b8c .config log report info INFO: task hung in migrate_pages
ci-upstream-linux-next-kasan-gce-root 2021/07/07 06:27 linux-next d72e63193059 cca78469 .config log report info INFO: task hung in migrate_pages
ci-upstream-linux-next-kasan-gce-root 2021/06/28 16:16 linux-next a1f92694393a 9d2ab5df .config log report info INFO: task hung in migrate_pages
ci-upstream-kasan-gce-selinux-root 2021/01/14 06:56 upstream 65f0d2414b70 269d24e8 .config log report info
* Struck through repros no longer work on HEAD.