L2CAP receive buffer overflow

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

 



Hello,

I am trying to send PC as wireless speaker with support for LDAC audio
codec. I used bluealsa with libldacdec fork (this one:
github.com/anonymix007/libldacdec) and it actually produced some sound
(but not for a long time), and it shows "Dropping L2CAP data: receive
buffer overflow" error in logs. Just as fork author, I modified kernel
(see issue: github.com/Arkq/bluez-alsa/issues/482) to check if it will
work and it indeed worked.


This is how it looks like now:


        if (chan->imtu < skb->len) {

            BT_ERR("Dropping L2CAP data: receive buffer overflow -
chan->imtu: %d, skb->len: %d", chan->imtu, skb->len);

            //goto drop;

        }

And the error it prints:

Dropping L2CAP data: receive buffer overflow - chan->imtu: 672, skb->len: 673


I'm on LMDE 4 with kernel 5.10 (now modified 5.10.46 version), Android
device I am using is OnePlus 7 Pro (Android 11, latest OS update)


I can suggest increasing buffer size a bit to fix this issue.



[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux