[bluez/bluez] 1be171: shared/ad: Fix crash on match_manufacturer

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

 



  Branch: refs/heads/master
  Home:   https://github.com/bluez/bluez
  Commit: 1be17107d22b9c92bf7c43ff763e656b3a6f5ea2
      https://github.com/bluez/bluez/commit/1be17107d22b9c92bf7c43ff763e656b3a6f5ea2
  Author: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx>
  Date:   2025-04-25 (Fri, 25 Apr 2025)

  Changed paths:
    M src/shared/ad.c

  Log Message:
  -----------
  shared/ad: Fix crash on match_manufacturer

When matching manufacturer BT_EA_MAX_DATA_LEN in case of EA since that
can be bigger than regular advertisements otherwise it can cause the
following crash:

data #0 __libc_do_syscall () at ../sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:47
1 0xb6e05c58 in __pthread_kill_implementation (threadid=, signo=signo@entry=6,
no_tid=no_tid@entry=0) at pthread_kill.c:43
2 0xb6e05c8c in __pthread_kill_internal (signo=6, threadid=) at pthread_kill.c:78
3 0xb6dd63ce in __GI_raise (sig=sig@entry=6)
at /usr/src/debug/glibc/2.39+git/sysdeps/posix/raise.c:26
4 0xb6dc7f5c in __GI_abort () at abort.c:79
5 0xb6dfd608 in __libc_message_impl (fmt=0xb6ea1a50 "*** %s **: terminated\n")
at /usr/src/debug/glibc/2.39+git/sysdeps/posix/libc_fatal.c:134
6 0xb6e5a430 in __GI___fortify_fail (msg=) at fortify_fail.c:24
7 0xb6e59ffe in __GI___chk_fail () at chk_fail.c:28
8 0xb6e5a8a2 in __GI___memcpy_chk (dstpp=dstpp@entry=0xbefff7e6, srcpp=,
len=, dstlen=dstlen@entry=29) at memcpy_chk.c:27
9 0x004944f4 in memcpy (__len=, __src=, __dest=0xbefff7e6)
at /usr/include/bits/string_fortified.h:29
10 match_manufacturer (data=, user_data=)

Fixes: https://github.com/bluez/bluez/issues/1169


  Commit: 7763584f6d0186e77adcdc212b0a1c8a53e6ccc9
      https://github.com/bluez/bluez/commit/7763584f6d0186e77adcdc212b0a1c8a53e6ccc9
  Author: Pauli Virtanen <pav@xxxxxx>
  Date:   2025-04-28 (Mon, 28 Apr 2025)

  Changed paths:
    M tools/iso-tester.c
    M tools/l2cap-tester.c
    M tools/tester.h

  Log Message:
  -----------
  tools: add tests for RX timestamping

Add tests:

ISO Receive - RX Timestamping
L2CAP BR/EDR Client - RX Timestamping
L2CAP BR/EDR Client - RX Timestamping 32k
L2CAP LE Client - RX Timestamping
L2CAP LE Client - RX Timestamping 32k


  Commit: a112d434577182894598ae8e7d0d98c0fa4745c9
      https://github.com/bluez/bluez/commit/a112d434577182894598ae8e7d0d98c0fa4745c9
  Author: Pauli Virtanen <pav@xxxxxx>
  Date:   2025-04-28 (Mon, 28 Apr 2025)

  Changed paths:
    M emulator/bthost.c
    M emulator/bthost.h

  Log Message:
  -----------
  bthost: implement fragmenting to ACL MTU

Support fragmenting ACL packets to given ACL MTU.


  Commit: aeeb4fd64adfcf7ca7adaac8dadca43dab6f2939
      https://github.com/bluez/bluez/commit/aeeb4fd64adfcf7ca7adaac8dadca43dab6f2939
  Author: Pauli Virtanen <pav@xxxxxx>
  Date:   2025-04-28 (Mon, 28 Apr 2025)

  Changed paths:
    M emulator/btdev.c
    M emulator/btdev.h
    M emulator/hciemu.c

  Log Message:
  -----------
  hciemu: set bthost ACL MTU to match btdev

Set the bthost ACL MTU to avoid generating larger packets than the btdev
ACL MTU.

This tests RX timestamping on ACL fragmentation.


  Commit: 682e9252def95c2db242c85bda02c97fb8dfe512
      https://github.com/bluez/bluez/commit/682e9252def95c2db242c85bda02c97fb8dfe512
  Author: Pauli Virtanen <pav@xxxxxx>
  Date:   2025-04-28 (Mon, 28 Apr 2025)

  Changed paths:
    M emulator/bthost.c
    M emulator/bthost.h

  Log Message:
  -----------
  bthost: support sending SCO packets

Add function to send SCO packets via bthost.


  Commit: f1d16721593566849b5ac096cd08cf3c620847ca
      https://github.com/bluez/bluez/commit/f1d16721593566849b5ac096cd08cf3c620847ca
  Author: Pauli Virtanen <pav@xxxxxx>
  Date:   2025-04-28 (Mon, 28 Apr 2025)

  Changed paths:
    M tools/sco-tester.c

  Log Message:
  -----------
  sco-tester: add SCO receive and RX timestamping tests

Add tests:

SCO CVSD Recv - Success
SCO CVSD Recv - RX Timestamping


Compare: https://github.com/bluez/bluez/compare/c3b6f4e4b456...f1d167215935

To unsubscribe from these emails, change your notification settings at https://github.com/bluez/bluez/settings/notifications




[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