syzbot


INFO: trying to register non-static key in pm_qos_remove_request

Status: auto-closed as invalid on 2022/07/28 10:14
Reported-by: syzbot+4e1495962fc1d99ed85e@syzkaller.appspotmail.com
First crash: 729d, last: 729d

Sample crash report:
INFO: trying to register non-static key.
the code is fine but needs lockdep annotation.
turning off the locking correctness validator.
CPU: 1 PID: 9517 Comm: syz-executor.4 Not tainted 4.14.274-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 register_lock_class+0x389/0x1180 kernel/locking/lockdep.c:768
 __lock_acquire+0x167/0x3f20 kernel/locking/lockdep.c:3378
 lock_acquire+0x170/0x3f0 kernel/locking/lockdep.c:3998
 flush_work+0xad/0x770 kernel/workqueue.c:2890
 __cancel_work_timer+0x321/0x460 kernel/workqueue.c:2965
 pm_qos_remove_request+0x5e/0x460 kernel/power/qos.c:538
 snd_pcm_hw_free sound/core/pcm_native.c:795 [inline]
 snd_pcm_common_ioctl+0x12da/0x2810 sound/core/pcm_native.c:2928
 snd_pcm_ioctl+0x6d/0xa0 sound/core/pcm_native.c:3007
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:500 [inline]
 do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684
 SYSC_ioctl fs/ioctl.c:701 [inline]
 SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f318540d049
RSP: 002b:00007f3183d82168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f318551ff60 RCX: 00007f318540d049
RDX: 0000000000000000 RSI: 0000000000004112 RDI: 0000000000000004
RBP: 00007f318546708d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffa582914f R14: 00007f3183d82300 R15: 0000000000022000
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 9517 Comm: syz-executor.4 Not tainted 4.14.274-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880afea2580 task.stack: ffff888075e38000
RIP: 0010:__read_once_size include/linux/compiler.h:185 [inline]
RIP: 0010:list_empty include/linux/list.h:203 [inline]
RIP: 0010:plist_head_empty include/linux/plist.h:214 [inline]
RIP: 0010:pm_qos_get_value kernel/power/qos.c:154 [inline]
RIP: 0010:pm_qos_update_target+0x42/0x9d0 kernel/power/qos.c:281
RSP: 0018:ffff888075e3fc10 EFLAGS: 00010046
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff88f67a84
RBP: ffff8880a51d16c0 R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: ffff8880afea2580 R12: 0000000000000000
R13: 0000000000000002 R14: ffff8880a51d16e8 R15: 0000000000000000
FS:  00007f3183d82700(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005555574fc708 CR3: 00000000afef6000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 pm_qos_remove_request+0x11c/0x460 kernel/power/qos.c:541
 snd_pcm_hw_free sound/core/pcm_native.c:795 [inline]
 snd_pcm_common_ioctl+0x12da/0x2810 sound/core/pcm_native.c:2928
 snd_pcm_ioctl+0x6d/0xa0 sound/core/pcm_native.c:3007
 vfs_ioctl fs/ioctl.c:46 [inline]
 file_ioctl fs/ioctl.c:500 [inline]
 do_vfs_ioctl+0x75a/0xff0 fs/ioctl.c:684
 SYSC_ioctl fs/ioctl.c:701 [inline]
 SyS_ioctl+0x7f/0xb0 fs/ioctl.c:692
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f318540d049
RSP: 002b:00007f3183d82168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f318551ff60 RCX: 00007f318540d049
RDX: 0000000000000000 RSI: 0000000000004112 RDI: 0000000000000004
RBP: 00007f318546708d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffa582914f R14: 00007f3183d82300 R15: 0000000000022000
Code: 89 4c 24 04 e8 00 c5 12 00 48 c7 c7 80 7a f6 88 e8 b4 be e1 05 48 89 da 48 89 44 24 08 48 c1 ea 03 48 b8 00 00 00 00 00 fc ff df <80> 3c 02 00 0f 85 8d 08 00 00 48 8b 03 48 39 c3 0f 84 17 07 00 
RIP: __read_once_size include/linux/compiler.h:185 [inline] RSP: ffff888075e3fc10
RIP: list_empty include/linux/list.h:203 [inline] RSP: ffff888075e3fc10
RIP: plist_head_empty include/linux/plist.h:214 [inline] RSP: ffff888075e3fc10
RIP: pm_qos_get_value kernel/power/qos.c:154 [inline] RSP: ffff888075e3fc10
RIP: pm_qos_update_target+0x42/0x9d0 kernel/power/qos.c:281 RSP: ffff888075e3fc10
---[ end trace 263d26d5fb41d12e ]---
----------------
Code disassembly (best guess):
   0:	89 4c 24 04          	mov    %ecx,0x4(%rsp)
   4:	e8 00 c5 12 00       	callq  0x12c509
   9:	48 c7 c7 80 7a f6 88 	mov    $0xffffffff88f67a80,%rdi
  10:	e8 b4 be e1 05       	callq  0x5e1bec9
  15:	48 89 da             	mov    %rbx,%rdx
  18:	48 89 44 24 08       	mov    %rax,0x8(%rsp)
  1d:	48 c1 ea 03          	shr    $0x3,%rdx
  21:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  28:	fc ff df
* 2b:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2f:	0f 85 8d 08 00 00    	jne    0x8c2
  35:	48 8b 03             	mov    (%rbx),%rax
  38:	48 39 c3             	cmp    %rax,%rbx
  3b:	0f                   	.byte 0xf
  3c:	84 17                	test   %dl,(%rdi)
  3e:	07                   	(bad)

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/03/30 10:14 linux-4.14.y af1af6ebca0e 42718dd6 .config console log report info ci2-linux-4-14 INFO: trying to register non-static key in pm_qos_remove_request
* Struck through repros no longer work on HEAD.