Jan Kiszka : cobalt/posix/syscall: Exclude sc_cobalt_get_current from debug warnings
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines · git repository hosting
Module: xenomai-jki Branch: for-forge Commit: fc2d70475f4f86da30e68a569e7641982f4dd8e1 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=fc2d70475f4f86da30e68a569e7641982f4dd8e1Author: Jan Kiszka <[email protected]> Date: Fri Feb 20 16:50:15 2015 +0100
Quoted 7 lines
cobalt/posix/syscall: Exclude
sc_cobalt_get_currentfrom debug warningsThis syscall is used for probing the context, thus may be triggered by non-RT threads as well which we should not report as potential error.
Signed-off-by Jan Kiszka <[email protected]>
This would mean that sc_cobalt_get_current is considered valid from any process, including those which did not issue sc_cobalt_bind in the first place.
Do we depend on this today, or are we granting an extended access with this patch?
Signature · 1 line
Philippe.
Quoted 17 lines · Philippe Gerum
Quoted 8 lines · git repository hosting
Module: xenomai-jki Branch: for-forge Commit: fc2d70475f4f86da30e68a569e7641982f4dd8e1 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=fc2d70475f4f86da30e68a569e7641982f4dd8e1Author: Jan Kiszka <[email protected]> Date: Fri Feb 20 16:50:15 2015 +0100Quoted 7 lines
cobalt/posix/syscall: Exclude
sc_cobalt_get_currentfrom debug warningsThis syscall is used for probing the context, thus may be triggered by non-RT threads as well which we should not report as potential error.
Signed-off-by Jan Kiszka <[email protected]>
Quoted 6 lines
This would mean that
sc_cobalt_get_currentis considered valid from any process, including those which did not issuesc_cobalt_bindin the first place.Do we depend on this today, or are we granting an extended access with this patch?
This is just to silence a warning you get, e.g., with the smokey fork test.
I don't think it should be illegal to call such a service, even prior to binding to the interface. It is already robust against it, isn't it?
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SES-DE Corporate Competence Center Embedded Linux
Quoted 22 lines · Jan Kiszka
Quoted 21 lines · Philippe Gerum
Quoted 8 lines · git repository hosting
Module: xenomai-jki Branch: for-forge Commit: fc2d70475f4f86da30e68a569e7641982f4dd8e1 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=fc2d70475f4f86da30e68a569e7641982f4dd8e1Author: Jan Kiszka <[email protected]> Date: Fri Feb 20 16:50:15 2015 +0100Quoted 7 lines
cobalt/posix/syscall: Exclude
sc_cobalt_get_currentfrom debug warningsThis syscall is used for probing the context, thus may be triggered by non-RT threads as well which we should not report as potential error.
Signed-off-by Jan Kiszka <[email protected]>This would mean that
sc_cobalt_get_currentis considered valid from any process, including those which did not issuesc_cobalt_bindin the first place.
Quoted 8 lines
Quoted 2 lines
Do we depend on this today, or are we granting an extended access with this patch?
This is just to silence a warning you get, e.g., with the smokey fork test.
I don't think it should be illegal to call such a service, even prior to binding to the interface. It is already robust against it, isn't it?
Illegal maybe not, but definitely unexpected. I mean that this is a Cobalt service, so I would expect the userland code not to issue any Cobalt syscall until the initial binding took place.
The fork sequence seems to depart from this assumption due to some code running on behalf of the atfork handlers in libcobalt, right?
Signature · 1 line
Philippe.
Am 2015-02-20 um 20:56 schrieb Philippe Gerum:
Quoted 32 lines · Jan Kiszka
Quoted 22 lines · Philippe Gerum
Quoted 21 lines · git repository hosting
Quoted 8 lines
Module: xenomai-jki Branch: for-forge Commit: fc2d70475f4f86da30e68a569e7641982f4dd8e1 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=fc2d70475f4f86da30e68a569e7641982f4dd8e1Author: Jan Kiszka <[email protected]> Date: Fri Feb 20 16:50:15 2015 +0100Quoted 7 lines
cobalt/posix/syscall: Exclude
sc_cobalt_get_currentfrom debug warningsThis syscall is used for probing the context, thus may be triggered by non-RT threads as well which we should not report as potential error.
Signed-off-by Jan Kiszka <[email protected]>This would mean that
sc_cobalt_get_currentis considered valid from any process, including those which did not issuesc_cobalt_bindin the first place.Quoted 8 lines
Quoted 2 lines
Do we depend on this today, or are we granting an extended access with this patch?
This is just to silence a warning you get, e.g., with the smokey fork test.
I don't think it should be illegal to call such a service, even prior to binding to the interface. It is already robust against it, isn't it?
Quoted 6 lines
Illegal maybe not, but definitely unexpected. I mean that this is a Cobalt service, so I would expect the userland code not to issue any Cobalt syscall until the initial binding took place.
The fork sequence seems to depart from this assumption due to some code running on behalf of the atfork handlers in libcobalt, right?
[ah, was me who forgot to follow up]
Right. The path that triggers the issue is along cobalt_print_init_atfork -> cleanup_buffer -> assert_nrt.
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SES-DE Corporate Competence Center Embedded Linux
Quoted 37 lines · Jan Kiszka
Am 2015-02-20 um 20:56 schrieb Philippe Gerum:
Quoted 36 lines · Jan Kiszka
Quoted 22 lines · Philippe Gerum
Quoted 21 lines · git repository hosting
Quoted 8 lines
Module: xenomai-jki Branch: for-forge Commit: fc2d70475f4f86da30e68a569e7641982f4dd8e1 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=fc2d70475f4f86da30e68a569e7641982f4dd8e1Author: Jan Kiszka <[email protected]> Date: Fri Feb 20 16:50:15 2015 +0100Quoted 7 lines
cobalt/posix/syscall: Exclude
sc_cobalt_get_currentfrom debug warningsThis syscall is used for probing the context, thus may be triggered by non-RT threads as well which we should not report as potential error.
Signed-off-by Jan Kiszka <[email protected]>This would mean that
sc_cobalt_get_currentis considered valid from any process, including those which did not issuesc_cobalt_bindin the first place.Quoted 8 lines
Quoted 2 lines
Do we depend on this today, or are we granting an extended access with this patch?
This is just to silence a warning you get, e.g., with the smokey fork test.
I don't think it should be illegal to call such a service, even prior to binding to the interface. It is already robust against it, isn't it?
Illegal maybe not, but definitely unexpected. I mean that this is a Cobalt service, so I would expect the userland code not to issue any Cobalt syscall until the initial binding took place.
Quoted 8 lines
Quoted 2 lines
The fork sequence seems to depart from this assumption due to some code running on behalf of the atfork handlers in libcobalt, right?
[ah, was me who forgot to follow up]
Right. The path that triggers the issue is along
cobalt_print_init_atfork->cleanup_buffer->assert_nrt.
Ok. I'll merge this change, which enables sc_cobalt_get_current for any context.
Signature · 1 line
Philippe.
Quoted 22 lines · Jan Kiszka
Quoted 21 lines · Philippe Gerum
Quoted 8 lines · git repository hosting
Module: xenomai-jki Branch: for-forge Commit: fc2d70475f4f86da30e68a569e7641982f4dd8e1 URL: http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=fc2d70475f4f86da30e68a569e7641982f4dd8e1Author: Jan Kiszka <[email protected]> Date: Fri Feb 20 16:50:15 2015 +0100Quoted 7 lines
cobalt/posix/syscall: Exclude
sc_cobalt_get_currentfrom debug warningsThis syscall is used for probing the context, thus may be triggered by non-RT threads as well which we should not report as potential error.
Signed-off-by Jan Kiszka <[email protected]>This would mean that
sc_cobalt_get_currentis considered valid from any process, including those which did not issuesc_cobalt_bindin the first place.
Quoted 8 lines
Quoted 2 lines
Do we depend on this today, or are we granting an extended access with this patch?
This is just to silence a warning you get, e.g., with the smokey fork test.
I don't think it should be illegal to call such a service, even prior to binding to the interface. It is already robust against it, isn't it?
Just noticed this patch in my queue while rebasing over next. Did you come to a conclusion?
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SES-DE Corporate Competence Center Embedded Linux