Messages in this thread | | | Date | Fri, 25 Jan 2013 15:47:14 -0800 | From | Tejun Heo <> | Subject | Re: [PATCH 06/13] sg_io: whitelist a few more commands for multimedia devices |
| |
Hello, Paolo.
On Sat, Jan 26, 2013 at 12:32:36AM +0100, Paolo Bonzini wrote: > If I make a whitelist with all the commands that Linux sends, I'll have > many new commands in the whitelist and no old commands. The new > commands didn't exist when old drives were sold, so they are "dangerous" > in your opinion. At that point I might as well keep the whitelist > empty, no?
Let's not go to extremes. It's not about theoretic correctness. It's about how to appraoch a possibly messy practical problem. To me, it seems natural to be conservative on this and add what's being acitvely used, which as a bonus will also give us at least some chance of evaluating what we have and why later on if it ever needs to be changed.
I'm just not comfortable with adding a bunch of commands by simply scanning the specs. Let's at least have some backing data and justification for exposing new ones. I really don't think that's too much to ask. Start with minimal set. Grow it as needed. We can always grow but the other direction is much harder.
Thanks.
-- tejun
| |