QAT: Invalid ioctl BUG: unable to handle kernel paging request at ffffc90001522000 kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access IP: memset_erms+0x9/0x10 arch/x86/lib/memset_64.S:65 PGD 1dad2c067 P4D 1dad2c067 PUD 1dad2d067 PMD 1bafd0067 PTE 0 Oops: 0002 [#1] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 1 PID: 8054 Comm: syz-executor7 Not tainted 4.15.0-rc8+ #263 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:memset_erms+0x9/0x10 arch/x86/lib/memset_64.S:65 RSP: 0018:ffff8801a793f508 EFLAGS: 00010246 RAX: fffff520002ce600 RBX: ffffc9000151f000 RCX: 0000000000151000 RDX: 0000000000154000 RSI: 0000000000000000 RDI: ffffc90001522000 RBP: ffff8801a793f528 R08: 0000000000000000 R09: ffffc9000151f000 R10: 000000000002a800 R11: fffff520002ce5ff R12: 0000000000154000 R13: 0000000000000000 R14: ffffffff86e6b03c R15: 0000000000000010 FS: 00007fc77c564700(0000) GS:ffff8801db300000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffc90001522000 CR3: 00000001a7c85002 CR4: 00000000001606e0 Call Trace: memset include/linux/string.h:329 [inline] snd_pcm_format_set_silence+0x13f/0x4b0 sound/core/pcm_misc.c:414 loopback_prepare+0x922/0xbe0 sound/drivers/aloop.c:340 snd_pcm_do_prepare+0x58/0x90 sound/core/pcm_native.c:1640 snd_pcm_action_single+0x70/0x110 sound/core/pcm_native.c:1084 snd_pcm_action_nonatomic+0x95/0xa0 sound/core/pcm_native.c:1151 snd_pcm_prepare+0x115/0x1a0 sound/core/pcm_native.c:1687 snd_pcm_kernel_ioctl+0x97/0x240 sound/core/pcm_native.c:2998 snd_pcm_oss_prepare+0x49/0x150 sound/core/oss/pcm_oss.c:1104 snd_pcm_oss_make_ready+0xf9/0x130 sound/core/oss/pcm_oss.c:1132 snd_pcm_oss_set_trigger+0x62d/0x830 sound/core/oss/pcm_oss.c:1957 snd_pcm_oss_poll+0x77c/0xd20 sound/core/oss/pcm_oss.c:2725 do_pollfd fs/select.c:822 [inline] do_poll fs/select.c:872 [inline] do_sys_poll+0x715/0x10b0 fs/select.c:966 SYSC_poll fs/select.c:1024 [inline] SyS_poll+0x10d/0x450 fs/select.c:1012 entry_SYSCALL_64_fastpath+0x29/0xa0 RIP: 0033:0x452cf9 RSP: 002b:00007fc77c563c58 EFLAGS: 00000212 ORIG_RAX: 0000000000000007 RAX: ffffffffffffffda RBX: 000000000071bea0 RCX: 0000000000452cf9 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000020038000 RBP: 00000000000003ad R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000212 R12: 00000000006f38d8 R13: 00000000ffffffff R14: 00007fc77c5646d4 R15: 0000000000000000 Code: 48 c1 e9 03 40 0f b6 f6 48 b8 01 01 01 01 01 01 01 01 48 0f af c6 f3 48 ab 89 d1 f3 aa 4c 89 c8 c3 90 49 89 f9 40 88 f0 48 89 d1 aa 4c 89 c8 c3 90 49 89 fa 40 0f b6 ce 48 b8 01 01 01 01 01 RIP: memset_erms+0x9/0x10 arch/x86/lib/memset_64.S:65 RSP: ffff8801a793f508 CR2: ffffc90001522000 ---[ end trace 662b86c57295e9c4 ]--- general protection fault: 0000 [#2] SMP KASAN Dumping ftrace buffer: (ftrace buffer empty) Modules linked in: CPU: 0 PID: 8049 Comm: syz-executor6 Tainted: G D 4.15.0-rc8+ #263 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__rb_insert lib/rbtree.c:131 [inline] RIP: 0010:rb_insert_color_cached+0x1ab/0x1660 lib/rbtree.c:469 RSP: 0018:ffff8801bc426ea0 EFLAGS: 00010002 RAX: dffffc0000000000 RBX: 1ffff10037884dda RCX: 0000000000000001 RDX: 0000000000000008 RSI: ffff8801db22c330 RDI: ffff8801cc9080d8 RBP: ffff8801bc427298 R08: ffff8801bc427270 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000 R13: ffff8801cf6ba398 R14: ffff8801cc9080c0 R15: ffff8801cc9080d8 FS: 00000000018b8940(0000) GS:ffff8801db200000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020581ff0 CR3: 00000001cae60002 CR4: 00000000001606f0 Call Trace: __enqueue_entity+0x109/0x1e0 kernel/sched/fair.c:576 enqueue_entity kernel/sched/fair.c:4049 [inline] enqueue_task_fair+0x3b7/0x2950 kernel/sched/fair.c:5223 enqueue_task kernel/sched/core.c:771 [inline] activate_task+0x150/0x2c0 kernel/sched/core.c:790 ttwu_activate kernel/sched/core.c:1661 [inline] ttwu_do_activate+0xd5/0x200 kernel/sched/core.c:1720 ttwu_queue kernel/sched/core.c:1865 [inline] try_to_wake_up+0xa8d/0x1600 kernel/sched/core.c:2078 wake_up_process kernel/sched/core.c:2151 [inline] wake_up_q+0x8a/0xe0 kernel/sched/core.c:469 futex_wake+0x572/0x680 kernel/futex.c:1574 do_futex+0x11b0/0x22a0 kernel/futex.c:3495 SYSC_futex kernel/futex.c:3551 [inline] SyS_futex+0x260/0x390 kernel/futex.c:3519 entry_SYSCALL_64_fastpath+0x29/0xa0 RIP: 0033:0x452cf9 RSP: 002b:0000000000a2f8c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: ffffffffffffffda RBX: 000000000071ca20 RCX: 0000000000452cf9 RDX: ffffffffffffffff RSI: 0000000000000001 RDI: 000000000071bf80 RBP: 0000000000000004 R08: 0000000000720c18 R09: 0000000000000031 R10: 0000000000a2f9b0 R11: 0000000000000246 R12: fffffffffffffffe R13: ffffffffffffffff R14: 0000000000000005 R15: 0000000000000010 Code: b1 14 00 00 4d 8b 24 24 48 b8 00 00 00 00 00 fc ff df 41 f6 c4 01 0f 85 f8 01 00 00 49 8d 54 24 08 4d 89 e1 48 89 d1 48 c1 e9 03 <80> 3c 01 00 0f 85 2d 14 00 00 4d 8b 74 24 08 4d 39 ee 0f 84 4b RIP: __rb_insert lib/rbtree.c:131 [inline] RSP: ffff8801bc426ea0 RIP: rb_insert_color_cached+0x1ab/0x1660 lib/rbtree.c:469 RSP: ffff8801bc426ea0 ---[ end trace 662b86c57295e9c5 ]---