|
|
Subscribe / Log in / New account

Documenting counted-by relationships in kernel data structures

Documenting counted-by relationships in kernel data structures

Posted Jul 3, 2023 14:24 UTC (Mon) by emersion (subscriber, #125762)
Parent article: Documenting counted-by relationships in kernel data structures

I wonder if this could be used for "regular" arrays as well. e.g.

struct s {
int count;
struct some_item *items __attribute__((element_count("count")));
};


to post comments

Documenting counted-by relationships in kernel data structures

Posted Jul 3, 2023 17:31 UTC (Mon) by atnot (subscriber, #124910) [Link]

There is such a project being discussed by llvm: https://discourse.llvm.org/t/rfc-enforcing-bounds-safety-...


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds