]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
Bluetooth: reorganize functions from hci_sock_sendmsg()
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Thu, 22 Jul 2021 07:42:08 +0000 (16:42 +0900)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 30 Aug 2021 14:16:49 +0000 (16:16 +0200)
commit0b59e272f9324dac8c12444cf5926be84abd53f9
tree8faa9e4b661802532cf3ec65438e6fb218888a14
parent1b9fbe813016b08e08b22ddba4ddbf9cb1b04b00
Bluetooth: reorganize functions from hci_sock_sendmsg()

Since userfaultfd mechanism allows sleeping with kernel lock held,
avoiding page fault with kernel lock held where possible will make
the module more robust. This patch just brings memcpy_from_msg() calls
to out of sock lock.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
net/bluetooth/hci_sock.c