syzbot


BUG: sleeping function called from invalid context in __put_anon_vma

Status: auto-obsoleted due to no activity on 2024/10/29 01:55
Reported-by: syzbot+3dc9f5ef27e1d1120b69@syzkaller.appspotmail.com
First crash: 283d, last: 276d
Bug presence (1)
Date Name Commit Repro Result
2024/10/29 upstream (ToT) e42b1a9a2557 C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 BUG: sleeping function called from invalid context in __put_anon_vma origin:lts-only C unreliable 1 279d 279d 0/3 upstream: reported C repro on 2024/02/16 03:12
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/10/14 19:38 1h24m retest repro linux-5.15.y error
2024/10/14 19:38 42m retest repro linux-5.15.y OK log
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2024/02/15 17:31 6h31m fix candidate upstream OK (1) job log

Sample crash report:
BUG: sleeping function called from invalid context at mm/rmap.c:127
in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3967, name: syz-executor180
no locks held by syz-executor180/3967.
Preemption disabled at:
[<ffffffff8174f806>] is_module_text_address+0x16/0x140 kernel/module.c:4758
CPU: 0 PID: 3967 Comm: syz-executor180 Not tainted 5.15.148-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 ___might_sleep+0x547/0x6a0 kernel/sched/core.c:9626
 anon_vma_free mm/rmap.c:127 [inline]
 __put_anon_vma+0x82/0x2d0 mm/rmap.c:2252
 put_anon_vma include/linux/rmap.h:114 [inline]
 unlink_anon_vmas+0x48f/0x5f0 mm/rmap.c:440
 free_pgtables+0x178/0x2a0 mm/memory.c:426
 exit_mmap+0x3c5/0x670 mm/mmap.c:3187
 __mmput+0x112/0x3b0 kernel/fork.c:1126
 exit_mm+0x688/0x7f0 kernel/exit.c:548
 do_exit+0x626/0x2480 kernel/exit.c:859
 do_group_exit+0x144/0x310 kernel/exit.c:994
 __do_sys_exit_group kernel/exit.c:1005 [inline]
 __se_sys_exit_group kernel/exit.c:1003 [inline]
 __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1003
 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+0x61/0xcb
RIP: 0033:0x7fbee7afe3e9
Code: Unable to access opcode bytes at RIP 0x7fbee7afe3bf.
RSP: 002b:00007ffff7562d08 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fbee7afe3e9
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 00007fbee7b863b0 R08: ffffffffffffffb0 R09: 00007ffff7562d8c
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fbee7b863b0
R13: 0000000000000000 R14: 00007fbee7b88ee0 R15: 00007fbee7ac39a0
 </TASK>
BUG: scheduling while atomic: syz-executor180/3967/0x00000002
no locks held by syz-executor180/3967.
Modules linked in:
Preemption disabled at:
[<ffffffff8174f806>] is_module_text_address+0x16/0x140 kernel/module.c:4758

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/19 06:53 linux-5.15.y 6139f2a02fe0 578f7538 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf BUG: sleeping function called from invalid context in __put_anon_vma
2024/02/12 07:26 linux-5.15.y 6139f2a02fe0 77b23aa1 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf BUG: sleeping function called from invalid context in __put_anon_vma
* Struck through repros no longer work on HEAD.