zephyr/subsys/logging
Ben Wolsieffer 57ed0a7ae9 logging: multidomain_link: fix crash caused by drop notification
The remote domain may send unsolicited Z_LOG_MULTIDOMAIN_ID_DROPPED IPC
messages, which are not handled in log_multidomain_link_on_recv_cb().
With CONFIG_ASSERT=y, this will cause an assertion failure. With asserts
disabled, this message would be treated as a reply to any in progress
request and cause getter_msg_process() to return early. In turn, this
can cause various kinds of memory corruption when the real reply arrives
and the callback reads/writes stack variables that are no longer valid.

Fix this by explicitly ignoring Z_LOG_MULTIDOMAIN_ID_DROPPED, and also
don't treat unrecognized message types as replies.

Signed-off-by: Ben Wolsieffer <benwolsieffer@gmail.com>
2024-04-18 11:12:35 +02:00
..
backends logging: backends: multidomain: Fix compilation warning 2024-03-15 11:36:08 +00:00
mipi_syst logging: mipi_syst: Add CONFIG_LOG_MIPI_SYST_DISABLE_TIMESTAMP 2024-01-05 06:40:09 -05:00
CMakeLists.txt
Kconfig
Kconfig.filtering
Kconfig.formatting logging: Remove hda log backend 2024-01-17 09:52:48 +01:00
Kconfig.frontends logging: Imply strings stripping if dictionary frontend is used 2023-10-27 11:42:21 +02:00
Kconfig.links
Kconfig.misc logging: Add option to not generate dictionary database always 2024-03-06 10:38:37 +00:00
Kconfig.mode logging: log_frontend: Add optional API for common messages 2023-10-27 10:50:39 +02:00
Kconfig.processing logging: support using real time as timestamp 2024-03-06 15:58:43 +00:00
Kconfig.template.log_config
Kconfig.template.log_config_inherit
Kconfig.template.log_format_config logging: Use strings stripping for dictionary backends 2024-01-15 09:58:39 +01:00
log_cache.c
log_cache.h
log_cmds.c logging: log_cmds: Add support for frontend runtime filtering 2024-01-15 09:57:54 +01:00
log_core.c logging: consistently retrieve source ID from remote messages 2024-04-17 14:28:59 +02:00
log_frontend_dict_uart.c
log_link_ipc_service.c
log_mgmt.c logging: Add support for runtime filtering in frontend 2024-01-15 09:57:54 +01:00
log_minimal.c llext: Rework hello_world test case to be "simple" 2024-03-09 14:44:23 +00:00
log_msg.c logging: consistently retrieve source ID from remote messages 2024-04-17 14:28:59 +02:00
log_multidomain_link.c logging: multidomain_link: fix crash caused by drop notification 2024-04-18 11:12:35 +02:00
log_output_custom.c
log_output_dict.c LOG: DICT: Forward the User Context Void pointer to backend 2024-01-02 10:09:27 +01:00
log_output_syst.c
log_output.c logging: consistently retrieve source ID from remote messages 2024-04-17 14:28:59 +02:00