← Back to team overview

kernel-packages team mailing list archive

[Bug 1267062] Re: LTP sigaltstack02 test failure -- MINSIGSTKSZ in userspace missmatches kernel (was: sigaltstack system call unable to send proper return code (error12))

 

My question is which header file to include in application code for
"signal.h"?

Since each of these header file include in the application code seems
different definiation.

With the sample code I include in #10 if we include <signal.h>   I see
MINSIGSTKSZ  ----> 4096

and

If #include "/usr/include/powerpc64le-linux-gnu/asm/signal.h"    I  see
MINSIGSTKSZ  ----> 2048

It would be good if you can give suggestion/input on which header file
to include in appln. code for signal.h

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1267062

Title:
  LTP sigaltstack02 test failure -- MINSIGSTKSZ in userspace missmatches
  kernel (was: sigaltstack system call unable to send proper return code
  (error12))

Status in “eglibc” package in Ubuntu:
  New
Status in “linux” package in Ubuntu:
  Invalid

Bug description:
  9.3.189.114 (root/.pasroot) (Host Machine)
  Run the follwoing command to go to the guest victim machine from (/var/lib/libvirt/images/jagan/new_ubuntu_alpha1)

  qemu-system-ppc64 -enable-kvm -M pseries -cpu POWER8 -smp 1 -m 10G
  -nographic -nodefaults -monitor stdio -serial pty -append
  "root=/dev/sda" -kernel trusty-server-cloudimg-ppc64el-vmlinuz-generic
  -device spapr-vscsi -device spapr-
  vlan,netdev=net0,mac=6c:ae:8b:69:16:15 -netdev
  bridge,br=virbr0,id=net0 -drive file=trusty-server-cloudimg-
  ppc64el.img.qcow2

  after this command you will get the screen number.
  example:

  QEMU 1.6.0 monitor - type 'help' for more information
  (qemu) char device redirected to /dev/pts/16 (label serial0)

  Then open another host session and execute the below command

  # screen /dev/pts/16
  (qemu)

  Here the screen number is  /dev/pts/16

  -->>Then you will get a blank screen so press ENTER key.

  The guest machine login: ubuntu/passw0rd

  Then do --->sudo -i

  Environment:
  ===========
  Host: Power8
  Guest : ubuntu hosted on Power8
  The issue:
  ======
  sigaltstack system call unable send proper return value.

  
  How to run :
  ========
  -->cd /root/ltp-full-20130904/testcases/kernel/syscalls/sigaltstack

  --> ./sigaltstack02  ==> Getting the below error

  sigaltstack02    1  TPASS  :  stgaltstack() fails, Invalid Flag value, errno:22
  sigaltstack02    2  TFAIL  :  sigaltstack() returned 0, expected -1, errno:12 =====>> FAIL

  <<<test_start>>>
  tag=sigaltstack02 stime=1386653793
  cmdline="sigaltstack02"
  contacts=""
  analysis=exit
  <<<test_output>>>
  sigaltstack02    1  TPASS  :  stgaltstack() fails, Invalid Flag value, errno:22
  sigaltstack02    2  TFAIL  :  sigaltstack() returned 0, expected -1, errno:12
  <<<execution_status>>>
  initiation_status="ok"
  duration=0 termination_type=exited termination_id=1 corefile=no
  cutime=0 cstime=0
  <<<test_end>>>

  sigaltstack() should fail and set errno to ENOMEM when the size of alternate stack area is less than MINSIGSTKSZ.
  But here its sigaltstack() is returning 0.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1267062/+subscriptions


References