cgroup: Fix sock_cgroup_data on big-endian.
authorCong Wang <xiyou.wangcong@gmail.com>
Thu, 9 Jul 2020 23:28:44 +0000 (16:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Jul 2020 23:28:44 +0000 (16:28 -0700)
commit14b032b8f8fce03a546dcf365454bec8c4a58d7d
tree1ec04893c8a8055b730cc597d368415e619ac0cc
parentce69e563b325f620863830c246a8698ccea52048
cgroup: Fix sock_cgroup_data on big-endian.

In order for no_refcnt and is_data to be the lowest order two
bits in the 'val' we have to pad out the bitfield of the u8.

Fixes: ad0f75e5f57c ("cgroup: fix cgroup_sk_alloc() for sk_clone_lock()")
Reported-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/cgroup-defs.h