Skip to contentSkip to conversation

Jan Kiszka : cobalt/syscall: Filter out invalid Linux syscalls

Xenomai Philippe Gerum 2 participants 3 messages Jul 26, 2017 – Oct 12, 2017 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 5 lines · git repository hosting
Module: xenomai-jki
Branch: for-forge
Commit: 92fadda472ad755db2d7b9443d3b2108a35e5d14
URL:    http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=92fadda472ad755db2d7b9443d3b2108a35e5d14
Quoted 9 lines
Author: Jan Kiszka <[email protected]>
Date:   Mon Jul 24 14:22:29 2017 +0200

cobalt/syscall: Filter out invalid Linux syscalls

Suggested by Philippe Gerum: Instead of propagating them down the pipeline, triggering a XENO_BUG_ON in ipipe_fastcall_hook, catch invalid Linux syscalls early and terminate them immediately.

I'm holding this one for now, this requires further investigation; a syscall unexpectedly triggers this guard in the ARM port.

Signature · 1 line
Philippe.
#2 lore raw
Quoted 11 lines · Philippe Gerum
Quoted 10 lines · git repository hosting
Module: xenomai-jki
Branch: for-forge
Commit: 92fadda472ad755db2d7b9443d3b2108a35e5d14
URL:    http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=92fadda472ad755db2d7b9443d3b2108a35e5d14
Author: Jan Kiszka <[email protected]>
Date:   Mon Jul 24 14:22:29 2017 +0200

cobalt/syscall: Filter out invalid Linux syscalls

Quoted 7 lines
Quoted 4 lines

Suggested by Philippe Gerum: Instead of propagating them down the pipeline, triggering a XENO_BUG_ON in ipipe_fastcall_hook, catch invalid Linux syscalls early and terminate them immediately.

I'm holding this one for now, this requires further investigation; a syscall unexpectedly triggers this guard in the ARM port.

What's the status of this? Did I miss a commit that resolves this? I'm asking as I'm still carrying that commit locally in some queue as a reminder.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA ITP SES-DE
Corporate Competence Center Embedded Linux
#3 lore raw
Quoted 17 lines · Jan Kiszka
Quoted 16 lines · Philippe Gerum
Quoted 14 lines · git repository hosting
Module: xenomai-jki
Branch: for-forge
Commit: 92fadda472ad755db2d7b9443d3b2108a35e5d14
URL:    http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=92fadda472ad755db2d7b9443d3b2108a35e5d14
Author: Jan Kiszka <[email protected]>
Date:   Mon Jul 24 14:22:29 2017 +0200

cobalt/syscall: Filter out invalid Linux syscalls

Suggested by Philippe Gerum: Instead of propagating them down the pipeline, triggering a XENO_BUG_ON in ipipe_fastcall_hook, catch invalid Linux syscalls early and terminate them immediately.

Quoted 7 lines
Quoted 2 lines

I'm holding this one for now, this requires further investigation; a syscall unexpectedly triggers this guard in the ARM port.

What's the status of this? Did I miss a commit that resolves this? I'm asking as I'm still carrying that commit locally in some queue as a reminder.

I did not have time to have a look at the ARM-specific issue yet.

Signature · 1 line
Philippe.