Closed hanaa12G closed 8 months ago
We certainly shouldn't panic the kernel, no matter what userspace does. So that's already a kernel bug. As far as whether this is supposed to "work", I would recommend testing the program on some other unixes (Linux, macOS, etc) and seeing what kind of errors are returned from the socket calls.
I'm not sure whether or not my code is correct.
Stack trace:
Test code: