Bug#886878: fwupd service startup fails.

2018-01-10 Thread Mario.Limonciello

The 4.14 kernel you are running, does it have the various spectre and meltdown 
fixes integrated already?

If so, could you please check with an older kernel without them to see if it's 
also affected?  I'm wondering if those might be causing a problem.


Bug#886878: fwupd service startup fails.

2018-01-10 Thread Abhijit Hoskeri

This is what I see:



Jan 10 13:45:17 ahoskeri-lnx systemd[1]: Starting Firmware update daemon...
Jan 10 13:45:17 ahoskeri-lnx fwupd[23072]: /usr/lib/fwupd/fwupd: error while 
loading shared libraries: libffi.so.6: cannot enable executable stack as shared 
object requires: Operation not permitted


In the systemd service file:



[Service]
Type=dbus
BusName=org.freedesktop.fwupd
ExecStart=/usr/lib/fwupd/fwupd
MemoryDenyWriteExecute=yes
^^^ this is the problem. I need to change this to no to have it work.



the process will start correctly if started outside of systemd - since it would 
not run with that restriction. Also perhaps a newer kernel is required to 
systemd to actually enforce this? I am running linux 4.14 from debian unstable.





Thanks, Abhijit.

On Jan 10, 2018, at 01:40 PM, mario.limoncie...@dell.com wrote:


I couldn't reproduce this myself. As far as I'm aware there is no FFI generated 
code in fwupd.

I think we'll need to see some more logs and/or journal output to figure out 
what's going on for you.

Also filed this upstream, so please feel free to discuss there as well.
https://github.com/hughsie/fwupd/issues/359



-Original Message-
From: Limonciello, Mario
Sent: Wednesday, January 10, 2018 2:47 PM
To: 'Abhijit Hoskeri' <abhijithosk...@icloud.com>; '886...@bugs.debian.org'
<886...@bugs.debian.org>; Debian Bug Tracking System
<sub...@bugs.debian.org>
Subject: RE: Bug#886878: fwupd service startup fails.


Thanks for filing this.


Can you please share the associated journal output when it tries to launch?
Does it hang?


Or does it just not launch at all?



-Original Message-
From: Abhijit Hoskeri [mailto:abhijithosk...@icloud.com]
Sent: Wednesday, January 10, 2018 1:40 PM
To: Debian Bug Tracking System <sub...@bugs.debian.org>
Subject: Bug#886878: fwupd service startup fails.

Package: fwupd
Version: 1.0.3-1
Severity: important

Dear Maintainer,

fwupd startup fails with the default systemd service configuation - the
service seems to require libffi generated code, and the systemd
directive 'MemoryDenyWriteExecute=yes' prevents libffi from executing
generated code.

Disabling this in the systemd service MemoryDenyWriteExecute allows the
service startup to proceed as expected.

Thanks,
Abhijit


-- System Information:
Debian Release: buster/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), 
(500,
'testing'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.14.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages fwupd depends on:
ii libappstream-glib8 0.7.4-1
ii libarchive13 3.2.2-3.1
ii libc6 2.26.9000+20180108.401311cf-0experimental0
ii libcolorhug2 1.3.3-2
ii libefivar1 32-2
ii libelf1 0.170-0.2
ii libfwup1 10-1
ii libfwupd2 1.0.3-1
ii libglib2.0-0 2.54.3-1
ii libgnutls30 3.6.1-1
ii libgpg-error0 1.27-5
ii libgpgme11 1.10.0-1
ii libgudev-1.0-0 232-1
ii libgusb2 0.2.11-1
ii libpolkit-gobject-1-0 0.113-6
ii libsmbios2 2.3.1-2
ii libsoup2.4-1 2.60.2-2
ii libsqlite3-0 3.21.0-1
ii libuuid1 2.30.2-0.1

Versions of packages fwupd recommends:
ii fwupdate 10-1
ii python3 3.6.4-1

fwupd suggests no packages.

-- no debconf information




Bug#886878: fwupd service startup fails.

2018-01-10 Thread Mario.Limonciello
I couldn't reproduce this myself.  As far as I'm aware there is no FFI 
generated code in fwupd.

I think we'll need to see some more logs and/or journal output to figure out 
what's going on for you.

Also filed this upstream, so please feel free to discuss there as well.
https://github.com/hughsie/fwupd/issues/359


> -Original Message-
> From: Limonciello, Mario
> Sent: Wednesday, January 10, 2018 2:47 PM
> To: 'Abhijit Hoskeri' <abhijithosk...@icloud.com>; '886...@bugs.debian.org'
> <886...@bugs.debian.org>; Debian Bug Tracking System
> <sub...@bugs.debian.org>
> Subject: RE: Bug#886878: fwupd service startup fails.
> 
> Thanks for filing this.
> 
> Can you please share the associated journal output when it tries to launch?
> Does it hang?
> 
> Or does it just not launch at all?
> 
> > -Original Message-
> > From: Abhijit Hoskeri [mailto:abhijithosk...@icloud.com]
> > Sent: Wednesday, January 10, 2018 1:40 PM
> > To: Debian Bug Tracking System <sub...@bugs.debian.org>
> > Subject: Bug#886878: fwupd service startup fails.
> >
> > Package: fwupd
> > Version: 1.0.3-1
> > Severity: important
> >
> > Dear Maintainer,
> >
> > fwupd startup fails with the default systemd service configuation - the
> > service seems to require libffi generated code, and the systemd
> > directive 'MemoryDenyWriteExecute=yes' prevents libffi from executing
> > generated code.
> >
> > Disabling this in the systemd service MemoryDenyWriteExecute allows the
> > service startup to proceed as expected.
> >
> > Thanks,
> > Abhijit
> >
> >
> > -- System Information:
> > Debian Release: buster/sid
> >   APT prefers unstable-debug
> >   APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
> > 'unstable'), (500,
> > 'testing'), (1, 'experimental-debug'), (1, 'experimental')
> > Architecture: amd64 (x86_64)
> >
> > Kernel: Linux 4.14.0-1-amd64 (SMP w/4 CPU cores)
> > Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
> > LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
> > Shell: /bin/sh linked to /bin/dash
> > Init: systemd (via /run/systemd/system)
> >
> > Versions of packages fwupd depends on:
> > ii  libappstream-glib8 0.7.4-1
> > ii  libarchive13   3.2.2-3.1
> > ii  libc6  2.26.9000+20180108.401311cf-0experimental0
> > ii  libcolorhug2   1.3.3-2
> > ii  libefivar1 32-2
> > ii  libelf10.170-0.2
> > ii  libfwup1   10-1
> > ii  libfwupd2  1.0.3-1
> > ii  libglib2.0-0   2.54.3-1
> > ii  libgnutls303.6.1-1
> > ii  libgpg-error0  1.27-5
> > ii  libgpgme11 1.10.0-1
> > ii  libgudev-1.0-0 232-1
> > ii  libgusb2   0.2.11-1
> > ii  libpolkit-gobject-1-0  0.113-6
> > ii  libsmbios2 2.3.1-2
> > ii  libsoup2.4-1   2.60.2-2
> > ii  libsqlite3-0   3.21.0-1
> > ii  libuuid1   2.30.2-0.1
> >
> > Versions of packages fwupd recommends:
> > ii  fwupdate  10-1
> > ii  python3   3.6.4-1
> >
> > fwupd suggests no packages.
> >
> > -- no debconf information



Bug#886878: fwupd service startup fails.

2018-01-10 Thread Mario.Limonciello
Thanks for filing this.

Can you please share the associated journal output when it tries to launch?
Does it hang?

Or does it just not launch at all?

> -Original Message-
> From: Abhijit Hoskeri [mailto:abhijithosk...@icloud.com]
> Sent: Wednesday, January 10, 2018 1:40 PM
> To: Debian Bug Tracking System <sub...@bugs.debian.org>
> Subject: Bug#886878: fwupd service startup fails.
> 
> Package: fwupd
> Version: 1.0.3-1
> Severity: important
> 
> Dear Maintainer,
> 
> fwupd startup fails with the default systemd service configuation - the
> service seems to require libffi generated code, and the systemd
> directive 'MemoryDenyWriteExecute=yes' prevents libffi from executing
> generated code.
> 
> Disabling this in the systemd service MemoryDenyWriteExecute allows the
> service startup to proceed as expected.
> 
> Thanks,
> Abhijit
> 
> 
> -- System Information:
> Debian Release: buster/sid
>   APT prefers unstable-debug
>   APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
> 'unstable'), (500,
> 'testing'), (1, 'experimental-debug'), (1, 'experimental')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 4.14.0-1-amd64 (SMP w/4 CPU cores)
> Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
> LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> 
> Versions of packages fwupd depends on:
> ii  libappstream-glib8 0.7.4-1
> ii  libarchive13   3.2.2-3.1
> ii  libc6  2.26.9000+20180108.401311cf-0experimental0
> ii  libcolorhug2   1.3.3-2
> ii  libefivar1 32-2
> ii  libelf10.170-0.2
> ii  libfwup1   10-1
> ii  libfwupd2  1.0.3-1
> ii  libglib2.0-0   2.54.3-1
> ii  libgnutls303.6.1-1
> ii  libgpg-error0  1.27-5
> ii  libgpgme11 1.10.0-1
> ii  libgudev-1.0-0 232-1
> ii  libgusb2   0.2.11-1
> ii  libpolkit-gobject-1-0  0.113-6
> ii  libsmbios2 2.3.1-2
> ii  libsoup2.4-1   2.60.2-2
> ii  libsqlite3-0   3.21.0-1
> ii  libuuid1   2.30.2-0.1
> 
> Versions of packages fwupd recommends:
> ii  fwupdate  10-1
> ii  python3   3.6.4-1
> 
> fwupd suggests no packages.
> 
> -- no debconf information



Bug#886878: fwupd service startup fails.

2018-01-10 Thread Abhijit Hoskeri
Package: fwupd
Version: 1.0.3-1
Severity: important

Dear Maintainer,

fwupd startup fails with the default systemd service configuation - the
service seems to require libffi generated code, and the systemd
directive 'MemoryDenyWriteExecute=yes' prevents libffi from executing
generated code.

Disabling this in the systemd service MemoryDenyWriteExecute allows the
service startup to proceed as expected.

Thanks,
Abhijit


-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 
'unstable'), (500, 'testing'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.14.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages fwupd depends on:
ii  libappstream-glib8 0.7.4-1
ii  libarchive13   3.2.2-3.1
ii  libc6  2.26.9000+20180108.401311cf-0experimental0
ii  libcolorhug2   1.3.3-2
ii  libefivar1 32-2
ii  libelf10.170-0.2
ii  libfwup1   10-1
ii  libfwupd2  1.0.3-1
ii  libglib2.0-0   2.54.3-1
ii  libgnutls303.6.1-1
ii  libgpg-error0  1.27-5
ii  libgpgme11 1.10.0-1
ii  libgudev-1.0-0 232-1
ii  libgusb2   0.2.11-1
ii  libpolkit-gobject-1-0  0.113-6
ii  libsmbios2 2.3.1-2
ii  libsoup2.4-1   2.60.2-2
ii  libsqlite3-0   3.21.0-1
ii  libuuid1   2.30.2-0.1

Versions of packages fwupd recommends:
ii  fwupdate  10-1
ii  python3   3.6.4-1

fwupd suggests no packages.

-- no debconf information