Freezing user space processes ------------[ cut here ]------------ debug_locks && p->lockdep_depth WARNING: kernel/freezer.c:139 at __set_task_frozen+0x211/0x2e0 kernel/freezer.c:139, CPU#2: syz.0.749/7646 Modules linked in: CPU: 2 UID: 0 PID: 7646 Comm: syz.0.749 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:__set_task_frozen+0x211/0x2e0 kernel/freezer.c:139 Code: 0f b6 04 02 84 c0 74 09 3c 03 7f 05 e8 c8 c6 8f 00 8b ab a0 0b 00 00 31 ff 89 ee e8 19 4f 16 00 85 ed 74 09 e8 a0 54 16 00 90 <0f> 0b 90 e8 97 54 16 00 4c 89 e2 48 b8 00 00 00 00 00 fc ff df 48 RSP: 0018:ffffc900064cf978 EFLAGS: 00010083 RAX: 0000000000042f9d RBX: ffff888044904b00 RCX: ffffc9000c321000 RDX: 0000000000080000 RSI: ffffffff81f79400 RDI: 0000000000000005 RBP: 0000000000000003 R08: 0000000000000000 R09: 0000000000000003 R10: 0000000000000003 R11: 0000000000000000 R12: ffff888044904b18 R13: 0000000000000002 R14: dffffc0000000000 R15: ffff888044905580 FS: 0000000000000000(0000) GS:ffff88809546c000(0063) knlGS:00000000f545db40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000f544bda4 CR3: 000000006df27000 CR4: 0000000000352ef0 Call Trace: task_call_func+0x169/0x380 kernel/sched/core.c:4569 __freeze_task kernel/freezer.c:150 [inline] freeze_task+0x151/0x270 kernel/freezer.c:169 try_to_freeze_tasks+0x243/0x680 kernel/power/process.c:54 freeze_processes+0xf2/0x1e0 kernel/power/process.c:137 suspend_freeze_processes kernel/power/power.h:281 [inline] suspend_prepare kernel/power/suspend.c:391 [inline] enter_state kernel/power/suspend.c:613 [inline] pm_suspend kernel/power/suspend.c:648 [inline] pm_suspend+0x32c/0x7b0 kernel/power/suspend.c:640 state_store+0x101/0x240 kernel/power/main.c:819 kobj_attr_store+0x58/0x80 lib/kobject.c:842 sysfs_kf_write+0xf2/0x150 fs/sysfs/file.c:145 kernfs_fop_write_iter+0x3e0/0x5f0 fs/kernfs/file.c:345 new_sync_write fs/read_write.c:575 [inline] vfs_write+0x6af/0x1040 fs/read_write.c:667 ksys_write+0x12a/0x250 fs/read_write.c:719 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:79 [inline] __do_fast_syscall_32+0x14d/0x8e0 arch/x86/entry/syscall_32.c:286 do_fast_syscall_32+0x32/0x70 arch/x86/entry/syscall_32.c:311 entry_SYSENTER_compat_after_hwframe+0x84/0x8e RIP: 0023:0xf706efbc Code: d2 74 05 c1 e8 0c 89 02 8b 5d fc 31 c0 c9 c3 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 2e 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 58 b8 RSP: 002b:00000000f545d50c EFLAGS: 00000292 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 0000000080000140 RDX: 0000000000000004 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: d2 74 05 c1 shlb %cl,-0x3f(%rbp,%rax,1) 4: e8 0c 89 02 8b call 0x8b028915 9: 5d pop %rbp a: fc cld b: 31 c0 xor %eax,%eax d: c9 leave e: c3 ret f: 90 nop 10: 90 nop 11: 90 nop 12: 90 nop 13: 90 nop 14: 90 nop 15: 90 nop 16: 90 nop 17: 90 nop 18: 90 nop 19: 90 nop 1a: 90 nop 1b: 90 nop 1c: 90 nop 1d: 90 nop 1e: 0f 1f 00 nopl (%rax) 21: 51 push %rcx 22: 52 push %rdx 23: 55 push %rbp 24: 89 e5 mov %esp,%ebp 26: 0f 34 sysenter 28: cd 80 int $0x80 * 2a: 5d pop %rbp <-- trapping instruction 2b: 5a pop %rdx 2c: 59 pop %rcx 2d: c3 ret 2e: 90 nop 2f: 2e 8d b4 26 00 00 00 cs lea 0x0(%rsi,%riz,1),%esi 36: 00 37: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 3e: 58 pop %rax 3f: b8 .byte 0xb8