Re: [Cocci] Matching __initconst data in Linux

2017-02-10 Thread Thomas Surrel
> Currently, the only attribute matching that is possible is on function > definitions. I may have a partial implementationof what you are > asking for ona machine that I don't have access to right at the moment. I > will look into it tomorrow. Ok, thanks for having a look, it would be nice to

[Cocci] Replacing combination of kcalloc() and copy_from_user() by memdup_user() with SmPL?

2017-02-10 Thread SF Markus Elfring
Hello, I came along another function implementation where I got the impression that the function “memdup_user” could also be used there in a way which is similar to an existing source code transformation approach by a small script for the semantic patch language. SmPL script: