[PATCH] staging: pi433: add mutex fixing race condition when accessing tx_cfg

2018-06-11 Thread Hugo Lefeuvre
In the PI433_IOC_WR_TX_CFG case in pi433_ioctl, instance->tx_cfg is modified using copy_from_user(>tx_cfg, argp, sizeof(struct pi433_tx_cfg))) without any kind of synchronization. In the case where two threads would execute this same command concurrently the tx_cfg field might enter in an

Question about mmap

2018-06-11 Thread bing zhu
Dear Sir/Ma'am How can i map a kernel virtual address to a user process's same virtual address ?is it possible ? thank you for your time best wishes! ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org

Re: How to debug video in the Linux Kernel?

2018-06-11 Thread Ricardo Ribalda Delgado
Hi John On Thu, Jun 7, 2018 at 2:05 PM John Whitmore wrote: > > Maybe that problem is not in the kernel at all but vlc does display videos > correctly. I've also been through all the vlc settings and can't find anything > that makes a different. Have you tried using qv4l2 from Hans Vekuil: