]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: virtio_bt: Use skb_put to set length
authorSoenke Huster <soenke.huster@eknoes.de>
Wed, 12 Oct 2022 07:45:06 +0000 (09:45 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 2 Nov 2022 21:15:42 +0000 (14:15 -0700)
commit23ccd2086b4668a62a55641ebbdf528f61a9ea83
tree4c7f8948f9428e5bdc63acfaf5b3d0acf5b232e9
parent95fd21077cc7c1c887369d795491513840557910
Bluetooth: virtio_bt: Use skb_put to set length

By using skb_put we ensure that skb->tail is set
correctly. Currently, skb->tail is always zero, which
leads to errors, such as the following page fault in
rfcomm_recv_frame:

    BUG: unable to handle page fault for address: ffffed1021de29ff
    #PF: supervisor read access in kernel mode
    #PF: error_code(0x0000) - not-present page
    RIP: 0010:rfcomm_run+0x831/0x4040 (net/bluetooth/rfcomm/core.c:1751)

Fixes: 8df5dfb6a811 ("Bluetooth: Add support for virtio transport driver")
Signed-off-by: Soenke Huster <soenke.huster@eknoes.de>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/virtio_bt.c