https://bugs.winehq.org/show_bug.cgi?id=46472
--- Comment #42 from tjb troyb@us.ibm.com --- (In reply to tjb from comment #41)
(In reply to Anthony Jagers from comment #40)
I'm looking for a good 4.18 kernel tree. Greg K-H EOL'd his branch. I tried Ubuntu's but they have modified the build system and it needs system utilities which I don't have.
I bisected using the last 4.18 version on kernel.org, i.e. https://mirrors.edge.kernel.org/pub/linux/kernel/v4.x/linux-4.18.19.tar.xz
It is also possible to just modify kernel/events/hw_breakpoint.c with the code I posted in this thread and configure it for new or old breakpoint behavior with the conditional compile, it will work the same way as unpatched 4.18 regarding the ptrace behavior. I have been running reverted linux 4.19 for many weeks with no issues found.
Actually take that back.. I bisected from a git clone of Linus' kernel tree on github which didn't even have the 4.18.19 version... Linus' tree doesn't seem to incorporate the patch updates after a version release. The bisect was done between release 4.18 stable and release 4.19 stable. However I don't think there was any code change from that version to 4.18.19 regarding the hw_breakpoints.c code.