How to test device driver?
Hello, there are lots of drivers in linux.
My questions are:
- how can we test driver? is it just using that device for a long time as a user?
- what to do if there's a bug (like syzbot report), fixed it, but if we don't have that device?
_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Quoted 8 lines · Hyeonggon Yoo
Hello, there are lots of drivers in linux.
My questions are:
- how can we test driver? is it just using that device for a long time as a user?
testing is hard. Having the device is highly recommended. ISTM essential if adding a Tested-by: tag
Do you have a particular device in mind ?
Quoted 3 lines
- what to do if there's a bug (like syzbot report), fixed it, but if we don't have that device?
You could reply to that report email, with your patch included. 0day/lkp robot watches many email lists, and might test your patch automatically, for you on different architectures
at least Ive seen it happening on kbuild, kbuild-all lists
Quoted 4 lines
_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Quoted 4 lines · On Mon, May 17, 2021 at 12:48:38PM -0600, [email protected] wrote:
Quoted 3 lines · Hyeonggon Yoo
Hello, there are lots of drivers in linux.
Quoted 8 lines
Quoted 5 lines
My questions are:
- how can we test driver? is it just using that device for a long time as a user?
testing is hard. Having the device is highly recommended. ISTM essential if adding a Tested-by: tag
Do you have a particular device in mind ?
I recently was tracking syzbot report that is occured in sound driver. I don't have the device, but was curious about what the test method is.
Quoted 5 lines
You could reply to that report email, with your patch included. 0day/lkp robot watches many email lists, and might test your patch automatically, for you on different architectures
at least Ive seen it happening on kbuild, kbuild-all lists
well, build tests are useful but it is not enough, we should run the code on actual device. is it possible to make the bot test the device (which I don't have) even if there is no syzbot reproducer?
I think I need to learn about bots more..
Thanks,
Hyeongogn Yoo
_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Quoted 11 lines · Hyeonggon Yoo
Quoted 9 lines · On Mon, May 17, 2021 at 12:48:38PM -0600, [email protected] wrote:
Quoted 8 lines · Hyeonggon Yoo
Hello, there are lots of drivers in linux.
My questions are:
- how can we test driver? is it just using that device for a long time as a user?
Quoted 7 lines
Quoted 3 lines
testing is hard. Having the device is highly recommended. ISTM essential if adding a Tested-by: tag
Do you have a particular device in mind ?I recently was tracking syzbot report that is occured in sound driver. I don't have the device, but was curious about what the test method is.
well, it surely depends on the bug - and whether its reproducible.
if you could defend the patch as "obviously correct" you could reasonably send it without extensive testing, case by case Id guess.
Quoted 11 lines
Quoted 6 lines
You could reply to that report email, with your patch included. 0day/lkp robot watches many email lists, and might test your patch automatically, for you on different architectures
at least Ive seen it happening on kbuild, kbuild-all lists
well, build tests are useful but it is not enough, we should run the code on actual device. is it possible to make the bot test the device (which I don't have) even if there is no syzbot reproducer?
its possible / practical to disqualify patches robotically, but to bless them takes a priest.
Robots win by prequalifying submissions.
Quoted 2 lines
I think I need to learn about bots more..
Now think about how its a real-life turing test.
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]
_______________________________________________
kbuild-all mailing list -- [email protected] To unsubscribe send an email to [email protected]
theres also a wiki, which helped me make sense of things a bit better than the torrent of reports
Quoted 3 lines
Thanks,
Hyeongogn Yoo
_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Quoted 3 lines · Hyeonggon Yoo
I recently was tracking syzbot report that is occured in sound driver. I don't have the device, but was curious about what the test method is.
Depends what the bug was.
Quoted 3 lines
well, build tests are useful but it is not enough, we should run the code on actual device. is it possible to make the bot test the device (which I don't have) even if there is no syzbot reproducer?
Bugs that are obvious logic errors (use after free, locking issues, failure to build because a previous commit didn't cover all cases, and so on) can often be either tested or proven correct without the actual device being available. I've lost count how many times I've reported that some device driver or other simply doesn't even *compile* because an API was changed but incomplete - stuff that a 'make allmodconfig' will find.
_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Quoted 3 lines · Hyeonggon Yoo
...
- what to do if there's a bug (like syzbot report), fixed it, but if we don't have that device?
You could also ping the mailing list and ask if someone has the hardware available for testing.
I make most of my machines available over SSH and I am happy to lend them to free software developers.
I find the problem with testing is the developer. Some package will have a bug on a particular platform. I offer them access to the machine to reproduce it, but they don't take the offer. I find GNU developers are notorious for it.
Jeff
_______________________________________________
Kernelnewbies mailing list
[email protected]
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies