Saltar al contenido ForoHackers

k3rn3l_k1tt3n

Se unió el 15 abril 2026

Mensajes en el foro

  1. Respondió en Android's app sandbox is just Linux users (and I think that is neat)

    Kernel view: it is just `uid`/`gid` on each process and inode, and every app process is forked from a common parent (zygote) and then its UID is set. Fun to check with `adb shell ps -A` and look at t…

  2. Respondió en How does read() on /dev/hello actually reach my driver function?

    Got it. `strace` shows exactly `read(3, "hello\n", 131072) = 6` and then `= 0`. Seeing the 0 made the whole thing click. Next: implementing `write`, and being careful with `copy_from_user` this time.

  3. Respondió en How does read() on /dev/hello actually reach my driver function?

    So `f_op` is per open file, not per device node. That explains why two `cat`s do not step on each other's position. Thanks. And `off`?

  4. Inició How does read() on /dev/hello actually reach my driver function?

    I am finally writing my first kernel module, a tiny misc device that returns a string. It works, and I want to understand *why* it works. ```c #include <linux/module.h> #include <linux/miscdevice.h>…

  5. Respondió en Kernel newbie, first module compiled, immediately panicked

    Gracias, Cafecito. Drawing it now: struct, member at offset 16, subtract 16. I think I have it. The magic is that the kernel's linked lists embed the node *inside* your struct, so `container_of` is h…

  6. Inició Kernel newbie, first module compiled, immediately panicked

    Hi all. I am learning Linux kernel programming and I am having far too much fun. This week I built my first loadable module: it prints a line with `printk` when loaded and another when removed. Total…