Re: [PATCH net] cgroup: Fix sock_cgroup_data on big-endian.

2020-07-10 Thread David Miller
From: Jakub Kicinski Date: Fri, 10 Jul 2020 13:54:24 -0700 > On Fri, 10 Jul 2020 13:47:47 -0700 (PDT) David Miller wrote: >> From: Jakub Kicinski >> Date: Thu, 9 Jul 2020 17:03:20 -0700 >> >> > On Thu, 09 Jul 2020 16:32:35 -0700 (PDT) David Miller wrote: >> >> From: Cong Wang >> >> >> >> In

Re: [PATCH net] cgroup: Fix sock_cgroup_data on big-endian.

2020-07-10 Thread Jakub Kicinski
On Fri, 10 Jul 2020 13:47:47 -0700 (PDT) David Miller wrote: > From: Jakub Kicinski > Date: Thu, 9 Jul 2020 17:03:20 -0700 > > > On Thu, 09 Jul 2020 16:32:35 -0700 (PDT) David Miller wrote: > >> From: Cong Wang > >> > >> In order for no_refcnt and is_data to be the lowest order two > >> bits

Re: [PATCH net] cgroup: Fix sock_cgroup_data on big-endian.

2020-07-10 Thread David Miller
From: Jakub Kicinski Date: Thu, 9 Jul 2020 17:03:20 -0700 > On Thu, 09 Jul 2020 16:32:35 -0700 (PDT) David Miller wrote: >> From: Cong Wang >> >> 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: ad0f75e5f

Re: [PATCH net] cgroup: Fix sock_cgroup_data on big-endian.

2020-07-09 Thread Jakub Kicinski
On Thu, 09 Jul 2020 16:32:35 -0700 (PDT) David Miller wrote: > From: Cong Wang > > 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

Re: [PATCH net] cgroup: Fix sock_cgroup_data on big-endian.

2020-07-09 Thread Cong Wang
On Thu, Jul 9, 2020 at 4:32 PM David Miller wrote: > > > From: Cong Wang > > 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: Gu

[PATCH net] cgroup: Fix sock_cgroup_data on big-endian.

2020-07-09 Thread David Miller
From: Cong Wang 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 Signed-off-by: David S. Miller --- include/linux/cg