> -----Original Message----- > From: Jan Kiszka <jan.kis...@siemens.com> > Sent: Donnerstag, 29. August 2019 16:52 > To: Lange Norbert <norbert.la...@andritz.com>; Philippe Gerum > <r...@xenomai.org>; Xenomai (xenomai@xenomai.org) > <xenomai@xenomai.org> > Subject: Re: [PATCH 2/2] cobalt: switch hand over status to -ENODEV for non- > RTDM fd > > E-MAIL FROM A NON-ANDRITZ SOURCE: AS A SECURITY MEASURE, PLEASE > EXERCISE CAUTION WITH E-MAIL CONTENT AND ANY LINKS OR > ATTACHMENTS. > > > On 29.08.19 16:12, Lange Norbert via Xenomai wrote: > > > > I ran into a rather big issue with linux filehandles I use Xenomai > > master on ipipe-core-4.19.60-x86-5 with those patches, (can't be 100% > > sure its not some kernel/userspace conflict, but I doubt it) > > > > What happens is that upon a __cobalt_close with a linux filehande, the > > syscall sc_cobalt_close returns EBADF, but that means the libc close > > will never be tried and filehandles are leaking like mad. > > > > Ah, good catch. Looks like Philippe's patch was missing a change to > rtdm_fd_close().
Yes, but his v3 works. > Thanks a lot for testing pro-actively! You are welcome, its less benign than you might think though, Philippe's patches (allow for device teardown) were requested from myself. How does Xenomai/cobalt handle kernel/userspace conflicts like these BTW, Is there some ABI variable that needs to be incremented and can detect mismatches? (if you use an old libcobalt on a new kernel module with patchset or vice verse, it would result in leaks or other issues) Kind regards, Norbert ________________________________ This message and any attachments are solely for the use of the intended recipients. They may contain privileged and/or confidential information or other information protected from disclosure. If you are not an intended recipient, you are hereby notified that you received this email in error and that any review, dissemination, distribution or copying of this email and any attachment is strictly prohibited. If you have received this email in error, please contact the sender and delete the message and any attachment from your system. ANDRITZ HYDRO GmbH Rechtsform/ Legal form: Gesellschaft mit beschränkter Haftung / Corporation Firmensitz/ Registered seat: Wien Firmenbuchgericht/ Court of registry: Handelsgericht Wien Firmenbuchnummer/ Company registration: FN 61833 g DVR: 0605077 UID-Nr.: ATU14756806 Thank You ________________________________