Skip to content

Conversation

@krish2718
Copy link
Contributor

Fix a memory leak in regulatory domain handling.

@zephyrbot
Copy link

zephyrbot commented Oct 15, 2024

The following west manifest projects have been modified in this Pull Request:

Name Old Revision New Revision Diff
hal_nordic zephyrproject-rtos/hal_nordic@af91488 zephyrproject-rtos/hal_nordic@5f12100 (master) zephyrproject-rtos/[email protected]

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@zephyrbot zephyrbot added manifest manifest-hal_nordic DNM This PR should not be merged (Do Not Merge) labels Oct 15, 2024
jukkar
jukkar previously approved these changes Oct 16, 2024
rlubos
rlubos previously approved these changes Oct 16, 2024
sachinthegreen
sachinthegreen previously approved these changes Oct 16, 2024
rlubos
rlubos previously approved these changes Oct 16, 2024
sachinthegreen
sachinthegreen previously approved these changes Oct 17, 2024
@zephyrbot zephyrbot removed the DNM This PR should not be merged (Do Not Merge) label Oct 17, 2024
sachinthegreen
sachinthegreen previously approved these changes Oct 17, 2024
jukkar
jukkar previously approved these changes Oct 18, 2024
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 18, 2024
This log helps in identifing if the event is solicited or not.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 18, 2024
…cited reg event

This flag can be used to drop unsolicited regulatory event as it's not
supported.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 18, 2024
During Wi-Fi connection UMAC sends an unsolicited regulatory change
event but the driver code always assumes that this event is solicited
hence doesn't free the memory for the event.

Fix this by dropping the unsolicited event as it's not supported yet.

Fixes #79733.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 18, 2024
Fix couple of bugs in exit path:

- In case of calloc failure, return's without unlocking
- memory is freed outside lock, in case of a tiny window of race, this
  can cause a crash when this function is called from two threads.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 21, 2024
Opriv was removed but the doxygen doc string was left.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 21, 2024
This log helps in identifing if the event is solicited or not.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 21, 2024
During Wi-Fi connection UMAC sends an unsolicited regulatory change
event but the driver code always assumes that this event is solicited
hence doesn't free the memory for the event.

Fix this by dropping the unsolicited event as it's not supported yet.

Fixes #79733.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 21, 2024
Fix couple of bugs in exit path:

- In case of calloc failure, return's without unlocking
- memory is freed outside lock, in case of a tiny window of race, this
  can cause a crash when this function is called from two threads.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 21, 2024
Opriv was removed but the doxygen doc string was left.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 21, 2024
This log helps in identifing if the event is solicited or not.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 21, 2024
During Wi-Fi connection UMAC sends an unsolicited regulatory change
event but the driver code always assumes that this event is solicited
hence doesn't free the memory for the event.

Fix this by dropping the unsolicited event as it's not supported yet.

Fixes #79733.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 21, 2024
Fix couple of bugs in exit path:

- In case of calloc failure, return's without unlocking
- memory is freed outside lock, in case of a tiny window of race, this
  can cause a crash when this function is called from two threads.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 21, 2024
Opriv was removed but the doxygen doc string was left.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 21, 2024
This log helps in identifing if the event is solicited or not.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 21, 2024
During Wi-Fi connection UMAC sends an unsolicited regulatory change
event but the driver code always assumes that this event is solicited
hence doesn't free the memory for the event.

Fix this by dropping the unsolicited event as it's not supported yet.

Fixes #79733.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 21, 2024
Fix couple of bugs in exit path:

- In case of calloc failure, return's without unlocking
- memory is freed outside lock, in case of a tiny window of race, this
  can cause a crash when this function is called from two threads.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 21, 2024
Opriv was removed but the doxygen doc string was left.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
@MaureenHelm MaureenHelm merged commit 9a9f899 into zephyrproject-rtos:main Oct 21, 2024
27 checks passed
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 22, 2024
This log helps in identifing if the event is solicited or not.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 22, 2024
During Wi-Fi connection UMAC sends an unsolicited regulatory change
event but the driver code always assumes that this event is solicited
hence doesn't free the memory for the event.

Fix this by dropping the unsolicited event as it's not supported yet.

Fixes #79733.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 22, 2024
Fix couple of bugs in exit path:

- In case of calloc failure, return's without unlocking
- memory is freed outside lock, in case of a tiny window of race, this
  can cause a crash when this function is called from two threads.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 22, 2024
Opriv was removed but the doxygen doc string was left.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 22, 2024
This log helps in identifing if the event is solicited or not.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 22, 2024
During Wi-Fi connection UMAC sends an unsolicited regulatory change
event but the driver code always assumes that this event is solicited
hence doesn't free the memory for the event.

Fix this by dropping the unsolicited event as it's not supported yet.

Fixes #79733.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 22, 2024
Fix couple of bugs in exit path:

- In case of calloc failure, return's without unlocking
- memory is freed outside lock, in case of a tiny window of race, this
  can cause a crash when this function is called from two threads.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 22, 2024
Opriv was removed but the doxygen doc string was left.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 22, 2024
This log helps in identifing if the event is solicited or not.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 22, 2024
During Wi-Fi connection UMAC sends an unsolicited regulatory change
event but the driver code always assumes that this event is solicited
hence doesn't free the memory for the event.

Fix this by dropping the unsolicited event as it's not supported yet.

Fixes #79733.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 22, 2024
Fix couple of bugs in exit path:

- In case of calloc failure, return's without unlocking
- memory is freed outside lock, in case of a tiny window of race, this
  can cause a crash when this function is called from two threads.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 22, 2024
Opriv was removed but the doxygen doc string was left.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 22, 2024
This log helps in identifing if the event is solicited or not.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 22, 2024
During Wi-Fi connection UMAC sends an unsolicited regulatory change
event but the driver code always assumes that this event is solicited
hence doesn't free the memory for the event.

Fix this by dropping the unsolicited event as it's not supported yet.

Fixes #79733.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 22, 2024
Fix couple of bugs in exit path:

- In case of calloc failure, return's without unlocking
- memory is freed outside lock, in case of a tiny window of race, this
  can cause a crash when this function is called from two threads.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
krish2718 added a commit to krish2718/sdk-zephyr that referenced this pull request Oct 22, 2024
Opriv was removed but the doxygen doc string was left.

Upstream PR: zephyrproject-rtos/zephyr#79891

Signed-off-by: Chaitanya Tata <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants