Re: [v5.4.y] Bluetooth: L2CAP: Fix handling LE modes by L2CAP_OPTIONS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, May 19, 2021 at 10:55:02AM -0700, Zubin Mithra wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
> 
> L2CAP_OPTIONS shall only be used with BR/EDR modes.
> 
> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
> Signed-off-by: Marcel Holtmann <marcel@xxxxxxxxxxxx>
> (cherry picked from commit b86b0b150fed840c376145383ef5105116c81b0c)
> Signed-off-by: Zubin Mithra <zsm@xxxxxxxxxxxx>
> ---
> * Syzkaller triggered a GPF with the following stacktrace:
>  l2cap_chan_send+0xa6e/0x1c30 net/bluetooth/l2cap_core.c:2532
>  l2cap_sock_sendmsg+0x1da/0x1fd net/bluetooth/l2cap_sock.c:985
>  sock_sendmsg_nosec+0x88/0xb4 net/socket.c:638
>  sock_sendmsg+0x5e/0x6f net/socket.c:658
>  ____sys_sendmsg+0x45c/0x5a5 net/socket.c:2298
>  ___sys_sendmsg+0x13e/0x19f net/socket.c:2352
>  __sys_sendmmsg+0x298/0x38c net/socket.c:2455
>  __do_sys_sendmmsg net/socket.c:2484 [inline]
>  __se_sys_sendmmsg net/socket.c:2481 [inline]
>  __x64_sys_sendmmsg+0xad/0xb6 net/socket.c:2481
>  do_syscall_64+0x10b/0x144 arch/x86/entry/common.c:299
>  entry_SYSCALL_64_after_hwframe+0x49/0xbe
> 
> * This commit is present in 5.10.y and newer. 4.19.y
> and older do not need this fix.

Now queued up, thanks.

greg k-h



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux