[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <09FCB21A-2184-4CDB-8BF0-75C403DF39F9@holtmann.org>
Date: Fri, 18 Jan 2019 10:19:41 +0100
From: Marcel Holtmann <marcel@...tmann.org>
To: Myungho Jung <mhjungk@...il.com>
Cc: Johan Hedberg <johan.hedberg@...il.com>,
linux-bluetooth@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Bluetooth: hci_uart: Add a local variable to store the
result of h4_recv_buf()
Hi Myungho,
> In h4_recv(), if h4_recv_buf() returns error and h4_recv() is
> asynchronously called again before setting rx_skb to NULL, ERR_PTR will
> be dereferenced in h4_recv_buf(). Check return value in a local variable
> before writing to rx_skb.
>
> Reported-by: syzbot+017a32f149406df32703@...kaller.appspotmail.com
> Signed-off-by: Myungho Jung <mhjungk@...il.com>
> ---
> drivers/bluetooth/hci_h4.c | 11 +++++++----
> 1 file changed, 7 insertions(+), 4 deletions(-)
patch has been applied to bluetooth-next tree.
Can you actually fix all callers of h4_recv_buf since they all suffer from the same issue.
Regards
Marcel
Powered by blists - more mailing lists