Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 578870 - >=sys-kernel/hardened-sources-4.3.3-r4 - kernel panic on wakeup from suspend
Summary: >=sys-kernel/hardened-sources-4.3.3-r4 - kernel panic on wakeup from suspend
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-02 17:54 UTC by jeremiah
Modified: 2016-10-01 14:17 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jeremiah 2016-04-02 17:54:54 UTC
Kernel panics (assumed to panic due to non-responsiveness and blinking caps-lock) upon wakeup from suspend-to-RAM

Known good (non-panicking) kernel(s):
hardened-sources-4.1.7-r1

Known bad (panicking) kernel(s):
hardened-sources-4.4.6
hardened-sources-4.3.3-r4

The kernel .config changed between 4.1.7-r1 and 4.4.6. 4.3.3-r4 used the 4.4.6 .config backported with "make silentoldconfig".

I am led to believe the likely sources are: a regression in the kernel, a regression in the hardened patchset, and/or a bug or regression dependent upon a particular .config to manifest.

I'm currently backporting the 4.4.6 .config to 4.1.7-r1 to test the last possibility.

...I assume a kernel panic counts as a crash or hang which is why I'm initially marking it as Critical.

Reproducible: Always

Steps to Reproduce:
1. Suspend to RAM (tested with "systemctl suspend" from console and multiple Desktop Environments and the native suspend mechanisms of multiple Desktop Environments; auto-suspend not tested)
2. initiate wakeup (tested using keyboard events)
Actual Results:  
nön-responsiv box und blinkenlichten früm die kapslök

Expected Results:  
Die boxen tu wäkup und displäyen die skreenlökker ur die DispläyenManagur

HP Envy laptop w/ touchscreen
Haswell quad-core i7-4702MQ
Nvidia GT 740M (headless)

=================================================================
=================================================================

emerge --info

Portage 2.2.28 (python 3.4.3-final-0, hardened/linux/amd64/selinux, gcc-5.3.0, glibc-2.22-r3, 4.4.6-hardened x86_64)                                                                                          
=================================================================                                      
System uname: Linux-4.4.6-hardened-x86_64-Intel-R-_Core-TM-_i7-4702MQ_CPU_@_2.20GHz-with-gentoo-2.2    
KiB Mem:    16360508 total,  12845752 free                                                             
KiB Swap:   16777212 total,  16777212 free                                                             
Timestamp of repository gentoo: Sat, 02 Apr 2016 00:45:01 +0000                                        
sh bash 4.3_p42-r2                                                                                     
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1                                                                  
app-shells/bash:          4.3_p42-r2::gentoo                                                           
dev-java/java-config:     2.2.0-r3::gentoo                                                             
dev-lang/perl:            5.22.1::gentoo                                                               
dev-lang/python:          2.7.11-r2::gentoo, 3.3.5-r7::gentoo, 3.4.3-r7::gentoo, 3.5.1-r2::gentoo      
dev-util/cmake:           3.5.1::gentoo                                                                
dev-util/pkgconfig:       0.29.1::gentoo                                                               
sys-apps/baselayout:      2.2::gentoo                                                                  
sys-apps/openrc:          0.20.5::gentoo                                                               
sys-apps/sandbox:         2.10-r2::gentoo                                                              
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo                                                
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo     
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r3::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: webrsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

bumblebee
    location: /var/lib/layman/bumblebee
    sync-type: laymansync
    sync-uri: git://github.com/Bumblebee-Project/bumblebee-gentoo
    masters: gentoo
    priority: 50

java
    location: /var/lib/layman/java
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/java.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: git://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

tox-overlay
    location: /var/lib/layman/tox-overlay
    sync-type: laymansync
    sync-uri: git://github.com/Tox/gentoo-overlay-tox.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core-avx2 -mpopcnt -mlzcnt"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.3/conf /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=core-avx2 -mpopcnt -mlzcnt"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --jobs=5 --load-average=8"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.mirrors.tds.net/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9 -l8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl acpi alsa amd64 audit avx avx2 berkdb bitcoin_policy_spamfilter branding bs2b bzip2 cg cli cracklib crypt cuda cups cxx dane dbus dri eds egl fma3 fontconfig gdbm glamor gnome gnome-keyring gnome-online-accounts gstreamer gtkstyle hardened harfbuzz iconv infinality inotify ipv6 joystick justify kde lm_sensors mmx mmxext modules multilib nautilus ncurses networkmanager nls nptl nsplugin numa offensive ogg open_perms opengl openmp pam pax_kernel pcre peer_perms pie popcnt pulseaudio qt3support qt5 readline seccomp selinux semantic-desktop session smp spell sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 systemd tcpd threads tslib ubac udev unicode upnp-av urandom vaapi vdpau vorbis wayland wayland-compositor webp xattr xtpax xvmc zeitgeist zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 f16c" CURL_SSL="gnutls" DRACUT_MODULES="systemd" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics tslib joystick libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python3_4 python3_3 python2_7" RUBY_TARGETS="ruby20 ruby21 ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="nouveau intel i965" XFCE_PLUGINS="battery brightness clock multiload-nandhp power trash" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="3.4 3.3 2.7"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
=================================================================
=================================================================

While my profile is hardened/linux/amd64/selinux, the systemd blockers are overridden.
4.4.6 was tested with multiple versions of systemd tested with/without OpenRC installed (systemd used as init throughout) and with/without laptop-mode-tools installed: no change.
4.4.6 was also tested by suspending from both a sysadm_r and non-fully TPE restricted account and a user_r and fully TPE restricted account: no change.
Comment 1 Anthony Basile gentoo-dev 2016-04-02 22:31:14 UTC
Did you test against vanilla-sources with comparable .config's?
Comment 2 jeremiah 2016-04-03 17:26:14 UTC
It's the likely the .config: 4.1.7-r1 gets the panic with the backported 4.4.6 .config.

@Anthony Basile: Not yet, I'll try gentoo-sources also.
Comment 3 Anthony Basile gentoo-dev 2016-07-21 16:40:39 UTC
(In reply to jeremiah from comment #2)
> It's the likely the .config: 4.1.7-r1 gets the panic with the backported
> 4.4.6 .config.
> 
> @Anthony Basile: Not yet, I'll try gentoo-sources also.

this is getting old now and we've moved on.  i don't want to just close this obsolete. can you let me know if you tested further.