syzbot


BUG: sleeping function called from invalid context in __access_remote_vm

Status: auto-obsoleted due to no activity on 2023/04/22 12:01
Subsystems: fs
[Documentation on labels]
Reported-by: syzbot+5fb61eb0bea5eab81137@syzkaller.appspotmail.com
First crash: 578d, last: 574d
Cause bisection: failed (error log, bisect log)
  
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
BUG: sleeping function called from invalid context in check_noncircular kernfs 1 577d 573d 0/26 closed as dup on 2022/08/23 14:55
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] BUG: sleeping function called from invalid context in __access_remote_vm 1 (2) 2022/08/22 10:03
Last patch testing requests (10)
Created Duration User Patch Repo Result
2023/04/22 11:07 20m retest repro linux-next OK log
2023/04/22 11:07 20m retest repro linux-next OK log
2023/04/22 11:07 21m retest repro linux-next OK log
2023/04/22 11:07 20m retest repro linux-next OK log
2023/04/21 11:15 28m retest repro linux-next OK log
2023/04/21 11:15 28m retest repro linux-next OK log
2023/04/21 11:15 26m retest repro linux-next OK log
2023/04/21 11:15 26m retest repro linux-next OK log
2023/04/21 11:15 26m retest repro linux-next OK log
2022/12/02 22:30 20m retest repro linux-next error OK

Sample crash report:
FAULT_INJECTION: forcing a failure.
name fail_futex, interval 1, probability 0, space 0, times 1
CPU: 0 PID: 3625 Comm: syz-executor213 Not tainted 6.0.0-rc1-next-20220819-syzkaller #0
BUG: sleeping function called from invalid context at kernel/locking/rwsem.c:1521
in_atomic(): 0, irqs_disabled(): 1, non_block: 0, pid: 3625, name: syz-executor213
preempt_count: 0, expected: 0
RCU nest depth: 0, expected: 0
no locks held by syz-executor213/3625.
irq event stamp: 488
hardirqs last  enabled at (487): [<ffffffff81533e15>] raw_spin_rq_unlock_irq kernel/sched/sched.h:1352 [inline]
hardirqs last  enabled at (487): [<ffffffff81533e15>] finish_lock_switch kernel/sched/core.c:4956 [inline]
hardirqs last  enabled at (487): [<ffffffff81533e15>] finish_task_switch.isra.0+0x2b5/0xc70 kernel/sched/core.c:5074
hardirqs last disabled at (488): [<ffffffff894c1738>] dump_stack_lvl+0x2e/0x134 lib/dump_stack.c:139
softirqs last  enabled at (480): [<ffffffff81491a33>] invoke_softirq kernel/softirq.c:445 [inline]
softirqs last  enabled at (480): [<ffffffff81491a33>] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650
softirqs last disabled at (457): [<ffffffff81491a33>] invoke_softirq kernel/softirq.c:445 [inline]
softirqs last disabled at (457): [<ffffffff81491a33>] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:650
CPU: 0 PID: 3625 Comm: syz-executor213 Not tainted 6.0.0-rc1-next-20220819-syzkaller #0
syz-executor213[3625] cmdline: 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:122 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:140
 __might_resched.cold+0x222/0x26b kernel/sched/core.c:9896
 down_read_killable+0x75/0x490 kernel/locking/rwsem.c:1521
 mmap_read_lock_killable include/linux/mmap_lock.h:126 [inline]
 __access_remote_vm+0xac/0x6f0 mm/memory.c:5461
 get_mm_cmdline.part.0+0x217/0x620 fs/proc/base.c:299
 get_mm_cmdline fs/proc/base.c:367 [inline]
 get_task_cmdline_kernel+0x1d9/0x220 fs/proc/base.c:367
 dump_stack_print_cmdline.part.0+0x82/0x150 lib/dump_stack.c:61
 dump_stack_print_cmdline lib/dump_stack.c:89 [inline]
 dump_stack_print_info+0x185/0x190 lib/dump_stack.c:97
 __dump_stack lib/dump_stack.c:121 [inline]
 dump_stack_lvl+0xc1/0x134 lib/dump_stack.c:140
 fail_dump lib/fault-inject.c:55 [inline]
 should_fail.cold+0x5/0xa lib/fault-inject.c:155
 should_fail_futex kernel/futex/core.c:82 [inline]
 get_futex_key+0x5a8/0x1c30 kernel/futex/core.c:240
 futex_wait_setup+0xa7/0x230 kernel/futex/waitwake.c:602
 futex_wait+0x264/0x680 kernel/futex/waitwake.c:651
 do_futex+0x1af/0x300 kernel/futex/syscalls.c:106
 __do_sys_futex kernel/futex/syscalls.c:183 [inline]
 __se_sys_futex kernel/futex/syscalls.c:164 [inline]
 __x64_sys_futex+0x1b0/0x4a0 kernel/futex/syscalls.c:164
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fcdebae5fe9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 15 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcdeba942f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: ffffffffffffffda RBX: 00007fcdebb6e4a8 RCX: 00007fcdebae5fe9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fcdebb6e4a8
RBP: 00007fcdebb6e4a0 R08: 0000000000003131 R09: 0000000000003131
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fcdeba94300
R13: 0000000000000002 R14: 00007fcdeba94400 R15: 0000000000022000
 </TASK>
syz-executor213[3625] cmdline: 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:122 [inline]
 dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:140
 fail_dump lib/fault-inject.c:55 [inline]
 should_fail.cold+0x5/0xa lib/fault-inject.c:155
 should_fail_futex kernel/futex/core.c:82 [inline]
 get_futex_key+0x5a8/0x1c30 kernel/futex/core.c:240
 futex_wait_setup+0xa7/0x230 kernel/futex/waitwake.c:602
 futex_wait+0x264/0x680 kernel/futex/waitwake.c:651
 do_futex+0x1af/0x300 kernel/futex/syscalls.c:106
 __do_sys_futex kernel/futex/syscalls.c:183 [inline]
 __se_sys_futex kernel/futex/syscalls.c:164 [inline]
 __x64_sys_futex+0x1b0/0x4a0 kernel/futex/syscalls.c:164
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fcdebae5fe9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 15 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fcdeba942f8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca
RAX: ffffffffffffffda RBX: 00007fcdebb6e4a8 RCX: 00007fcdebae5fe9
RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fcdebb6e4a8
RBP: 00007fcdebb6e4a0 R08: 000000000000313

Crashes (86):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/08/22 16:46 linux-next 8755ae45a9e8 26a13b38 .config strace log report syz C ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/21 19:33 linux-next 8755ae45a9e8 26a13b38 .config strace log report syz C ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/21 15:49 linux-next 8755ae45a9e8 26a13b38 .config strace log report syz C ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/21 12:47 linux-next 8755ae45a9e8 26a13b38 .config strace log report syz C ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/20 23:43 linux-next 8755ae45a9e8 26a13b38 .config strace log report syz C ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/20 21:23 linux-next 8755ae45a9e8 26a13b38 .config strace log report syz C ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/20 20:55 linux-next 8755ae45a9e8 26a13b38 .config strace log report syz C ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/20 00:52 linux-next 8755ae45a9e8 26a13b38 .config strace log report syz C ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/18 16:56 linux-next 5b6a4bf680d6 d58e263f .config strace log report syz C ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/23 04:11 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/23 00:48 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/22 21:10 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/22 19:01 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/22 15:39 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/22 11:58 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/22 10:54 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/22 08:36 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/22 04:55 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/22 03:25 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/22 02:15 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/21 23:01 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/21 21:30 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/21 19:11 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/21 16:54 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/21 14:54 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/21 13:52 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/21 10:35 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/21 08:23 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/21 03:05 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/20 19:02 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/20 15:27 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/20 14:55 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/20 13:22 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/20 12:22 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/20 07:47 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/20 06:36 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/20 00:48 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/19 21:50 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/19 17:56 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/19 17:31 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/19 09:51 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/19 07:41 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/19 06:38 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/19 06:26 linux-next 8755ae45a9e8 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/19 04:13 linux-next 5b6a4bf680d6 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/19 02:12 linux-next 5b6a4bf680d6 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/19 02:01 linux-next 5b6a4bf680d6 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/19 02:01 linux-next 5b6a4bf680d6 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/19 01:30 linux-next 5b6a4bf680d6 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/19 01:08 linux-next 5b6a4bf680d6 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/18 23:56 linux-next 5b6a4bf680d6 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/18 21:56 linux-next 5b6a4bf680d6 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/18 20:41 linux-next 5b6a4bf680d6 26a13b38 .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
2022/08/18 08:58 linux-next 5b6a4bf680d6 d58e263f .config console log report info ci-upstream-linux-next-kasan-gce-root BUG: sleeping function called from invalid context in __access_remote_vm
* Struck through repros no longer work on HEAD.