Re: [stable-rc 4.14] shmctl04.c:115: TFAIL: SHM_INFO haven't returned a valid index: SUCCESS (0)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!
> LTP syscalls test shmctl04 test modified in latest LTP release 20200930
> and this test reported as fail. so reporting to LTP mailing list.
> Failed on stable-rc 4.14, 4.9 and 4.4 branches but
> passed on stable-rc 4.19, 5.4 and 5.9 branches for arm64, arm, x86_64 and i386.
> 
> shmctl04.c:115: TFAIL: SHM_INFO haven't returned a valid index: SUCCESS (0)
> shmctl04.c:131: TFAIL: Counted used = 0, used_ids = 1
> shmctl04.c:72: TPASS: used_ids = 1
> shmctl04.c:79: TPASS: shm_rss = 0
> shmctl04.c:86: TPASS: shm_swp = 0
> shmctl04.c:93: TPASS: shm_tot = 1

Looks like SHM_STAT_ANY was added to kernel 4.17, that would explain why
shmctl() with SHM_STATA_ANY returns -1 on 4.14 and older but in that
case errno should be EINVAL and not set to zero.

-- 
Cyril Hrubis
chrubis@xxxxxxx



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux