btrfs send BUG or NULL pointer derefence
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Triaged
|
Medium
|
Unassigned | ||
linux (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Xenial |
Won't Fix
|
Low
|
Unassigned |
Bug Description
When running xfstests btrfs/187, btrfs send will cause a NULL pointer dereference or a BUG.
[ 308.924126] BTRFS error (device xvdb2): did not find backref in send_root. inode=44681, offset=0, disk_byte=
[ 310.054883] BTRFS info (device xvdb2): found 15529 extents
[ 310.099436] BTRFS info (device xvdb2): relocating block group 4194304 flags 4
[ 310.369359] BTRFS info (device xvdb2): found 473 extents
[ 310.393830] BTRFS info (device xvdb2): relocating block group 0 flags 2
[ 310.420026] BTRFS info (device xvdb2): found 1 extents
[ 311.561421] BTRFS info (device xvdb2): relocating block group 7000293376 flags 2
[ 311.592206] BTRFS info (device xvdb2): relocating block group 6731857920 flags 4
[ 312.268390] BTRFS error (device xvdb2): parent transid verify failed on 6483984384 wanted 25 found 54
[ 312.277947] BUG: unable to handle kernel NULL pointer dereference at (null)
[ 312.285471] IP: [<ffffffffc015a
[ 312.285471] PGD 80000000c3509067 PUD c350a067 PMD 0
[ 312.285471] Oops: 0000 [#1] SMP
[ 312.285471] Modules linked in: lkp_Ubuntu_
[ 312.285471] CPU: 0 PID: 1464 Comm: btrfs Tainted: G OE K 4.4.0-1128-aws #142-Ubuntu
[ 312.285471] Hardware name: Xen HVM domU, BIOS 4.2.amazon 08/24/2006
[ 312.285471] task: ffff8800e8f57000 ti: ffff8800c3518000 task.ti: ffff8800c3518000
[ 312.285471] RIP: 0010:[<
[ 312.285471] RSP: 0018:ffff8800c3
[ 312.285471] RAX: 0000000000000000 RBX: 0000000000000011 RCX: 0000000000000011
[ 312.285471] RDX: 0000000000000065 RSI: ffff8800c351bb97 RDI: 0000000000000000
[ 312.285471] RBP: ffff8800c351bb68 R08: 0000000181400000 R09: 0000000191400000
[ 312.421177] R10: ffffea0002a021c0 R11: 0000000000000000 R12: ffff8800c351bb97
[ 312.421177] R13: ffff8800c351bc45 R14: 0000000000000000 R15: ffff8800c351bc3c
[ 312.421177] FS: 00007fd136bdd8c
[ 312.421177] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 312.421177] CR2: 0000000000000000 CR3: 00000000c34dc000 CR4: 0000000000160670
[ 312.421177] Stack:
[ 312.421177] 0000000000000674 ffff8800b62d3d80 0000000000000000 ffff8800c351bc45
[ 312.421177] 0000000000000002 ffff8800c351bc3c ffff8800c351bb78 ffffffffc014fba2
[ 312.421177] ffff8800c351bbd8 ffffffffc01088df ffff8800c351bc45 0eff8800c1d2d000
[ 312.421177] Call Trace:
[ 312.421177] [<ffffffffc014f
[ 312.421177] [<ffffffffc0108
[ 312.421177] [<ffffffffc0112
[ 312.492582] BTRFS info (device xvdb2): found 2362 extents
[ 312.421177] [<ffffffffc01a7
[ 312.421177] [<ffffffffc01a8
[ 312.421177] [<ffffffff811f5
[ 312.421177] [<ffffffff810ba
[ 312.421177] [<ffffffffc016f
[ 312.421177] [<ffffffff810ba
[ 312.530672] BTRFS info (device xvdb2): relocating block group 6463422464 flags 4
[ 312.421177] [<ffffffff810ba
[ 312.421177] [<ffffffff8122c
[ 312.421177] [<ffffffff81083
[ 312.421177] [<ffffffff8122c
[ 312.421177] [<ffffffff81849
[ 312.421177] Code: 40 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 55 41 54 49 89 fe 53 49 89 f4 48 89 cb 48 83 ec 08 <48> 8b 3f 49 8b 4e 08 48 89 fe 81 e6 ff 0f 00 00 4c 8d 2c 16 4d
[ 312.421177] RIP [<ffffffffc015a
[ 312.421177] RSP <ffff8800c351bb38>
[ 312.421177] CR2: 0000000000000000
[ 312.623966] ---[ end trace 6b9120b9ed5a31b6 ]---
btrfs send ioctl requires CAP_SYS_ADMIN on the initial user namespace.