syzbot


BUG: sleeping function called from invalid context in folio_copy
Status: upstream: reported C repro on 2021/07/25 08:18
Reported-by: syzbot+bb4c69145b4a52b40b27@syzkaller.appspotmail.com
First crash: 304d, last: 302d

Cause bisection: introduced by (bisect log) [no-op commit]:
commit da6557edb9f3f4513b01d9a20a36c2fbc31810a1
Author: รlvaro Fernรกndez Rojas <noltari@gmail.com>
Date: Mon Mar 15 15:45:27 2021 +0000

  dt-bindings: net: Add bcm6368-mdio-mux bindings

Crash: WARNING in kvm_wait (log)
Repro: C syz .config
Patch testing requests:
Created Duration User Patch Repo Result
2021/07/27 06:22 0m wangqing@vivo.com patch git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git Thanks error
2021/07/27 03:47 0m wangqing@vivo.com patch git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 3dbdb38e error
2021/07/26 08:12 18m chouhan.shreyansh630@gmail.com upstream OK

Sample crash report:
BUG: sleeping function called from invalid context at mm/util.c:761
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1660, name: kcompactd0
1 lock held by kcompactd0/1660:
 #0: ffff8880111a4f70 (&mapping->private_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:359 [inline]
 #0: ffff8880111a4f70 (&mapping->private_lock){+.+.}-{2:2}, at: __buffer_migrate_page+0x3a8/0xa80 mm/migrate.c:722
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 0 PID: 1660 Comm: kcompactd0 Not tainted 5.14.0-rc2-next-20210721-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:105
 ___might_sleep.cold+0x1f3/0x239 kernel/sched/core.c:9182
 folio_copy+0x10c/0x1a0 mm/util.c:761
 folio_migrate_copy+0x19/0x30 mm/migrate.c:619
 __buffer_migrate_page+0x820/0xa80 mm/migrate.c:757
 move_to_new_page+0x339/0xf00 mm/migrate.c:904
 __unmap_and_move mm/migrate.c:1069 [inline]
 unmap_and_move mm/migrate.c:1210 [inline]
 migrate_pages+0x2867/0x3890 mm/migrate.c:1487
 compact_zone+0x1abb/0x3860 mm/compaction.c:2393
 kcompactd_do_work+0x2c9/0x730 mm/compaction.c:2808
 kcompactd+0x262/0xd10 mm/compaction.c:2903
 kthread+0x3e5/0x4d0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
BUG: sleeping function called from invalid context at mm/util.c:761
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 1660, name: kcompactd0
1 lock held by kcompactd0/1660:
 #0: ffff8880111a4f70 (&mapping->private_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:359 [inline]
 #0: ffff8880111a4f70 (&mapping->private_lock){+.+.}-{2:2}, at: __buffer_migrate_page+0x3a8/0xa80 mm/migrate.c:722
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 0 PID: 1660 Comm: kcompactd0 Tainted: G        W         5.14.0-rc2-next-20210721-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:105
 ___might_sleep.cold+0x1f3/0x239 kernel/sched/core.c:9182
 folio_copy+0x10c/0x1a0 mm/util.c:761
 folio_migrate_copy+0x19/0x30 mm/migrate.c:619
 __buffer_migrate_page+0x820/0xa80 mm/migrate.c:757
 move_to_new_page+0x339/0xf00 mm/migrate.c:904
 __unmap_and_move mm/migrate.c:1069 [inline]
 unmap_and_move mm/migrate.c:1210 [inline]
 migrate_pages+0x2867/0x3890 mm/migrate.c:1487
 compact_zone+0x1abb/0x3860 mm/compaction.c:2393
 kcompactd_do_work+0x2c9/0x730 mm/compaction.c:2808
 kcompactd+0x262/0xd10 mm/compaction.c:2903
 kthread+0x3e5/0x4d0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295

Crashes (271):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-linux-next-kasan-gce-root 2021/07/21 23:36 linux-next b1347210b01d 29c3f20f .config log report syz C BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/21 15:52 linux-next b1347210b01d 1b201b48 .config log report syz C BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/23 08:20 linux-next 7468cbf5c917 bc5f1d88 .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/23 07:07 linux-next 7468cbf5c917 bc5f1d88 .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/23 06:05 linux-next 7468cbf5c917 bc5f1d88 .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/23 04:35 linux-next 7468cbf5c917 bc5f1d88 .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/23 03:33 linux-next 7468cbf5c917 bc5f1d88 .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/23 02:44 linux-next 7468cbf5c917 bc5f1d88 .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/23 01:42 linux-next 7468cbf5c917 bc5f1d88 .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/23 01:00 linux-next 7468cbf5c917 bc5f1d88 .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 23:53 linux-next 7468cbf5c917 302e51de .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 22:49 linux-next 7468cbf5c917 302e51de .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 21:47 linux-next 7468cbf5c917 302e51de .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 21:26 linux-next 7468cbf5c917 302e51de .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 20:01 linux-next 7468cbf5c917 302e51de .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 18:54 linux-next 7468cbf5c917 302e51de .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 17:49 linux-next 7468cbf5c917 302e51de .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 17:15 linux-next 7468cbf5c917 302e51de .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 16:07 linux-next 7468cbf5c917 302e51de .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 14:52 linux-next 7468cbf5c917 302e51de .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 14:44 linux-next 7468cbf5c917 302e51de .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 13:38 linux-next 7468cbf5c917 302e51de .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 12:19 linux-next 7468cbf5c917 302e51de .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 11:41 linux-next 7468cbf5c917 29c3f20f .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 10:32 linux-next 7468cbf5c917 29c3f20f .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 09:28 linux-next 7468cbf5c917 29c3f20f .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 09:13 linux-next 7468cbf5c917 29c3f20f .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 08:11 linux-next 7468cbf5c917 29c3f20f .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 06:54 linux-next b1347210b01d 29c3f20f .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 05:20 linux-next b1347210b01d 29c3f20f .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 04:16 linux-next b1347210b01d 29c3f20f .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 03:23 linux-next b1347210b01d 29c3f20f .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 01:50 linux-next b1347210b01d 29c3f20f .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/22 00:42 linux-next b1347210b01d 29c3f20f .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/21 23:38 linux-next b1347210b01d 29c3f20f .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/21 22:14 linux-next b1347210b01d 29c3f20f .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/21 21:04 linux-next b1347210b01d 29c3f20f .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/21 19:04 linux-next b1347210b01d 29c3f20f .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/21 18:24 linux-next b1347210b01d 29c3f20f .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/21 17:18 linux-next b1347210b01d 29c3f20f .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/21 15:58 linux-next b1347210b01d 1b201b48 .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/21 15:41 linux-next b1347210b01d 1b201b48 .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/21 14:34 linux-next b1347210b01d 1b201b48 .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/21 13:30 linux-next b1347210b01d 1b201b48 .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/21 12:10 linux-next b1347210b01d 1b201b48 .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/21 12:03 linux-next b1347210b01d 1b201b48 .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/21 12:03 linux-next b1347210b01d 1b201b48 .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/21 11:59 linux-next b1347210b01d 1b201b48 .config log report info BUG: sleeping function called from invalid context in folio_copy
ci-upstream-linux-next-kasan-gce-root 2021/07/21 08:09 linux-next b1347210b01d 1b201b48 .config log report info BUG: sleeping function called from invalid context in folio_copy