]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
ipv4: convert dst_metrics.refcnt from atomic_t to refcount_t
authorEric Dumazet <edumazet@google.com>
Mon, 7 May 2018 21:23:00 +0000 (23:23 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 23 May 2018 07:08:32 +0000 (09:08 +0200)
commit2870173854e09ae0da1195c0d1b360e601db5dec
treedba2d35dda8a68e4bd41ad50449e516874719e65
parente5e837568677ca4a705fda1363470965beb238d3
ipv4: convert dst_metrics.refcnt from atomic_t to refcount_t

BugLink: http://bugs.launchpad.net/bugs/1746474
refcount_t type and corresponding API should be
used instead of atomic_t when the variable is used as
a reference counter. This allows to avoid accidental
refcounter overflows that might lead to use-after-free
situations.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit 9620fef27ed2cdb37bf6fd028f32bea2ef5119a8)
Signed-off-by: Joseph Salisbury <joseph.salisbury@canonical.com>
Acked-by: Khalid Elmously <khalid.elmously@canonical.com>
Acked-by: AceLan Kao <acelan.kao@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
include/net/dst.h
net/core/dst.c
net/ipv4/fib_semantics.c
net/ipv4/route.c