Skip to content

Conversation

@rm-medina
Copy link

The current commit fixes an invalid memory access
which manifests as a random segfault when executing
continuous tag read operations.

The corruption happens when releasing the memory allocated to a
record: in the time between the memory being g_free'd and the
subsequent memset operation, the memory could have been reused by
some other process. And since memory allocation depends on
system-wide factors, it makes this bug hard to track.

Tested using ACR122U reader and NTAG213
tags on Automotive Grade Linux (flounder,
guppy and master branches)

Signed-off-by: Raquel Medina raquel.medina@konsulko.com

 The current commit fixes an invalid memory  access
 which manifests as a random segfault  when executing
 continuous tag read operations.

 The corruption happens when releasing the  memory allocated to a
 record: in the time between  the memory being g_free'd and the
 subsequent memset  operation, the memory could have been reused by
 some  other process. And since memory allocation  depends on
 system-wide factors, it makes this bug hard to track.

 Tested using ACR122U reader and NTAG213
 tags on Automotive Grade Linux (flounder,
 guppy and master branches)

Signed-off-by: Raquel Medina <raquel.medina@konsulko.com>
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