Hi! > > Looking ahead into the future, I was also thinking that if this becomes > > robust, we could also start an integration specification, that could > > describe how different system calls interact with each other. Like > > open() to read(), write() and close(). > > > > But this is just an idea that popped in my head while reading this > > thread. We want to start small first, but still could keep this in the > > back of our minds for future enhancements. > > > FWIW syzkaller does something along these lines. > It has notion of 'resources' and of input/output arguments. > Then it can figure out that e.g. open creates fd's, so it should be called > before any reads/writes (provided that we want to pass in valid fd's). > It does not have notion of "destructors" for resources (e.g. close > destroys the passed in resource). But it should be easy to describe. Logical extension would be to teach it that creat(), for instance, returns file descriptor and creates a file as a side effect. That file then could be used for a stat() or unlink() concurently, etc. But we should also consider that not all file descriptors or files are equal, so we may end up with some classes of files and file descriptors some of them suitable for different subsets of operations. I think that defining classes of objects and defining how syscalls transform their state may yield something usable. But that would require some serious thinking and a few trial and error implementations. -- Cyril Hrubis chrubis@xxxxxxx -- To unsubscribe from this list: send the line "unsubscribe linux-api" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html