drgn/tests
Omar Sandoval 9ad29fd864 drgn.helpers.common.memory: fix identify_address vmap identification with CONFIG_VMAP_STACK=n
In the uncached case, the task variable is supposed to be the task that
matched the vm area. But, if we detect that CONFIG_VMAP_STACK is
disabled, we break without clearing the task variable. Fix that, and
also make sure to test both the cached and uncached cases.

Closes #414.

Fixes: 69bd07ddb2 ("drgn.helpers.common.memory: add optional cache to identify_address()")
Reported-by: Sourabh Jain <sourabhjain@linux.ibm.com>
Signed-off-by: Omar Sandoval <osandov@osandov.com>
2024-07-24 17:06:18 -07:00
..
helpers tests: test member_at_offset() on padding in nested structs/array elements 2024-04-04 16:20:58 -07:00
linux_kernel drgn.helpers.common.memory: fix identify_address vmap identification with CONFIG_VMAP_STACK=n 2024-07-24 17:06:18 -07:00
resources tests: add infrastructure for test resources 2024-03-22 16:12:05 -07:00
__init__.py Allow naming and configuring order of object finders 2024-06-05 13:40:26 -07:00
assembler.py Relicense drgn from GPLv3+ to LGPLv2.1+ 2022-11-01 17:05:16 -07:00
dwarf.py Regenerate DWARF constants 2023-09-28 09:29:37 -07:00
dwarfwriter.py libdrgn: dwarf_info: support DWO split DWARF 2023-07-19 10:10:08 -07:00
elf.py tests: make tests.elf.SHF an IntFlag 2023-10-11 14:36:03 -07:00
elfwriter.py tests: test compressed debug sections 2023-06-20 13:45:04 -07:00
libdrgn.py Translate path_iterator tests to C unit tests 2024-04-26 14:53:53 -07:00
test_docs.py Relicense drgn from GPLv3+ to LGPLv2.1+ 2022-11-01 17:05:16 -07:00
test_dwarf.py libdrgn: don't require struct/union/class/enum keyword for C++ type lookups 2023-08-21 15:18:26 -07:00
test_filename_matches.py Translate path_iterator tests to C unit tests 2024-04-26 14:53:53 -07:00
test_language_c.py Translate C lexer tests to C unit tests 2024-04-26 14:53:53 -07:00
test_logging.py libdrgn: python: log to the standard logging module 2023-07-18 12:47:34 -07:00
test_object.py libdrgn: allow reinterpreting primitive scalar values 2024-01-12 15:50:23 -08:00
test_platform.py Relicense drgn from GPLv3+ to LGPLv2.1+ 2022-11-01 17:05:16 -07:00
test_program.py Allow naming and configuring order of object finders 2024-06-05 13:40:26 -07:00
test_python.py Relicense drgn from GPLv3+ to LGPLv2.1+ 2022-11-01 17:05:16 -07:00
test_serialize.py Relicense drgn from GPLv3+ to LGPLv2.1+ 2022-11-01 17:05:16 -07:00
test_symbol.py Allow naming and configuring order of symbol finders 2024-06-05 13:40:26 -07:00
test_thread.py tests: add infrastructure for test resources 2024-03-22 16:12:05 -07:00
test_type_kind_set.py python: add TypeKindSet 2024-06-05 13:40:26 -07:00
test_type.py Relicense drgn from GPLv3+ to LGPLv2.1+ 2022-11-01 17:05:16 -07:00
test_util.py Relicense drgn from GPLv3+ to LGPLv2.1+ 2022-11-01 17:05:16 -07:00