]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "btrfs: use proper endianness accessors for super_copy"
authorDavid Sterba <dsterba@suse.com>
Fri, 16 Mar 2018 13:31:43 +0000 (14:31 +0100)
committerDavid Sterba <dsterba@suse.com>
Fri, 16 Mar 2018 13:49:44 +0000 (14:49 +0100)
commite2a9e52c3980249e37afbaf0c263281d4316d15c
treeb01d16292a8fc5581b7660f884f486d8ab26fabb
parent56e7d09b1e8eab586cdc8b3a0ea83d29e94a97be
Revert "btrfs: use proper endianness accessors for super_copy"

This reverts commit e36416dc98ab33f32b9b0c1e119c29b2f4723439.

The offending patch was merged in 4.16-rc4 and was promptly applied to
stable kernels 4.14.25 and 4.15.8.

The patch causes a corruption in several superblock items on big-endian
machines because of messed up endianity conversions. The damage is
manually repairable. A filesystem cannot be mounted again after it has
been unmounted once.

We do a full revert and not a fixup so stable can pick that patch ASAP.

Fixes: e36416dc98ab ("btrfs: use proper endianness accessors for super_copy")
Link: https://lkml.kernel.org/r/1521139304@msgid.manchmal.in-ulm.de
CC: stable@vger.kernel.org # 4.14+
Reported-by: Christoph Biedl <linux-kernel.bfrz@manchmal.in-ulm.de>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/sysfs.c
fs/btrfs/transaction.c