-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnote.txt
More file actions
9 lines (9 loc) · 1.29 KB
/
note.txt
File metadata and controls
9 lines (9 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
Chào các bạn,
Bạn nào thắc mắc điểm đồ án 2 mà thấp, thì có thể coi lại là khi xử lý bộ nhớ từ user space đưa xuống cho kernel sapce đã gọi các hàm để chuyển đổi chưa, có thể khi các bạn test chạy được, nhưng khi lập trình ở kernel, chúng ta không truy cập trực tiếp vùng nhớ của user space từ kernel space.
Tham khảo thêm: https://stackoverflow.com/questions/8265657/how-does-copy-from-user-from-the-linux-kernel-work-internally
Một ví dụ về lõi linux module đơn giản: https://blog.sourcerer.io/writing-a-simple-linux-kernel-module-d9dc3762c234
Một bài giới thiệu về viết lõi linux module: http://derekmolloy.ie/writing-a-linux-kernel-module-part-1-introduction/
Một bài khác về linux kernel module rất thích hợp cho người mới bắt đầu: http://www.tldp.org/LDP/lkmpg/2.6/html/
Một nguồn khác rất bổ ích, cung cấp một ví dụ về một character device và chương trình mẫu: https://linux-kernel-labs.github.io/master/labs/device_drivers.html
Hook system call: https://tnichols.org/2015/10/19/Hooking-the-Linux-System-Call-Table/
Old resource for hooking: http://books.gigatux.nl/mirror/networksecuritytools/0596007949/networkst-CHP-7-SECT-2.html