All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] setregid04_16
@ 2016-11-18  9:51 nousi
  2016-11-22  8:23 ` Cyril Hrubis
  0 siblings, 1 reply; 5+ messages in thread
From: nousi @ 2016-11-18  9:51 UTC (permalink / raw)
  To: ltp

Hi All,

please, help with the below error.

root@:/opt/ltp# ./testcases/bin/setregid04_16
setregid04_16    1  TPASS  :  real or effective gid was modified as expected
setregid04_16    2  TFAIL  :  setregid04.c:146: ERROR: After
setregid(users, -1) real gid = 100; effective gid = 65535
setregid04_16    0  TINFO  :  Expected: real gid = 100; effective gid = 0
setregid04_16    3  TFAIL  :  setregid04.c:146: ERROR: After
setregid(root,-1), real gid = 0; effective gid = 65535
setregid04_16    0  TINFO  :  Expected: real gid = 0; effective gid = 0
setregid04_16    4  TFAIL  :  setregid04.c:146: ERROR: After
setregid(-1, -1), real gid = 65535; effective gid = 65535
setregid04_16    0  TINFO  :  Expected: real gid = 0; effective gid = 0
setregid04_16    5  TFAIL  :  setregid04.c:146: ERROR: After
setregid(-1, root) real gid = 65535; effective gid = 0
setregid04_16    0  TINFO  :  Expected: real gid = 0; effective gid = 0
setregid04_16    6  TFAIL  :  setregid04.c:146: ERROR: After
setregid(root, -1), real gid = 0; effective gid = 65535
setregid04_16    0  TINFO  :  Expected: real gid = 0; effective gid = 0
setregid04_16    7  TPASS  :  real or effective gid was modified as expected
setregid04_16    8  TFAIL  :  setregid04.c:146: ERROR: After
setregid(-1, -1) real gid = 65535; effective gid = 65535
setregid04_16    0  TINFO  :  Expected: real gid = 1; effective gid = 100
setregid04_16    9  TFAIL  :  setregid04.c:146: ERROR: After
setregid(-1, users) real gid = 65535; effective gid = 100
setregid04_16    0  TINFO  :  Expected: real gid = 1; effective gid = 100

-- 
Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LTP] setregid04_16
  2016-11-18  9:51 [LTP] setregid04_16 nousi
@ 2016-11-22  8:23 ` Cyril Hrubis
  2016-11-22 11:30   ` nousi
  0 siblings, 1 reply; 5+ messages in thread
From: Cyril Hrubis @ 2016-11-22  8:23 UTC (permalink / raw)
  To: ltp

Hi!
> please, help with the below error.

What LTP version you have? What kernel version? What glibc version? What
architecture? Have you tried to strace the testcase to check that
correct syscall is called?

> root@:/opt/ltp# ./testcases/bin/setregid04_16
> setregid04_16    1  TPASS  :  real or effective gid was modified as expected
> setregid04_16    2  TFAIL  :  setregid04.c:146: ERROR: After
> setregid(users, -1) real gid = 100; effective gid = 65535
> setregid04_16    0  TINFO  :  Expected: real gid = 100; effective gid = 0
> setregid04_16    3  TFAIL  :  setregid04.c:146: ERROR: After
> setregid(root,-1), real gid = 0; effective gid = 65535
> setregid04_16    0  TINFO  :  Expected: real gid = 0; effective gid = 0
> setregid04_16    4  TFAIL  :  setregid04.c:146: ERROR: After
> setregid(-1, -1), real gid = 65535; effective gid = 65535
> setregid04_16    0  TINFO  :  Expected: real gid = 0; effective gid = 0
> setregid04_16    5  TFAIL  :  setregid04.c:146: ERROR: After
> setregid(-1, root) real gid = 65535; effective gid = 0
> setregid04_16    0  TINFO  :  Expected: real gid = 0; effective gid = 0
> setregid04_16    6  TFAIL  :  setregid04.c:146: ERROR: After
> setregid(root, -1), real gid = 0; effective gid = 65535
> setregid04_16    0  TINFO  :  Expected: real gid = 0; effective gid = 0
> setregid04_16    7  TPASS  :  real or effective gid was modified as expected
> setregid04_16    8  TFAIL  :  setregid04.c:146: ERROR: After
> setregid(-1, -1) real gid = 65535; effective gid = 65535
> setregid04_16    0  TINFO  :  Expected: real gid = 1; effective gid = 100
> setregid04_16    9  TFAIL  :  setregid04.c:146: ERROR: After
> setregid(-1, users) real gid = 65535; effective gid = 100
> setregid04_16    0  TINFO  :  Expected: real gid = 1; effective gid = 100

Hmm, the gid set to -1 should not change the real/efective gid something
is wrong here and the value -1 (65535 when printed as unsigned int) does
change it. No idea what went wrong though.

-- 
Cyril Hrubis
chrubis@suse.cz

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LTP] setregid04_16
  2016-11-22  8:23 ` Cyril Hrubis
@ 2016-11-22 11:30   ` nousi
  2016-11-23 11:05     ` Cyril Hrubis
  0 siblings, 1 reply; 5+ messages in thread
From: nousi @ 2016-11-22 11:30 UTC (permalink / raw)
  To: ltp

please find the details about the running machine.

LTP ver: 20150119
Kernel Version: 3.14.65
glibc version 2.19
I am using ARM architecture.

Do not have strace support on my system

Thanks,
Nousi.


On Tue, Nov 22, 2016 at 1:53 PM, Cyril Hrubis <chrubis@suse.cz> wrote:
> Hi!
>> please, help with the below error.
>
> What LTP version you have? What kernel version? What glibc version? What
> architecture? Have you tried to strace the testcase to check that
> correct syscall is called?
>
>> root@:/opt/ltp# ./testcases/bin/setregid04_16
>> setregid04_16    1  TPASS  :  real or effective gid was modified as expected
>> setregid04_16    2  TFAIL  :  setregid04.c:146: ERROR: After
>> setregid(users, -1) real gid = 100; effective gid = 65535
>> setregid04_16    0  TINFO  :  Expected: real gid = 100; effective gid = 0
>> setregid04_16    3  TFAIL  :  setregid04.c:146: ERROR: After
>> setregid(root,-1), real gid = 0; effective gid = 65535
>> setregid04_16    0  TINFO  :  Expected: real gid = 0; effective gid = 0
>> setregid04_16    4  TFAIL  :  setregid04.c:146: ERROR: After
>> setregid(-1, -1), real gid = 65535; effective gid = 65535
>> setregid04_16    0  TINFO  :  Expected: real gid = 0; effective gid = 0
>> setregid04_16    5  TFAIL  :  setregid04.c:146: ERROR: After
>> setregid(-1, root) real gid = 65535; effective gid = 0
>> setregid04_16    0  TINFO  :  Expected: real gid = 0; effective gid = 0
>> setregid04_16    6  TFAIL  :  setregid04.c:146: ERROR: After
>> setregid(root, -1), real gid = 0; effective gid = 65535
>> setregid04_16    0  TINFO  :  Expected: real gid = 0; effective gid = 0
>> setregid04_16    7  TPASS  :  real or effective gid was modified as expected
>> setregid04_16    8  TFAIL  :  setregid04.c:146: ERROR: After
>> setregid(-1, -1) real gid = 65535; effective gid = 65535
>> setregid04_16    0  TINFO  :  Expected: real gid = 1; effective gid = 100
>> setregid04_16    9  TFAIL  :  setregid04.c:146: ERROR: After
>> setregid(-1, users) real gid = 65535; effective gid = 100
>> setregid04_16    0  TINFO  :  Expected: real gid = 1; effective gid = 100
>
> Hmm, the gid set to -1 should not change the real/efective gid something
> is wrong here and the value -1 (65535 when printed as unsigned int) does
> change it. No idea what went wrong though.
>
> --
> Cyril Hrubis
> chrubis@suse.cz



-- 
Thanks & Regards,
B.Nousilal,

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LTP] setregid04_16
  2016-11-22 11:30   ` nousi
@ 2016-11-23 11:05     ` Cyril Hrubis
  2016-11-23 11:12       ` Cyril Hrubis
  0 siblings, 1 reply; 5+ messages in thread
From: Cyril Hrubis @ 2016-11-23 11:05 UTC (permalink / raw)
  To: ltp

Hi!
> LTP ver: 20150119
> Kernel Version: 3.14.65
> glibc version 2.19
> I am using ARM architecture.

That is kind of icomplete, is that 32bit, 64bit or the strange mix
between these two called x32?

> Do not have strace support on my system

It's hard to debug any syscall tests without that.

-- 
Cyril Hrubis
chrubis@suse.cz

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [LTP] setregid04_16
  2016-11-23 11:05     ` Cyril Hrubis
@ 2016-11-23 11:12       ` Cyril Hrubis
  0 siblings, 0 replies; 5+ messages in thread
From: Cyril Hrubis @ 2016-11-23 11:12 UTC (permalink / raw)
  To: ltp

Hi!
> That is kind of icomplete, is that 32bit, 64bit or the strange mix
> between these two called x32?

To be exact it's called ILP32 not x32 on ARM.

-- 
Cyril Hrubis
chrubis@suse.cz

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-11-23 11:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-18  9:51 [LTP] setregid04_16 nousi
2016-11-22  8:23 ` Cyril Hrubis
2016-11-22 11:30   ` nousi
2016-11-23 11:05     ` Cyril Hrubis
2016-11-23 11:12       ` Cyril Hrubis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.