]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
psample: Fix user API breakage
authorIdo Schimmel <idosch@nvidia.com>
Wed, 24 Mar 2021 19:43:32 +0000 (21:43 +0200)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 8 Apr 2021 20:42:28 +0000 (15:42 -0500)
commit5d76e368e384f7f098214a2387a68e42d1ab2d29
tree85c1d2ec1cb0fb0a349304f73233541689c739b2
parentd5f1ee114d155e1ca12f525d1d1f67c63af0c66a
psample: Fix user API breakage

BugLink: https://bugs.launchpad.net/bugs/1922601
commit e43accba9b071dcd106b5e7643b1b106a158cbb1 upstream.

Cited commit added a new attribute before the existing group reference
count attribute, thereby changing its value and breaking existing
applications on new kernels.

Before:

 # psample -l
 libpsample ERROR psample_group_foreach: failed to recv message: Operation not supported

After:

 # psample -l
 Group Num       Refcount        Group Seq
 1               1               0

Fix by restoring the value of the old attribute and remove the
misleading comments from the enumerator to avoid future bugs.

Cc: stable@vger.kernel.org
Fixes: d8bed686ab96 ("net: psample: Add tunnel support")
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reported-by: Adiel Bidani <adielb@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
include/uapi/linux/psample.h