Hi Update the old patch,and the new patch is in the attachment,and please review this one. yangzi wrote: > Hi > > When running shmat01 on some platforms, it fails on > "addr = shmat(*(tc.shmid), base_addr + tc.offset,tc.flags);" > with a INVAL error. Look at codes in "setup()", it probes > an available address and align the address to SHMLBA. After > alignment, the new address is no guarantee to be available > any more. Here a bigger size is used to probe so that it's > still valid address after alignment.Pertaining to the function > setup_tc(lc, &tc) ,when it outside of "for (i = 0; i < TST_TOTAL; > i++)",and printf the tc.offset value is always 0,and correct a mistake > of original codes to move "setup_tc()" to right place. > > Signed-off-by: Yang Wei > > wei yang > BR >