Does a Forkbomb cause a kernel panic?
A forkbomb does not necessarily causes a kernel panic. OTOH, one thing that maydo that is to write (as root) is to, say, dd if=/dev/urandom of=/dev/mem(depending on your kernel version, you may not have /dev/kmem). But I wouldn’t use the system after that. – rbrito Feb 27 ’13 at 5:08 | Show 6more comments
What is sysfs used for in Linux?
It provides a means to export kernel data structures, their attributes, and the linkages between them to userspace. sysfs is tied inherently to the kobject infrastructure. Please read Everything you never wanted to know about kobjects, ksets, and ktypes for more information concerning the kobject interface.
Is it possible to set a sysfs file writable for everyone?
Generally considered a bad idea.” so trying to set a sysfs file writable for everyone will fail reverting to RO mode for “Others”. For the common cases sysfs.h provides convenience macros to make defining attributes easier as well as making code more concise and readable. The above case could be shortened to:
How to trigger SysRq?
If you hold alt + print screen (sysrq) down and press another key next to them, it does the same as if you were to echo the key in that sysrq-trigger file. They call it trigger for a reason ;3 The ‘c’ tells the kernel to crash (cause a kernel panic) However, you may want to see the content of ‘proc/sys/kernel/sysrq’.