ip_tables: iptables: counters copy to user failed while replacing table ------------[ cut here ]------------ kernel BUG at fs/btrfs/volumes.c:890! invalid opcode: 0000 [#1] PREEMPT SMP KASAN Modules linked in: CPU: 1 PID: 26617 Comm: syz-executor.1 Not tainted 4.14.184-syzkaller #0 ip_tables: iptables: counters copy to user failed while replacing table Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff88808b08a580 task.stack: ffff888052c98000 RIP: 0010:btrfs_prepare_close_one_device fs/btrfs/volumes.c:890 [inline] RIP: 0010:__btrfs_close_devices+0x793/0xa30 fs/btrfs/volumes.c:915 RSP: 0018:ffff888052c9f748 EFLAGS: 00010246 ip_tables: iptables: counters copy to user failed while replacing table RAX: 0000000000040000 RBX: ffff888092e5b6c0 RCX: ffffc90005f34000 RDX: 0000000000040000 RSI: ffffffff828d7c53 RDI: 0000000000000282 RBP: dffffc0000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffff88809fb8b5c0 R13: ffff888092e5b788 R14: fffffffffffffff4 R15: ffff888092e5b6c0 netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'. FS: 00007f2401f3e700(0000) GS:ffff8880aed00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000d00978 CR3: 00000000948bb000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: IPv6: ADDRCONF(NETDEV_UP): veth11: link is not ready input: syz1 as /devices/virtual/input/input599 btrfs_close_devices+0x24/0x140 fs/btrfs/volumes.c:948 btrfs_mount+0x1cfe/0x2838 fs/btrfs/super.c:1642 mount_fs+0x92/0x2a0 fs/super.c:1237 vfs_kern_mount.part.0+0x5b/0x3c0 fs/namespace.c:1046 vfs_kern_mount+0x3c/0x60 fs/namespace.c:1036 mount_subvol fs/btrfs/super.c:1392 [inline] btrfs_mount+0x2a0/0x2838 fs/btrfs/super.c:1563 mount_fs+0x92/0x2a0 fs/super.c:1237 vfs_kern_mount.part.0+0x5b/0x3c0 fs/namespace.c:1046 vfs_kern_mount fs/namespace.c:1036 [inline] do_new_mount fs/namespace.c:2549 [inline] do_mount+0x3c9/0x25e0 fs/namespace.c:2879 SYSC_mount fs/namespace.c:3095 [inline] SyS_mount+0xa8/0x120 fs/namespace.c:3072 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x45f57a RSP: 002b:00007f2401f3da68 EFLAGS: 00000206 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 000000000050a060 RCX: 000000000045f57a RDX: 00007f2401f3dae0 RSI: 00000000200001c0 RDI: 00007f2401f3db00 RBP: 000000000078bf00 R08: 00007f2401f3db40 R09: 00007f2401f3dae0 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000003 R13: 0000000000000c27 R14: 00000000004ce726 R15: 00007f2401f3e6d4 Code: c1 ea 03 0f b6 04 02 84 c0 74 08 3c 03 0f 8e 46 02 00 00 48 8b 04 24 c7 80 10 01 00 00 00 00 00 00 e9 2b f9 ff ff e8 8d 29 cd fe <0f> 0b e8 86 29 cd fe 0f 0b 48 89 cf e8 0c 63 f6 fe e9 f5 f8 ff RIP: btrfs_prepare_close_one_device fs/btrfs/volumes.c:890 [inline] RSP: ffff888052c9f748 RIP: __btrfs_close_devices+0x793/0xa30 fs/btrfs/volumes.c:915 RSP: ffff888052c9f748 netlink: 24 bytes leftover after parsing attributes in process `syz-executor.0'. ip_tables: iptables: counters copy to user failed while replacing table input: syz1 as /devices/virtual/input/input600 ---[ end trace 71a6916d1a12670f ]---