syzbot


BUG: sleeping function called from invalid context in __munlock_pagevec

Status: auto-obsoleted due to no activity on 2023/04/15 02:09
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+cf9c548279bff83b0c97@syzkaller.appspotmail.com
First crash: 1240d, last: 1234d
Cause bisection: introduced by (bisect log) [merge commit]:
commit 68afbd8459e9c8a86544b5e884041981b837e162
Author: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Date: Mon Jun 14 07:07:45 2021 +0000

  Merge tag 'v5.13-rc6' into driver-core-next

Crash: BUG: sleeping function called from invalid context in lock_sock_nested (log)
Repro: C syz .config
  
Fix bisection: fixed by (bisect log) [no-op commit]:
commit 0c4f8fd3ed9cb27228497f0ae495ea6cef7017b1
Author: Peter Robinson <pbrobinson@gmail.com>
Date: Sun Jun 27 10:59:55 2021 +0000

  ASoC: remove zte zx dangling kconfig

  
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] BUG: sleeping function called from invalid context in __munlock_pagevec 1 (2) 2021/07/11 03:11
Last patch testing requests (4)
Created Duration User Patch Repo Result
2023/04/15 01:40 22m retest repro linux-next OK log
2022/10/09 09:30 17m retest repro linux-next error
2022/09/28 15:30 19m retest repro upstream OK log
2021/07/11 06:12 17m chouhan.shreyansh630@gmail.com linux-next report log

Sample crash report:
BUG: sleeping function called from invalid context at include/linux/pagemap.h:624
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 8516, name: syz-executor498
INFO: lockdep is turned off.
Preemption disabled at:
[<0000000000000000>] 0x0
CPU: 0 PID: 8516 Comm: syz-executor498 Tainted: G        W         5.13.0-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+0x1d3/0x29f lib/dump_stack.c:105
 ___might_sleep+0x4e5/0x6b0 kernel/sched/core.c:9154
 lock_page include/linux/pagemap.h:624 [inline]
 __munlock_pagevec+0xf0b/0x1ca0 mm/mlock.c:314
 munlock_vma_pages_range+0xb27/0xf60 mm/mlock.c:475
 mlock_fixup+0x40f/0x580 mm/mlock.c:552
 apply_mlockall_flags mm/mlock.c:768 [inline]
 __do_sys_munlockall+0x1ef/0x310 mm/mlock.c:810
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x43fc39
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 14 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff9e8d5468 EFLAGS: 00000246 ORIG_RAX: 0000000000000098
RAX: ffffffffffffffda RBX: 00000000000f4240 RCX: 000000000043fc39
RDX: 000000000043fc39 RSI: 00000000004020c3 RDI: 0000000000000012
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000001
R10: 00007fff9e8d4ee0 R11: 0000000000000246 R12: 000000000000d164
R13: 00007fff9e8d547c R14: 00007fff9e8d5490 R15: 00007fff9e8d5480

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/07/12 01:01 upstream 98f7fdced2e0 8f5a7b8c .config console log report syz C ci-upstream-kasan-gce-smack-root BUG: sleeping function called from invalid context in __munlock_pagevec
2021/07/07 18:25 linux-next ee268dee405b 4846d5c1 .config console log report syz C ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __munlock_pagevec
2021/07/12 02:10 upstream 98f7fdced2e0 8f5a7b8c .config console log report info ci-upstream-kasan-gce-smack-root BUG: sleeping function called from invalid context in __munlock_pagevec
2021/07/12 01:31 upstream 98f7fdced2e0 8f5a7b8c .config console log report info ci-upstream-kasan-gce-smack-root BUG: sleeping function called from invalid context in __munlock_pagevec
2021/07/11 19:29 upstream 98f7fdced2e0 8f5a7b8c .config console log report info ci-upstream-kasan-gce-root BUG: sleeping function called from invalid context in __munlock_pagevec
2021/07/11 19:21 upstream 98f7fdced2e0 8f5a7b8c .config console log report info ci-upstream-kasan-gce-root BUG: sleeping function called from invalid context in __munlock_pagevec
2021/07/11 01:57 linux-next 92510a7fd93c 8f5a7b8c .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __munlock_pagevec
2021/07/11 01:47 linux-next 92510a7fd93c 8f5a7b8c .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __munlock_pagevec
2021/07/10 06:16 linux-next 92510a7fd93c 8f5a7b8c .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __munlock_pagevec
2021/07/10 01:04 linux-next 92510a7fd93c 8f5a7b8c .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __munlock_pagevec
2021/07/09 09:32 linux-next 92510a7fd93c 281e815f .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __munlock_pagevec
2021/07/08 15:50 linux-next e2f74b13dbe6 95793bce .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __munlock_pagevec
2021/07/07 09:04 linux-next ee268dee405b 4846d5c1 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __munlock_pagevec
2021/07/07 02:24 linux-next d72e63193059 cca78469 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __munlock_pagevec
2021/07/06 22:07 linux-next d72e63193059 cca78469 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __munlock_pagevec
* Struck through repros no longer work on HEAD.