lkml.org 
[lkml]   [2021]   [Sep]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH] Bluetooth: hci: fix GPF in h5_recv
    From
    Date
    Hi Pavel,

    > Syzbot hit general protection fault in h5_recv(). The problem was in
    > missing NULL check.
    >
    > hu->serdev can be NULL and we cannot blindly pass &serdev->dev
    > somewhere, since it can cause GPF.
    >
    > Fixes: d9dd833cf6d2 ("Bluetooth: hci_h5: Add runtime suspend")
    > Reported-and-tested-by: syzbot+7d41312fe3f123a6f605@syzkaller.appspotmail.com
    > Signed-off-by: Pavel Skripkin <paskripkin@gmail.com>
    > ---
    > drivers/bluetooth/hci_h5.c | 8 +++++---
    > 1 file changed, 5 insertions(+), 3 deletions(-)

    patch has been applied to bluetooth-next tree.

    Regards

    Marcel

    \
     
     \ /
      Last update: 2021-09-10 09:39    [W:3.279 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site