Welcome to the Linux Foundation Forum!

Linux kernel module strange behaviour

Options
voidbyte
voidbyte Posts: 1
edited June 8 in Kernel Development

I am making a linux kernel module that connects to a destination with port 1337 and receives messages from it. The issue occurs when i insert the module without running a server/netcat first (after i do sudo insmod lkm.ko it says: operation not permitted but it still manages to insert it). Pc starts freezing and lagging. When i run a server/netcat before inserting the module it just works fine. My first thought was that it's related to the thread, but then the connection functions came to my mind. You can see the functions that are being used in the text files.

Categories

Upcoming Training