From: Greg Kroah-Hartman Date: Fri, 29 Mar 2019 06:08:35 +0000 (+0100) Subject: 4.19-stable patches X-Git-Tag: v3.18.138~67 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3eb40e1921903c93ba1c93d0618cd8af2385baa1;p=thirdparty%2Fkernel%2Fstable-queue.git 4.19-stable patches added patches: tun-add-a-missing-rcu_read_unlock-in-error-path.patch --- diff --git a/queue-4.19/series b/queue-4.19/series index 050d98bb43d..ff6530a0eb8 100644 --- a/queue-4.19/series +++ b/queue-4.19/series @@ -30,3 +30,4 @@ ila-fix-rhashtable-walker-list-corruption.patch net-sched-fix-cleanup-null-pointer-exception-in-act_mirr.patch thunderx-enable-page-recycling-for-non-xdp-case.patch thunderx-eliminate-extra-calls-to-put_page-for-pages-held-for-recycling.patch +tun-add-a-missing-rcu_read_unlock-in-error-path.patch diff --git a/queue-4.19/tun-add-a-missing-rcu_read_unlock-in-error-path.patch b/queue-4.19/tun-add-a-missing-rcu_read_unlock-in-error-path.patch new file mode 100644 index 00000000000..d9c10d212e2 --- /dev/null +++ b/queue-4.19/tun-add-a-missing-rcu_read_unlock-in-error-path.patch @@ -0,0 +1,32 @@ +From 9180bb4f046064dfa4541488102703b402bb04e1 Mon Sep 17 00:00:00 2001 +From: Eric Dumazet +Date: Sat, 16 Mar 2019 13:09:53 -0700 +Subject: tun: add a missing rcu_read_unlock() in error path + +From: Eric Dumazet + +commit 9180bb4f046064dfa4541488102703b402bb04e1 upstream. + +In my latest patch I missed one rcu_read_unlock(), in case +device is down. + +Fixes: 4477138fa0ae ("tun: properly test for IFF_UP") +Signed-off-by: Eric Dumazet +Reported-by: syzbot +Signed-off-by: David S. Miller +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/net/tun.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/drivers/net/tun.c ++++ b/drivers/net/tun.c +@@ -1915,6 +1915,7 @@ drop: + rcu_read_lock(); + if (unlikely(!(tun->dev->flags & IFF_UP))) { + err = -EIO; ++ rcu_read_unlock(); + goto drop; + } +