]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
fuzz cleanup
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jul 2021 12:30:30 +0000 (14:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Jul 2021 12:30:30 +0000 (14:30 +0200)
queue-5.10/xdp-net-fix-use-after-free-in-bpf_xdp_link_release.patch

index 0b9015ea3d1b9e8cb5c57b5a9ec2879e63e72df9..225f07d36c968d85990607c1d6efee4ef9960f66 100644 (file)
@@ -107,7 +107,7 @@ Signed-off-by: Sasha Levin <sashal@kernel.org>
 
 --- a/net/core/dev.c
 +++ b/net/core/dev.c
-@@ -9399,14 +9399,17 @@ int bpf_xdp_link_attach(const union bpf_
+@@ -9351,14 +9351,17 @@ int bpf_xdp_link_attach(const union bpf_
        struct net_device *dev;
        int err, fd;
  
@@ -127,7 +127,7 @@ Signed-off-by: Sasha Levin <sashal@kernel.org>
        }
  
        bpf_link_init(&link->link, BPF_LINK_TYPE_XDP, &bpf_xdp_link_lops, prog);
-@@ -9416,14 +9419,14 @@ int bpf_xdp_link_attach(const union bpf_
+@@ -9368,14 +9371,14 @@ int bpf_xdp_link_attach(const union bpf_
        err = bpf_link_prime(&link->link, &link_primer);
        if (err) {
                kfree(link);
@@ -144,7 +144,7 @@ Signed-off-by: Sasha Levin <sashal@kernel.org>
                bpf_link_cleanup(&link_primer);
                goto out_put_dev;
        }
-@@ -9433,6 +9436,9 @@ int bpf_xdp_link_attach(const union bpf_
+@@ -9385,6 +9388,9 @@ int bpf_xdp_link_attach(const union bpf_
        dev_put(dev);
        return fd;