On 08/07, Grazvydas Ignotas wrote: > > It's not that wine needs all this, it's the Windows games that use > debug registers to store random values to them for their copy > protection stuff.
Thanks. > My wine commits try to sidestep these > kernel restrictions/sanity checking. My point was, it seems that starting from 3.11 you can remove both extra PTRACE_POKEUSER's. Unless, of course, the initial state of dr7 doesn't match dr0 - dr6 set_thread_context() is going to update. Anyway I agree this interface is very confusing and inconvenient. And just in case, it is not that I think set_thread_context() should be changed, I am just wondering whether the kernel still has the bugs which should be fixed. > Personally I'd say the kernel should not limit what's written to debug > registers. Why can't I write insane values to registers in _my_ > hardware? It's not like it's going to break the hardware or anything. Even if this is safe (and btw I have no idea if this is always true or not ;), how a user can notice the error then? Oleg. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/