* [LTP] rt_sigqueueinfo: Invalid argument
@ 2018-10-08 12:26 Naresh Kamboju
2018-10-08 12:45 ` Cyril Hrubis
0 siblings, 1 reply; 5+ messages in thread
From: Naresh Kamboju @ 2018-10-08 12:26 UTC (permalink / raw)
To: ltp
rt_sigqueueinfo01 failed on all device (x86_64, i386, arm / arm64)
started failing from Linux version 4.19.0-rc6-next-20181004.
Do you see this failure at your end?
rt_sigqueueinfo01: rt_sigqueueinfo: Invalid argument
rt_sigqueueinfo01: rt_sigqueueinfo: Invalid argument
rt_sigqueueinfo01 1 TFAIL : rt_sigqueueinfo01.c:97: Test Failed
rt_sigqueueinfo01 0 TINFO : Failed to record test working dir
rt_sigqueueinfo01 1 TFAIL : rt_sigqueueinfo01.c:97: Test Failed
rt_sigqueueinfo01 0 TINFO : Failed to record test working dir
rt_sigqueueinfo01 2 TFAIL : rt_sigqueueinfo01.c:97: Test Failed
Full log details.
https://lkft.validation.linaro.org/scheduler/job/451548#L10339
Best regards
Naresh Kamboju
^ permalink raw reply [flat|nested] 5+ messages in thread
* [LTP] rt_sigqueueinfo: Invalid argument
2018-10-08 12:26 [LTP] rt_sigqueueinfo: Invalid argument Naresh Kamboju
@ 2018-10-08 12:45 ` Cyril Hrubis
2018-10-08 13:06 ` Jan Stancek
0 siblings, 1 reply; 5+ messages in thread
From: Cyril Hrubis @ 2018-10-08 12:45 UTC (permalink / raw)
To: ltp
Hi!
> rt_sigqueueinfo01 failed on all device (x86_64, i386, arm / arm64)
> started failing from Linux version 4.19.0-rc6-next-20181004.
> Do you see this failure at your end?
>
> rt_sigqueueinfo01: rt_sigqueueinfo: Invalid argument
> rt_sigqueueinfo01: rt_sigqueueinfo: Invalid argument
> rt_sigqueueinfo01 1 TFAIL : rt_sigqueueinfo01.c:97: Test Failed
> rt_sigqueueinfo01 0 TINFO : Failed to record test working dir
> rt_sigqueueinfo01 1 TFAIL : rt_sigqueueinfo01.c:97: Test Failed
> rt_sigqueueinfo01 0 TINFO : Failed to record test working dir
> rt_sigqueueinfo01 2 TFAIL : rt_sigqueueinfo01.c:97: Test Failed
>
> Full log details.
> https://lkft.validation.linaro.org/scheduler/job/451548#L10339
I do not recall seeing this test to fail.
However the test is old messy code, one thing that I guess may happen is
that there is random garbage in the siginfo_t structure we pass to the
syscall and in you case you were unlucky enough so that kernel rejects
the value, but that is just wild guess.
Btw, I've opened an issue to clean up the test in:
https://github.com/linux-test-project/ltp/issues/404
--
Cyril Hrubis
chrubis@suse.cz
^ permalink raw reply [flat|nested] 5+ messages in thread
* [LTP] rt_sigqueueinfo: Invalid argument
2018-10-08 12:45 ` Cyril Hrubis
@ 2018-10-08 13:06 ` Jan Stancek
2018-10-08 14:52 ` Naresh Kamboju
0 siblings, 1 reply; 5+ messages in thread
From: Jan Stancek @ 2018-10-08 13:06 UTC (permalink / raw)
To: ltp
----- Original Message -----
> Hi!
> > rt_sigqueueinfo01 failed on all device (x86_64, i386, arm / arm64)
> > started failing from Linux version 4.19.0-rc6-next-20181004.
> > Do you see this failure at your end?
> >
> > rt_sigqueueinfo01: rt_sigqueueinfo: Invalid argument
> > rt_sigqueueinfo01: rt_sigqueueinfo: Invalid argument
> > rt_sigqueueinfo01 1 TFAIL : rt_sigqueueinfo01.c:97: Test Failed
> > rt_sigqueueinfo01 0 TINFO : Failed to record test working dir
> > rt_sigqueueinfo01 1 TFAIL : rt_sigqueueinfo01.c:97: Test Failed
> > rt_sigqueueinfo01 0 TINFO : Failed to record test working dir
> > rt_sigqueueinfo01 2 TFAIL : rt_sigqueueinfo01.c:97: Test Failed
> >
> > Full log details.
> > https://lkft.validation.linaro.org/scheduler/job/451548#L10339
>
> I do not recall seeing this test to fail.
>
> However the test is old messy code, one thing that I guess may happen is
> that there is random garbage in the siginfo_t structure we pass to the
> syscall and in you case you were unlucky enough so that kernel rejects
> the value, but that is just wild guess.
Mainline doesn't seem to mind if we pass garbage atm. (4.19-rc7)
but we should initialize entire struct anyway.
In -next there is:
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/kernel/signal.c?id=e75dc036c445b91b8b2ad4e6c9b05f04b6be6d3f
and test doesn't set si_signo.
Regards,
Jan
>
> Btw, I've opened an issue to clean up the test in:
>
> https://github.com/linux-test-project/ltp/issues/404
>
> --
> Cyril Hrubis
> chrubis@suse.cz
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [LTP] rt_sigqueueinfo: Invalid argument
2018-10-08 13:06 ` Jan Stancek
@ 2018-10-08 14:52 ` Naresh Kamboju
2018-10-08 15:52 ` Eric W. Biederman
0 siblings, 1 reply; 5+ messages in thread
From: Naresh Kamboju @ 2018-10-08 14:52 UTC (permalink / raw)
To: ltp
+ Eric
Eric,
If you have any comments.
Good note is that, you broke the test and we need to fix it for better
test coverage :-)
Thank you.
On Mon, 8 Oct 2018 at 18:36, Jan Stancek <jstancek@redhat.com> wrote:
>
>
>
> ----- Original Message -----
> > Hi!
> > > rt_sigqueueinfo01 failed on all device (x86_64, i386, arm / arm64)
> > > started failing from Linux version 4.19.0-rc6-next-20181004.
> > > Do you see this failure at your end?
> > >
> > > rt_sigqueueinfo01: rt_sigqueueinfo: Invalid argument
> > > rt_sigqueueinfo01: rt_sigqueueinfo: Invalid argument
> > > rt_sigqueueinfo01 1 TFAIL : rt_sigqueueinfo01.c:97: Test Failed
> > > rt_sigqueueinfo01 0 TINFO : Failed to record test working dir
> > > rt_sigqueueinfo01 1 TFAIL : rt_sigqueueinfo01.c:97: Test Failed
> > > rt_sigqueueinfo01 0 TINFO : Failed to record test working dir
> > > rt_sigqueueinfo01 2 TFAIL : rt_sigqueueinfo01.c:97: Test Failed
> > >
> > > Full log details.
> > > https://lkft.validation.linaro.org/scheduler/job/451548#L10339
> >
> > I do not recall seeing this test to fail.
> >
> > However the test is old messy code, one thing that I guess may happen is
> > that there is random garbage in the siginfo_t structure we pass to the
> > syscall and in you case you were unlucky enough so that kernel rejects
> > the value, but that is just wild guess.
>
Jan,
> Mainline doesn't seem to mind if we pass garbage atm. (4.19-rc7)
> but we should initialize entire struct anyway.
>
> In -next there is:
> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/kernel/signal.c?id=e75dc036c445b91b8b2ad4e6c9b05f04b6be6d3f
> and test doesn't set si_signo.
Thanks for the quick reply.
This help me a lot.
>
> Regards,
> Jan
>
> >
Cyril,
> > Btw, I've opened an issue to clean up the test in:
> >
> > https://github.com/linux-test-project/ltp/issues/404
Thanks for creating an issue. I have subscribed to this one.
- Naresh
> >
> > --
> > Cyril Hrubis
> > chrubis@suse.cz
> >
^ permalink raw reply [flat|nested] 5+ messages in thread
* [LTP] rt_sigqueueinfo: Invalid argument
2018-10-08 14:52 ` Naresh Kamboju
@ 2018-10-08 15:52 ` Eric W. Biederman
0 siblings, 0 replies; 5+ messages in thread
From: Eric W. Biederman @ 2018-10-08 15:52 UTC (permalink / raw)
To: ltp
Naresh Kamboju <naresh.kamboju@linaro.org> writes:
> + Eric
>
> Eric,
> If you have any comments.
> Good note is that, you broke the test and we need to fix it for better
> test coverage :-)
Ok. So I have tracked down the test and I think I see what is going on.
I believe this is the source code to your failing test:
https://github.com/linux-test-project/ltp/blob/master/testcases/kernel/syscalls/rt_sigqueueinfo/rt_sigqueueinfo01.c
There are two cases I have changed that might possibly break something.
One was verifying that si_signo matched sig. This is my second report
and it feels credible that that change was a regression in userspace and
I have fixed that in my development branch and that should be showing
up in linux-next in a day or so.
The other change is verifying that the tail end of siginfo_t is 0 if
we don't recognize the si_code. In this case SI_QUEUE is hard coded
so that check should not be coming into play.
Thank you for letting me know this broke an ltp test.
I was hoping that no one would care but it is clear now that people
really do ignore si_signo in favor of the signal parameter of the system
call. So not fixing this would be introducing regressions in
applications.
Eric
> Thank you.
>
> On Mon, 8 Oct 2018 at 18:36, Jan Stancek <jstancek@redhat.com> wrote:
>>
>>
>>
>> ----- Original Message -----
>> > Hi!
>> > > rt_sigqueueinfo01 failed on all device (x86_64, i386, arm / arm64)
>> > > started failing from Linux version 4.19.0-rc6-next-20181004.
>> > > Do you see this failure at your end?
>> > >
>> > > rt_sigqueueinfo01: rt_sigqueueinfo: Invalid argument
>> > > rt_sigqueueinfo01: rt_sigqueueinfo: Invalid argument
>> > > rt_sigqueueinfo01 1 TFAIL : rt_sigqueueinfo01.c:97: Test Failed
>> > > rt_sigqueueinfo01 0 TINFO : Failed to record test working dir
>> > > rt_sigqueueinfo01 1 TFAIL : rt_sigqueueinfo01.c:97: Test Failed
>> > > rt_sigqueueinfo01 0 TINFO : Failed to record test working dir
>> > > rt_sigqueueinfo01 2 TFAIL : rt_sigqueueinfo01.c:97: Test Failed
>> > >
>> > > Full log details.
>> > > https://lkft.validation.linaro.org/scheduler/job/451548#L10339
>> >
>> > I do not recall seeing this test to fail.
>> >
>> > However the test is old messy code, one thing that I guess may happen is
>> > that there is random garbage in the siginfo_t structure we pass to the
>> > syscall and in you case you were unlucky enough so that kernel rejects
>> > the value, but that is just wild guess.
>>
>
> Jan,
>
>> Mainline doesn't seem to mind if we pass garbage atm. (4.19-rc7)
>> but we should initialize entire struct anyway.
>>
>> In -next there is:
>> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/kernel/signal.c?id=e75dc036c445b91b8b2ad4e6c9b05f04b6be6d3f
>> and test doesn't set si_signo.
>
> Thanks for the quick reply.
> This help me a lot.
>
>>
>> Regards,
>> Jan
>>
>> >
>
> Cyril,
>
>> > Btw, I've opened an issue to clean up the test in:
>> >
>> > https://github.com/linux-test-project/ltp/issues/404
>
> Thanks for creating an issue. I have subscribed to this one.
>
> - Naresh
>
>> >
>> > --
>> > Cyril Hrubis
>> > chrubis@suse.cz
>> >
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-10-08 15:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-08 12:26 [LTP] rt_sigqueueinfo: Invalid argument Naresh Kamboju
2018-10-08 12:45 ` Cyril Hrubis
2018-10-08 13:06 ` Jan Stancek
2018-10-08 14:52 ` Naresh Kamboju
2018-10-08 15:52 ` Eric W. Biederman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox