All of lore.kernel.org
 help / color / mirror / Atom feed
* bluetoothd failure after a "malloc retun NULL" injection
@ 2013-11-13 14:05 Oprisenescu, CatalinX
  0 siblings, 0 replies; only message in thread
From: Oprisenescu, CatalinX @ 2013-11-13 14:05 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Trandafir, IonutX

Hello,

Following is a issue encountered and handled using bluez-5.10 on a 32bit Tizen 2.0 IVI based distribution.

If malloc returns a random NULL bluetoothd exits with core dumped.
In this case we do the following:
      -start bluetoothd,
      -at a random malloc call from any library (*lib*.so*), a random NULL will be returned by bluetoothd with a ld_preloaded library.

~# LD_PRELOAD=/root/lib_wrapper.so /usr/libexec/bluetooth/bluetoothd -E

Analizyng the dump, it points directly to a DBUS_ERROR_NO_MEMORY which, after handling, keeps bluetoothd from dumping and allowing it to return the fatal error occurred as exit status, thus failing gracefully.

A fix proposal, handling the use-case is attached.


Regards,
Calin Oprisenescu.

--------------------------------------------------------------
Intel Shannon Limited
Registered in Ireland
Registered Office: Collinstown Industrial Park, Leixlip, County Kildare
Registered Number: 308263
Business address: Dromore House, East Park, Shannon, Co. Clare

This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-11-13 14:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-13 14:05 bluetoothd failure after a "malloc retun NULL" injection Oprisenescu, CatalinX

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.