← Back to team overview

kernel-packages team mailing list archive

[Bug 1267062] Re: sigaltstack system call unable to send proper return code (error12)

 

Ok I have tried this out on postal02, configured LTP as below:

    ./configure --build powerpc64le-linux-gnu --target powerpc64le-
linux-gnu

The test fails as indicated.  I have fiddled with the parameters and
using 2048-1 as the limit triggers the test correctly, though
MINSIGSTKSZ is 4096.  The limit seems to correspond to the limit as
expressed by the kernel:

    arch/powerpc/include/uapi/asm/signal.h:#define MINSIGSTKSZ      2048

This accounts for the test failure.  It is arguable that the MINSIGSTKSZ
should match the kernel limit exactly but as the limit is greater than
the kernel limit it is equally arguable it is valid minimum.

That said the eglibc is offering this constant:

    +/* Minimum stack size for a signal handler.  */
    +#define MINSIGSTKSZ    4096

This is part of the ppc64el delta for this package.

** Also affects: eglibc (Ubuntu)
   Importance: Undecided
       Status: New

-- 
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:
  sigaltstack system call unable to send proper return code (error12)

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

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