Patch "Bluetooth: Fix l2cap_sock_setsockopt() with optname BT_RCVMTU" has been added to the 4.7-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
Bluetooth: Fix l2cap_sock_setsockopt() with optname BT_RCVMTU
to the 4.7-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
bluetooth-fix-l2cap_sock_setsockopt-with-optname-bt_rcvmtu.patch
and it can be found in the queue-4.7 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
23bc6ab0a0912146fd674a0becc758c3162baabcMon Sep 17 00:00:00 2001
From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?=
<[email protected]>
Date: Thu, 14 Jul 2016 10:50:23 +0200
Subject: Bluetooth: Fix l2cap_sock_setsockopt() with optname BT_RCVMTU
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
From: Amadeusz Sławiński <[email protected]>
commit 23bc6ab0a0912146fd674a0becc758c3162baabc upstream.
When we retrieve imtu value from userspace we should use 16 bit pointer cast instead of 32 as it's defined that way in headers. Fixes setsockopt calls on big-endian platforms.
--- net/bluetooth/l2cap_sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/bluetooth/l2cap_sock.c +1 -1
@@ -927,7 +927,7 @@ static int l2cap_sock_setsockopt(structbreak ; } -if (get_user (opt, (u32 __user *) optval)) { +if (get_user (opt, (u16 __user *) optval)) { err = -EFAULT ;break ; }
Patches currently in stable-queue which might be from [email protected] are
queue-4.7/bluetooth-fix-l2cap_sock_setsockopt-with-optname-bt_rcvmtu.patch