-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sys/linux: Add the descriptions for the mapper control device #4565
base: master
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting!
I've left some comments. With those fixes the descriptions would look like what they should ideally be.
Having just a list of int fields in a struct is of course much better than having no descriptions at all, but we can make fuzzing much more efficient by also considering what values each field should normally take. The fuzzer would anyway try to break these rules, but knowing what values are actually expected by the kernel helps it go much deeper into the code.
Could your tool be taught to do this kind of analysis automatically as well?
Thanks for your interest! I think such an analysis of the data structure could be included in our tools, as long as we provide several examples to let LLMs understand what kinds of analysis or labels should be added to the data structure. Thank you very much for your advice! We will extend our tool with such feature soon :) |
Please note that the CI tests have begun to fail. You can reproduce the problem by e.g. running
Since a I've sent #4580, if it turns out to be a viable approach, we could just use |
Add the descriptions for the CEC device, which is implemented in linux/drivers/md/dm-ioctl.c.
Structures are defined in include/uapi/linux/dm-ioctl.h.
These descriptions help to detect 2 new unique crashes for the mapper control device: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=bd504bcfec41a503b32054da5472904b404341a4
This description is generated by our project KernelGPT, and we plan to merge all our generated descriptions for the missing drivers and sockets.