Bug 216661
Summary: | fail-nth: support multiple failures | ||
---|---|---|---|
Product: | Memory Management | Reporter: | Dmitry Vyukov (dvyukov) |
Component: | Sanitizers | Assignee: | MM/Sanitizers virtual assignee (mm_sanitizers) |
Status: | NEW --- | ||
Severity: | normal | CC: | kasan-dev |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | ALL | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
Dmitry Vyukov
2022-11-04 17:40:15 UTC
A reasonable compromise between generality and simplicity may be support a fixed number of ranges (say, 4) and convert all single failures into a range (N is converted to N-N). Namely task_struct will have 4 ranges encoded as pairs and, for example, "3, 7-11, 15" will be encoded as: [{3-3}, {7-11}, {15-15}, {0,0}] It does not require memory allocations and checking such data structure for a match is simple and fast. |