Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #69172

Bug#980381: Segmentation fault on system call vectored (linux ppc64 on POWER9)

From Tulio Magno Quites Machado Filho <tuliom@ascii.art.br>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#980381: Segmentation fault on system call vectored (linux ppc64 on POWER9)
Date 2021-01-18 16:00 +0100
Message-ID <ByEaC-5RE-11@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


Package: src:linux
Version: 5.10.4-1
Severity: normal
X-Debbugs-Cc: none

Dear Maintainer,

Linux 5.9 started to support a new system call ABI called system call vectored
(using POWER9 instruction scv).
glibc 2.33 (to be released) includes support for this instruction.

However, there is an issue in upstream kernel that may cause userspace programs
using this instruction to segfault.

In order to reproduce the issue, one needs to call scv thousands of times.
An easy way to reproduce this issue is to run glibc make check, i.e. on a
POWER9:

    git clone git://sourceware.org/git/glibc.git
    mkdir build
    cd build
    ../glibc/configure --prefix=/usr --with-cpu=power9
    make -j$(nproc)
    make -j$(nproc) check

A couple of tests will segfault.  The list changes between executions.

I was able to reproduce this issue only on POWER9 revision 2.2 (pvr 004e 1202).

I reproduced this also on:
Package: linux-image-5.9.0-5-powerpc64
Version: 5.9.15-1

Although I was able to reproduce this issue only on powerpc64, this issue
also affects ppc64el.

A fix for this issue has been proposed upstream at
https://patchwork.ozlabs.org/project/linuxppc-dev/patch/20210111062408.287092-1-npiggin@gmail.com/

Notice the problem disappears if entry_flush and rfi_flush are disabled, but I
don't think that's recommended.

-- Package-specific info:
** Version:
Linux version 5.10.0-1-powerpc64 (debian-kernel@lists.debian.org) (gcc-10 (Debian 10.2.1-3) 10.2.1 20201224, GNU ld (GNU Binutils for Debian) 2.35.1) #1 SMP Debian 5.10.4-1 (2020-12-31)

** Command line:
BOOT_IMAGE=/boot/vmlinux-5.10.0-1-powerpc64 root=UUID=47206b1a-d5ae-4032-8b3e-e70796cd06c6 ro disable_radix quiet

** Tainted: E (8192)
 * unsigned module was loaded

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: ppc64

Kernel: Linux 5.10.0-1-powerpc64 (SMP w/16 CPU threads)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

-- 
Tulio Magno

Back to linux.debian.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Bug#980381: Segmentation fault on system call vectored (linux ppc64 on POWER9) Tulio Magno Quites Machado Filho <tuliom@ascii.art.br> - 2021-01-18 16:00 +0100
  Bug#980381: Acknowledgement (Segmentation fault on system call vectored (linux ppc64 on POWER9)) Tulio Magno Quites Machado Filho <tuliom@ascii.art.br> - 2021-03-08 16:30 +0100
  Bug#980381: marked as done (Segmentation fault on system call  vectored (linux ppc64 on POWER9)) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2021-03-08 16:40 +0100

csiph-web