All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] test: uncover NULL dereferences in logging
@ 2022-07-11  6:21 Heinrich Schuchardt
  2022-07-11  6:21 ` [PATCH 1/4] dm: avoid NULL dereference in add_item() Heinrich Schuchardt
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Heinrich Schuchardt @ 2022-07-11  6:21 UTC (permalink / raw)
  To: Simon Glass; +Cc: Bin Meng, u-boot, Heinrich Schuchardt

Setting CONFIG_LOG_MAX_LEVEL=9 in sandbox_defconfig exposed to NULL
dereferences and bugs in the log tests.

log_debug() statements are only executed for CONFIG_LOG_MAX_LEVEL > 6.
We should have a defconfig that exposes problems in these statements.

Heinrich Schuchardt (4):
  dm: avoid NULL dereference in add_item()
  test: fix log tests
  dm: avoid NULL dereference in lists_bind_fdt()
  configs: sandbox_defconfig: CONFIG_LOG_MAX_LEVEL=9

 configs/sandbox_defconfig |  2 ++
 drivers/core/acpi.c       |  4 ++--
 drivers/core/lists.c      |  7 ++++---
 test/log/log_test.c       | 11 +++++++----
 4 files changed, 15 insertions(+), 9 deletions(-)

-- 
2.36.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-07-26 19:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-11  6:21 [PATCH 0/4] test: uncover NULL dereferences in logging Heinrich Schuchardt
2022-07-11  6:21 ` [PATCH 1/4] dm: avoid NULL dereference in add_item() Heinrich Schuchardt
2022-07-11  6:21 ` [PATCH 2/4] test: fix log tests Heinrich Schuchardt
2022-07-12 10:58   ` Simon Glass
2022-07-26 19:52   ` Simon Glass
2022-07-11  6:21 ` [PATCH 3/4] dm: avoid NULL dereference in lists_bind_fdt() Heinrich Schuchardt
2022-07-12 10:58   ` Simon Glass
2022-07-26 19:52   ` Simon Glass
2022-07-11  6:21 ` [PATCH 4/4] configs: sandbox_defconfig: CONFIG_LOG_MAX_LEVEL=9 Heinrich Schuchardt
2022-07-12 10:58   ` Simon Glass
2022-07-26 19:52   ` Simon Glass

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.