Devuan bug report logs - #407
eudev preinst fails to detect availability of requisite kernel features

Package: eudev; Reported by: KORN Andras <korn-debbugs@elan.rulez.org>; dated Wed, 11 Mar 2020 17:33:01 UTC; Maintainer for eudev is Devuan Dev Team <devuan-dev@lists.dyne.org>.

Message received at submit@bugs.devuan.org:


Received: (at submit) by bugs.devuan.org; 11 Mar 2020 17:30:04 +0000
Return-Path: <korn-submit=bugs.devuan.org@elan.rulez.org>
Delivered-To: devuanbugs@dyne.org
Received: from tupac3.dyne.org [195.169.149.119]
	by doc.devuan.org with IMAP (fetchmail-6.4.0.beta4)
	for <debbugs@localhost> (single-drop); Wed, 11 Mar 2020 17:30:03 +0000 (UTC)
Received: from flamant.cae-engineering.hu (flamant.cae-engineering.hu [62.210.203.57])
	by vm6.ganeti.dyne.org (Postfix) with ESMTP id E678CF60BA1
	for <submit@bugs.devuan.org>; Wed, 11 Mar 2020 18:24:10 +0100 (CET)
Received: (qmail 63823 invoked from network); 11 Mar 2020 18:24:10 +0100
Received: from flamant.amavis.cae-engineering.hu (HELO localhost) (172.18.30.131)
  by flamant.qmail.cae-engineering.hu with ESMTP; 11 Mar 2020 18:24:10 +0100
X-Virus-Scanned: by amavisd-new-2.7.1 (20120429) at cae-engineering.hu
Received: from unknown ([172.18.30.1])
	by localhost (flamant.amavis.cae-engineering.hu [172.18.30.131]) (amavisd-new, port 1628)
	id WPcqa6Fs8IKz for <submit@bugs.devuan.org>;
	Wed, 11 Mar 2020 18:24:04 +0100 (CET)
Received: from akorn-home.user.vpn.cae-engineering.hu (HELO hellgate.av.hu) (172.18.28.253)
  by flamant.cae-engineering.hu with ESMTP; 11 Mar 2020 18:24:03 +0100
Received: (qmail 12816 invoked by uid 1000); 11 Mar 2020 18:24:03 +0100
Date: Wed, 11 Mar 2020 18:24:03 +0100
From: KORN Andras <korn-debbugs@elan.rulez.org>
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Subject: eudev preinst fails to detect availability of requisite kernel
 features
Message-ID: <20200311172403.oeprkzo6rz3volce@hellgate>
X-Reportbug-Version: 7.5.3+devuan3
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled
	version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org

Package: eudev
Version: 3.2.9-7
Severity: normal

Hi,

this code:

  if [ -e /proc/kallsyms ]; then

      local needed_symbols='inotify_init signalfd accept4 open_by_handle_at timerfd_create epoll_create'
      for symbol in $needed_symbols; do
      if ! egrep -q "^[a-fA-F0-9]+ T \.?sys_${symbol}$" /proc/kallsyms; then
          cat <<END
Since release 198, udev requires support for the following features in
the running kernel:

- inotify(2)            (CONFIG_INOTIFY_USER)
- signalfd(2)           (CONFIG_SIGNALFD)
- accept4(2)
- open_by_handle_at(2)  (CONFIG_FHANDLE)
- timerfd_create(2)     (CONFIG_TIMERFD)
- epoll_create(2)       (CONFIG_EPOLL)
END
          exit 1
      fi
      done
  fi

thought that my kernel was missing one of the required features, but in fact I have all of them:

ffffffffab1bd402 T __ia32_sys_inotify_init
ffffffffab1bd402 T __x64_sys_inotify_init
ffffffffab1c1554 T __x64_sys_signalfd
ffffffffab1c1562 T __ia32_sys_signalfd
ffffffffab1c15fb T __ia32_compat_sys_signalfd
ffffffffab1c160d T __x32_compat_sys_signalfd
ffffffffab473fc5 T __sys_accept4
ffffffffab474170 T __x64_sys_accept4
ffffffffab474188 T __ia32_sys_accept4
ffffffffab1d5118 T __ia32_sys_open_by_handle_at
ffffffffab1d512a T __ia32_compat_sys_open_by_handle_at
ffffffffab1d513a T __x32_compat_sys_open_by_handle_at
ffffffffab1d514b T __x64_sys_open_by_handle_at
ffffffffab1c1c84 T __x64_sys_timerfd_create
ffffffffab1c1c91 T __ia32_sys_timerfd_create
ffffffffab1c029d T __ia32_sys_epoll_create
ffffffffab1c02b4 T __x64_sys_epoll_create

The regex is wrong; it should probably be

      if ! egrep -q "^[a-fA-F0-9]+ T .*sys_${symbol}$" /proc/kallsyms; then

This is with a self-built 4.19.23 kernel, fwiw.

-- Package-specific info:

-- System Information:
Init: runit (via /run/runit.stopit)

Best regards,

AndrĂ¡s

Ps. Please Cc me explicitly if you reply.

-- 
         Some people are like slinkies. Not really good for anything,
     yet you can't help but smile when you see one pushed down the stairs.

Acknowledgement sent to KORN Andras <korn-debbugs@elan.rulez.org>:
New bug report received and forwarded. Copy sent to Devuan Dev Team <devuan-dev@lists.dyne.org>. Full text available.
Report forwarded to devuan-bugs@lists.dyne.org, Devuan Dev Team <devuan-dev@lists.dyne.org>:
bug#407; Package eudev. Full text available.

Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Sat, 4 Jul 2020 02:39:02 UTC