Re: pipe writes, ERESTARTSYS and SA_RESTART

2022-08-04 Thread Yann Droneaud
at. I tried to dig in the kernel source code but can't find the place where this tracking occurs. It doesn't. SA_RESTART is only meant to retry syscall that would have returned EINTR. In such case, there's no tracking to do, because nothing was actually written, so the sy

Re: Possibility of merge of disable icotl TIOCSTI patch

2022-06-01 Thread Yann Droneaud
bian.org/cgi-bin/bugreport.cgi?bug=815922 [5] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628843 This is probably some topic for (kernel|linux)-hardening@ mailing lists. Regards. -- Yann Droneaud OPTEYA ___ Kernelnewbies mailing list K

Re: Linux has timerfd, signalfd and eventfd. Is it time for a "unionfd"?

2021-01-06 Thread Yann Droneaud
this HTTP server > to an epoll() loop that monitors other FDs as well. No more worrying > about accept(), and per-connection FD bookkeeping. > > I believe a construct like this would help some popular existing > libraries as well, like zeromq and the grpc library. > > Does th

Re: Kernel assisted keychain?

2019-12-23 Thread Yann Droneaud
the keyring API http://man7.org/linux/man-pages/man7/keyrings.7.html https://www.kernel.org/doc/Documentation/security/keys.txt Regards. -- Yann Droneaud OPTEYA ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

amdgpu errors reported with kernel 5.2.2 (was Re: Problem with kernel major than 4.15.x)

2019-07-24 Thread Yann Droneaud
6.925748] amdgpu: [powerplay] last message was failed ret is 0 [7.419539] amdgpu: [powerplay] failed to send message 15b ret is 0 [ 11.724123] amdgpu: [powerplay] last message was failed ret is 0 and so on ... Regards. -- Yann Drone

Re: Suspend/resume causes I2C issues

2019-05-06 Thread Yann Droneaud
Hi, Le mercredi 01 mai 2019 à 21:39 +0200, Magnus Olsson a écrit : > I'm trying to debug an issue on an embedded Linux (v4.4.107) Current v4.4 stable is v4.4.179. Please upgrade first. Regards. -- Yann Droneaud OPTEYA ___ Kernelnewbies

Re: HID Driver

2019-03-15 Thread Yann Droneaud
sktop system. [1] https://www.arduino.cc/en/Reference/Libraries [2] https://www.arduino.cc/reference/en/language/functions/usb/mouse/ Regards. -- Yann Droneaud OPTEYA ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnew

Re: How to make /dev/ttyACM0 (and friends) exclusive?

2019-03-04 Thread Yann Droneaud
revent opening an existing file. Said differently, it's used to ensure a new file is created, useful to prevent race condition, where multiple processes compete to create a file. For example think of temporary file created with random name. Regards -- Yann Droneaud OPTEYA _

Re: clk: timestamps

2018-06-27 Thread Yann Droneaud
nd precision. Time synchronisation is a tough problem but it's required if you want to be able to compare timestamp accross hosts in a network. Regards. -- Yann Droneaud OPTEYA ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org htt

Re: Access RAM data externally (dual port ram)

2017-08-30 Thread Yann Droneaud
not be valid indefinitely. But the > solution of using mlock() sounds reasonable to me. > > I'd like to know the feasibility of the idea, and security > implications, if any. > > That's sound a lot like InfiniBand / RDMA. Have a look

Re: File Descriptor allocation

2017-01-26 Thread Yann Droneaud
nstall() (also anon_inode_getfd(), but you should probably not use it). Regards. -- Yann Droneaud OPTEYA ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: How to compile Linux kernel with -O0 flag

2016-08-14 Thread Yann Droneaud
ompletely, but it's worth a try. > > No, please don't do that.  If you do, you will end up with a > completly unsuported and unknown system and no one will be able to > help you out with any sort of problem solving. > And what about -Og which is a dedicated opti

Re: make headers_install for out-of-tree modules

2015-10-07 Thread Yann Droneaud
l, > > > > I'm trying to install headers from out-of-tree module. I've writed > > this[1] Makefile. I have Kbuild files with header-y tokens poiting > > for > > propper folders and files. When I run "make headers_install" I got > > this[2] error

Re: UIO Devices and user processes

2015-10-06 Thread Yann Droneaud
tand what's your trying to achieve. I can only propose you to use something like CONFIG_MMU=n, but as it's a system wide choice with multiple drawbacks, I don't think it's something you want to investigate into. Regards. -- Yann Droneaud OPTEYA __

Re: UIO Devices and user processes

2015-10-06 Thread Yann Droneaud
Le mardi 06 octobre 2015 à 10:13 -0400, Kenneth Adam Miller a écrit : > > > On Tue, Oct 6, 2015 at 9:58 AM, Yann Droneaud > wrote: > > Le mardi 06 octobre 2015 à 09:26 -0400, Kenneth Adam Miller a écrit > > : > > > > > Any body know about the i

Re: UIO Devices and user processes

2015-10-06 Thread Yann Droneaud
> > so that the next user process can acquire them, instead of them > > being lost. > > > > Have you tried this? All of your resources should be freed > > properly, if > > not, let the uio maintainers know. > > > > thanks, > > Regards. -- Yann Droneaud OPTEYA ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: Accessing pointers inside struct passed as argument to ioctl calls

2015-09-28 Thread Yann Droneaud
They are needed. Add __user annotation, install sparse and build with make C=1. For the second one, if the tx_buf is large enough, you may be well using something like get_user_page() to pin userspace memory inside the kernel memory so that you don't have to copy the memory to access it. Regards

Re: Question on mutex code

2015-03-10 Thread Yann Droneaud
om happening? > If not, should I post a patch that fixes it to LKML? Or is it > considered too "theoretical" and cannot happen in practice? > I haven't looked at your explanations, you should have come with a reproductible test case to demonstrate the issue (involving slowing down one CPU ?). Anyway, such deep knowledge on the mutex implementation has to be found on lkml. Regards. -- Yann Droneaud OPTEYA ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: locking a device for exclusive use by userspace process (or kernel thread)

2015-03-04 Thread Yann Droneaud
Hi Greg, Le mercredi 04 mars 2015 à 10:11 -0800, Greg KH a écrit : > On Wed, Mar 04, 2015 at 06:59:04PM +0100, Yann Droneaud wrote: > > Hi, > > > > I have a device and I have to write a driver that exposes the > > following three operations to kernel modules AN

locking a device for exclusive use by userspace process (or kernel thread)

2015-03-04 Thread Yann Droneaud
ing the lock die / exit. Perhaps I need a mechanism to be notified of the death of the process owning the lock. Do you have such mean in mind ? Or any other reasonable solution to implement the three operations of such driver ? Regards. -- Yann Droneaud OPTEYA

Re: Problem facing while running checkpatch.pl on linux-next tree

2014-07-27 Thread Yann Droneaud
to be a unified-diff format patch > > I thought that it might be a problem with my git. So I clone the git tree > again. > > So can anyone help me, what am I missing ? > If it's not a patch, you have to use -f flag to check a plain sourc

Re: Eudyptula Challenge

2014-05-23 Thread Yann Droneaud
.gmane.org/gmane.linux.kernel.kernelnewbies Regards. -- Yann Droneaud OPTEYA ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: building kernel modules for linux differnet version

2014-03-11 Thread Yann Droneaud
0.4.2.el6.x86_64 > drwxr-xr-x. 7 root root 4096 Jul 15 2013 2.6.32-358.6.2.el6.x86_64 > drwxr-xr-x 8 root root 4096 Aug 12 2013 2.6.39-300.17.1.el6uek.x86_64 > drwxr-xr-x. 4 root root 4096 Jul 10 2013 2.6.39-400.24.1.el6uek.x86_6

Re: building kernel modules for linux differnet version

2014-03-11 Thread Yann Droneaud
otice that the driver .ko gets generated for 2.6.39- though > I am booted into 2.6.32-. Can anyone help me figure out why this > is happening? > Could you check that /lib/modules/2.6.32-/build is not a symbolic link to linux 2.6.

Re: mmap giving Permission Denied error

2014-03-08 Thread Yann Droneaud
ULL pointer dereference vulnerabilities?" https://access.redhat.com/site/articles/20484 "SELinux hardening for mmap_min_addr protections" Eric Paris August 26th, 2009 http://eparis.livejournal.com/891.html "Much ado about NULL: Exploiting a

Re: [Question] Where is the -mm tree of linux kernel and patches?

2013-10-24 Thread Yann Droneaud
t testing Linux > Kernel. > Thanks. > You might want to test "-next" (short hand for "linux-next"), have a look at http://linux.f-seidel.de/linux-next/ http://linux.f-seidel.de/linux-next/pmwiki/pmwiki.php?n=Linux-next.Shor

Re: What to do with branches after submitting patches?

2013-10-11 Thread Yann Droneaud
So you will probably end up creating multiple topic branches, one for each parent version you're going to target. But you probably don't have to publish your branches if you're work is limited to a dozen of patches. With more patches, you might ask the maintainer. Regards. -- Yann D

Re: doesn't ioremap() retrun contigious addressess...?

2013-02-28 Thread Yann Droneaud
(SZ_16KB-1)/4;i++) src = readl(tcpm_base+(i * 4)); Regards -- Yann Droneaud OPTEYA ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

kbuild: building external module in separate output directory

2013-02-13 Thread Yann Droneaud
irectory. But I find this tasteless and error prone. Do someone know another method or a patch to the kbuild system to improve external module compilation ? Regards. -- Yann Droneaud OPTEYA ___ Kernelnewbies mailing list Kernelnewbies@kerneln

Re: struct nbd_reply not packed => trouble?

2013-01-15 Thread Yann Droneaud
Hi, Le mardi 15 janvier 2013 à 07:59 +0800, 卜弋天 a écrit : > > 在 2013-1-11,0:42,"Yann Droneaud" 写道: > >> - Any ideas for a platform where you would expect struct nbd_reply to > >>be other than 4 + 4 + 8 = 16 bytes in size? > > > > Look for a

Re: Have I understood?

2013-01-11 Thread Yann Droneaud
ng control to the kernel. [who use this today ... with kernel far bigger than 1.44MBytes btw, bootsect.S is no more included in the kernel. Floppy booting rely on syslinux] A boot loader such as Lilo and GRUB load the kernel image in memory and transfer control to the setup code. Regards.

Re: struct nbd_reply not packed => trouble?

2013-01-10 Thread Yann Droneaud
be other than 4 + 4 + 8 = 16 bytes in size? > Look for an ABI that require 'char' with either property: - size > 1 byte - alignment > 8 (16 bytes !) Regards. -- Yann Droneaud OPTEYA ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: trace MKFS

2013-01-04 Thread Yann Droneaud
achieve the same result (using a filesystem image). The kernel is using the "output" of mkfs later, when you issue "mount" command to mount the filesystem stored on the block device. Regards. -- Yann Droneaud OPTEYA ___ Kernelnewb

Re: gcc 2.95.3 compile failure

2012-12-19 Thread Yann Droneaud
gt; Do you know we are in 2012 ? > > Some people are even saying that the end of the world will be in two > days. This is already the end of the world: Zombie programs are coming back to live ! Blue screen of the death and such. (hey, ju

Re: sysfs: pass function pointers to kernel (not just a value through attribute)

2012-12-17 Thread Yann Droneaud
ight want to describe the problem you're trying to fix or at least a use case. Regards. -- Yann Droneaud OPTEYA ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: how does this command(at+cfun=1,1) works?

2012-12-17 Thread Yann Droneaud
LL to remaining processes, flush the filesystems, try to remount them read-only, and then proceed to reboot. [1] http://en.wikipedia.org/wiki/Magic_SysRq_key [2] http://kernel.org/doc/Documentation/sysrq.txt PS: you're looking for sysrq_handle_reboot() in drivers/tty/sysrq.c which call e

Re: how does this command(at+cfun=1,1) works?

2012-12-17 Thread Yann Droneaud
nd is asking for a reboot. So what you describe seems more likely to be a hardware problem. Regards. -- Yann Droneaud OPTEYA ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: question about building a module

2012-12-08 Thread Yann Droneaud
Le samedi 08 décembre 2012 à 04:02 -0500, devendra.aaru a écrit : > On Sat, Dec 8, 2012 at 3:03 AM, Yann Droneaud wrote: > > cd net/bluetooth > > make -C $PWD/../../ M=$PWD modules > > > > (But if you change a configuration parameter in .config, > > you will need

Re: question about building a module

2012-12-08 Thread Yann Droneaud
> > > somehow telling the MODPOST that only one module is changes ? > > > I remember I once saw (not sure) a suggestion to build only a > specified moule like: > make net/bluetooth > But in this case the result is the same. > cd net/bluetooth make -C $PWD/../../

Re: double exclamation mark meaning ?

2012-12-06 Thread Yann Droneaud
cast to a "bool". After applying !!(x), the value will be either 0 or 1. It's roughly equivalent to (((x) != 0) ? 1 : 0) Regards. -- Yann Droneaud OPTEYA ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: transfering pages from user space to user space

2012-12-06 Thread Yann Droneaud
the 3rd of december 2009. Even the -rt project switch to newer kernel (eg. no less than 3.0, and up to 3.4), see http://rt.wiki.kernel.org/ You should at least switch to a current long term support kernels, for example Linux 3.4. See http://www.kroah.com/log/linux/stable-status-