blkdev_ioctl+0x2ef/0x6e0 block/ioctl.c:774 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ kernel BUG at mm/filemap.c:858! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 2 UID: 0 PID: 9985 Comm: syz.3.1142 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:__filemap_add_folio+0xf29/0x11b0 mm/filemap.c:858 Code: 97 c6 ff 48 c7 c6 80 ed 99 8b 4c 89 ef e8 0f 74 11 00 90 0f 0b e8 07 97 c6 ff 48 c7 c6 e0 ed 99 8b 4c 89 ef e8 f8 73 11 00 90 <0f> 0b e8 f0 96 c6 ff 90 0f 0b 90 e9 1c fc ff ff e8 e2 96 c6 ff 48 RSP: 0018:ffffc900043af4b0 EFLAGS: 00010246 RAX: 0000000000080000 RBX: 0000000000000000 RCX: ffffc9000c001000 RDX: 0000000000080000 RSI: ffffffff81f84fc8 RDI: ffff8880355e2944 RBP: 0000000000112cc0 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff9088b4d7 R11: 0000000000000001 R12: 0000000000000002 R13: ffffea0001703580 R14: 0000000000000000 R15: 0000000000000000 FS: 00007ff1bb6c16c0(0000) GS:ffff8880d6af5000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa6e962ff98 CR3: 000000002ae6b000 CR4: 0000000000352ef0 Call Trace: filemap_add_folio+0x19a/0x610 mm/filemap.c:966 ra_alloc_folio mm/readahead.c:453 [inline] page_cache_ra_order+0x637/0xed0 mm/readahead.c:512 do_sync_mmap_readahead mm/filemap.c:3400 [inline] filemap_fault+0x16ac/0x29d0 mm/filemap.c:3549 __do_fault+0x10d/0x490 mm/memory.c:5320 do_shared_fault mm/memory.c:5819 [inline] do_fault+0x302/0x1ad0 mm/memory.c:5893 do_pte_missing mm/memory.c:4401 [inline] handle_pte_fault mm/memory.c:6273 [inline] __handle_mm_fault+0x1919/0x2bb0 mm/memory.c:6411 handle_mm_fault+0x3fe/0xad0 mm/memory.c:6580 do_user_addr_fault+0x7a6/0x1370 arch/x86/mm/fault.c:1387 handle_page_fault arch/x86/mm/fault.c:1476 [inline] exc_page_fault+0x64/0xc0 arch/x86/mm/fault.c:1532 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:618 RIP: 0010:copy_user_generic arch/x86/include/asm/uaccess_64.h:126 [inline] RIP: 0010:raw_copy_to_user arch/x86/include/asm/uaccess_64.h:147 [inline] RIP: 0010:_inline_copy_to_user include/linux/uaccess.h:206 [inline] RIP: 0010:_copy_to_user+0xb6/0xd0 lib/usercopy.c:26 Code: 89 ee 48 89 ef e8 5a 0d 12 fd 4d 85 ff 75 a8 e8 40 13 12 fd 89 de 4c 89 e7 e8 d6 f4 7b fd 0f 01 cb 48 89 d9 48 89 ef 4c 89 e6 a4 0f 1f 00 0f 01 ca 48 89 cb eb 80 66 2e 0f 1f 84 00 00 00 00 RSP: 0018:ffffc900043afc60 EFLAGS: 00050246 RAX: 0000000000000001 RBX: 0000000000000fff RCX: 0000000000000fff RDX: 0000000000000000 RSI: ffff888034a34000 RDI: 00002000000012c0 RBP: 00002000000012c0 R08: 0000000000000000 R09: ffffed10069469ff R10: ffff888034a34ffe R11: 0000000000000000 R12: ffff888034a34000 R13: 00002000000022bf R14: 00007ffffffff000 R15: 0000000000000000 copy_to_user include/linux/uaccess.h:236 [inline] snd_pcm_oss_read1 sound/core/oss/pcm_oss.c:1529 [inline] snd_pcm_oss_read+0x276/0x760 sound/core/oss/pcm_oss.c:2771 vfs_read+0x1e4/0xcf0 fs/read_write.c:570 ksys_read+0x12a/0x250 fs/read_write.c:715 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7ff1ba78f7c9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ff1bb6c1038 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007ff1ba9e5fa0 RCX: 00007ff1ba78f7c9 RDX: 0000000000000fff RSI: 00002000000012c0 RDI: 0000000000000003 RBP: 00007ff1ba813f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ff1ba9e6038 R14: 00007ff1ba9e5fa0 R15: 00007ffd39cc85c8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__filemap_add_folio+0xf29/0x11b0 mm/filemap.c:858 Code: 97 c6 ff 48 c7 c6 80 ed 99 8b 4c 89 ef e8 0f 74 11 00 90 0f 0b e8 07 97 c6 ff 48 c7 c6 e0 ed 99 8b 4c 89 ef e8 f8 73 11 00 90 <0f> 0b e8 f0 96 c6 ff 90 0f 0b 90 e9 1c fc ff ff e8 e2 96 c6 ff 48 RSP: 0018:ffffc900043af4b0 EFLAGS: 00010246 RAX: 0000000000080000 RBX: 0000000000000000 RCX: ffffc9000c001000 RDX: 0000000000080000 RSI: ffffffff81f84fc8 RDI: ffff8880355e2944 RBP: 0000000000112cc0 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff9088b4d7 R11: 0000000000000001 R12: 0000000000000002 R13: ffffea0001703580 R14: 0000000000000000 R15: 0000000000000000 FS: 00007ff1bb6c16c0(0000) GS:ffff8880d6bf5000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa6e9517d60 CR3: 000000002ae6b000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 89 ee mov %ebp,%esi 2: 48 89 ef mov %rbp,%rdi 5: e8 5a 0d 12 fd call 0xfd120d64 a: 4d 85 ff test %r15,%r15 d: 75 a8 jne 0xffffffb7 f: e8 40 13 12 fd call 0xfd121354 14: 89 de mov %ebx,%esi 16: 4c 89 e7 mov %r12,%rdi 19: e8 d6 f4 7b fd call 0xfd7bf4f4 1e: 0f 01 cb stac 21: 48 89 d9 mov %rbx,%rcx 24: 48 89 ef mov %rbp,%rdi 27: 4c 89 e6 mov %r12,%rsi * 2a: f3 a4 rep movsb %ds:(%rsi),%es:(%rdi) <-- trapping instruction 2c: 0f 1f 00 nopl (%rax) 2f: 0f 01 ca clac 32: 48 89 cb mov %rcx,%rbx 35: eb 80 jmp 0xffffffb7 37: 66 data16 38: 2e cs 39: 0f .byte 0xf 3a: 1f (bad) 3b: 84 00 test %al,(%rax) 3d: 00 00 add %al,(%rax)