Re: Kernel panic after insmod

2016-06-26 Thread Aruna Hewapathirane
> What exactly was the crash? And where did you find this kernel module > source from? Greg, A little digging around using Google threw this up : http://superuser.com/questions/1092083/how-to-disable-kill-command-on-linux If you scroll down you will see the exact same code :) And completely

Re: Kernel panic after insmod

2016-06-26 Thread Greg KH
On Sun, Jun 26, 2016 at 09:35:55AM +, Manavendra Nath Manav wrote: > Can someone explain the following kernel module code. I'm not familiar with > x86 > assembly so have problem understanding this part. Also it seems this code is > able to modify the kernel stack. > >

Kernel panic after insmod

2016-06-26 Thread Manavendra Nath Manav
Can someone explain the following kernel module code. I'm not familiar with x86 assembly so have problem understanding this part. Also it seems this code is able to modify the kernel stack. /**start/ #include MODULE_LICENSE("GPL"); int __init init(void)

spidev on davinci

2016-06-26 Thread Denis Obrezkov
Hello, I am trying to use spidev to send messages via spi on OMAP-L137 EVM board. I have an spidev entry in /dev, but when I try to send data, I have the following message: spidev spi1.0: SPI transfer failed: -22 spi_master spi1: failed to transfer one message from queue Debugging using printk,