------------[ cut here ]------------ WARNING: CPU: 2 PID: 3887 at mm/util.c:596 kvmalloc_node+0x1a6/0x1b0 mm/util.c:596 Modules linked in: CPU: 2 PID: 3887 Comm: syz-executor.1 Not tainted 6.1.0-rc8-syzkaller-00018-g479174d402bc #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014 RIP: 0010:kvmalloc_node+0x1a6/0x1b0 mm/util.c:596 Code: a5 51 8e e8 bc 93 1a 00 eb 8e e8 85 b9 cd ff 41 81 e4 00 20 00 00 31 ff 44 89 e6 e8 24 b6 cd ff 45 85 e4 75 cf e8 6a b9 cd ff <0f> 0b e9 a2 fe ff ff 0f 1f 00 f3 0f 1e fa 55 48 89 fd 53 e8 52 b9 RSP: 0018:ffffc9000618f898 EFLAGS: 00010216 RAX: 0000000000000e2c RBX: 0000000000000400 RCX: ffffc90004b49000 RDX: 0000000000040000 RSI: ffffffff81b26496 RDI: 0000000000000005 RBP: 0000002000000020 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000 R13: 0000000000000000 R14: 00000000ffffffff R15: ffff88802612f000 FS: 0000000000000000(0000) GS:ffff88802c900000(0063) knlGS:00000000f7fd4b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00007ffe9bce0c58 CR3: 000000001e6f1000 CR4: 0000000000150ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: kvmalloc include/linux/slab.h:706 [inline] kvmalloc_array include/linux/slab.h:724 [inline] kvcalloc include/linux/slab.h:729 [inline] btrfs_ioctl_send+0xa5a/0x64e0 fs/btrfs/send.c:7937 _btrfs_ioctl_send+0x231/0x2e0 fs/btrfs/ioctl.c:5236 btrfs_ioctl+0x39c1/0x5c40 fs/btrfs/ioctl.c:5527 __do_compat_sys_ioctl+0x255/0x2b0 fs/ioctl.c:968 do_syscall_32_irqs_on arch/x86/entry/common.c:112 [inline] __do_fast_syscall_32+0x65/0xf0 arch/x86/entry/common.c:178 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203 entry_SYSENTER_compat_after_hwframe+0x70/0x82 RIP: 0023:0xf7ffa549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f7fd45cc EFLAGS: 00000296 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000040489426 RDX: 0000000020000040 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: 03 74 c0 01 add 0x1(%rax,%rax,8),%esi 4: 10 05 03 74 b8 01 adc %al,0x1b87403(%rip) # 0x1b8740d a: 10 06 adc %al,(%rsi) c: 03 74 b4 01 add 0x1(%rsp,%rsi,4),%esi 10: 10 07 adc %al,(%rdi) 12: 03 74 b0 01 add 0x1(%rax,%rsi,4),%esi 16: 10 08 adc %cl,(%rax) 18: 03 74 d8 01 add 0x1(%rax,%rbx,8),%esi 1c: 00 00 add %al,(%rax) 1e: 00 00 add %al,(%rax) 20: 00 51 52 add %dl,0x52(%rcx) 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 retq 2e: 90 nop 2f: 90 nop 30: 90 nop 31: 90 nop 32: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi 39: 8d b4 26 00 00 00 00 lea 0x0(%rsi,%riz,1),%esi