https://bugs.winehq.org/show_bug.cgi?id=46472
--- Comment #41 from tjb troyb@us.ibm.com --- (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.