Skip to content

Comments

refactor + cleanup#1

Open
pkarasev3 wants to merge 4 commits intoyboumenir:yasser_5.35from
pkarasev3:pk_fork_5.35
Open

refactor + cleanup#1
pkarasev3 wants to merge 4 commits intoyboumenir:yasser_5.35from
pkarasev3:pk_fork_5.35

Conversation

@pkarasev3
Copy link

No description provided.

yboumenir pushed a commit that referenced this pull request Mar 11, 2016
valgrind seems to treat every bind to PF_BLUETOOTH as an RFCOMM socket
causing the following false positives:

Syscall param socketcall.bind(my_addr.rc_bdaddr) points to uninitialised byte(s)
   at 0x52728A7: bind (in /usr/lib64/libc-2.21.so)
   by 0x4045B1: logging_open (log.c:76)
   by 0x4045B1: __btd_log_init (log.c:298)
   by 0x402823: main (test-avctp.c:278)
 Address 0xffefffcb6 is on thread 1's stack
 in frame #1, created by __btd_log_init (log.c:290)
 Uninitialised value was created by a stack allocation
   at 0x404490: __btd_log_init (log.c:290)

Syscall param socketcall.bind(my_addr.rc_channel) points to uninitialised byte(s)
   at 0x52728A7: bind (in /usr/lib64/libc-2.21.so)
   by 0x4045B1: logging_open (log.c:76)
   by 0x4045B1: __btd_log_init (log.c:298)
   by 0x402823: main (test-avctp.c:278)
 Address 0xffefffcb8 is on thread 1's stack
 in frame #1, created by __btd_log_init (log.c:290)
 Uninitialised value was created by a stack allocation
   at 0x404490: __btd_log_init (log.c:290)
yboumenir pushed a commit that referenced this pull request Mar 11, 2016
Without --suppressions=./tools/valgrind.supp in valgrind cmd,
bluetoothd throws following error:

==1237== Syscall param socketcall.bind(my_addr.rc_bdaddr) points to uninitialised byte(s)
==1237==    at 0x588B227: bind (syscall-template.S:81)
==1237==    by 0x451545: logging_open (log.c:76)
==1237==    by 0x451545: __btd_log_init (log.c:314)
==1237==    by 0x40B035: main (main.c:610)
==1237==  Address 0xfff0003b6 is on thread 1's stack
==1237==  in frame #1, created by __btd_log_init (log.c:306)
==1237==  Uninitialised value was created by a stack allocation
==1237==    at 0x451490: __btd_log_init (log.c:306)
==1237==
==1237== Syscall param socketcall.bind(my_addr.rc_channel) points to uninitialised byte(s)
==1237==    at 0x588B227: bind (syscall-template.S:81)
==1237==    by 0x451545: logging_open (log.c:76)
==1237==    by 0x451545: __btd_log_init (log.c:314)
==1237==    by 0x40B035: main (main.c:610)
==1237==  Address 0xfff0003b8 is on thread 1's stack
==1237==  in frame #1, created by __btd_log_init (log.c:306)
==1237==  Uninitialised value was created by a stack allocation
==1237==    at 0x451490: __btd_log_init (log.c:306)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant