Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 501054

Summary: kernel 3.10.25 with ath9k - NULL pointer dereference in relay_open_buf.part.8
Product: Gentoo Linux Reporter: John Doe <satisfymyautism>
Component: [OLD] Core systemAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description John Doe 2014-02-12 09:56:31 UTC
When I have ath9k driver built-in kernel, I can't reboot or shutdown as it stops at 
kvm: exiting hardware virtualization
and I have to poweroff manually

Also, when I boot, there is mentioned a bug before logging in:

[   11.414001] cfg80211: Calling CRDA to update world regulatory domain

[   11.420455] ACPI Warning: 0x000000000000e040-0x000000000000e05f SystemIO conflicts with Region \SMB0 1 (20130328/utaddress-251)

[   11.420465] ACPI Warning: 0x000000000000e040-0x000000000000e05f SystemIO conflicts with Region \_SB_.PCI0.SBUS.SMBI 2 (20130328/utaddress-251)

[   11.420471] ACPI: If an ACPI driver is available for this device, you should use it instead of the native driver

[   11.436612] microcode: CPU0 sig=0x206a7, pf=0x10, revision=0x1a

[   11.449381] ath: EEPROM regdomain: 0x60

[   11.449385] ath: EEPROM indicates we should expect a direct regpair map

[   11.449390] ath: Country alpha2 being used: 00

[   11.449391] ath: Regpair used: 0x60

[   11.450773] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'

[   11.451179] BUG: unable to handle kernel NULL pointer dereference at 000000000000001d

[   11.453240] IP: [<ffffffff81089306>] relay_open_buf.part.8+0x208/0x26b

[   11.455377] PGD 137773067 PUD 1374d6067 PMD 0 

[   11.457534] Oops: 0000 [#1] SMP 

[   11.459215] Modules linked in: ath9k(+) ath9k_common microcode(+) ath9k_hw ath mac80211 snd_hda_codec_hdmi cfg80211 pcspkr rfkill i2c_i801 snd_hda_codec_realtek thermal snd_hda_intel snd_hda_codec rtc_cmos snd_hwdep acpi_cpufreq snd_pcm mperf snd_page_alloc freq_table snd_timer ac battery snd processor xts gf128mul aes_x86_64 cbc sha256_generic libiscsi scsi_transport_iscsi tg3 libphy ptp pps_core e1000 fuse nfs lockd sunrpc jfs multipath linear raid10 raid456 async_pq async_xor xor async_memcpy async_raid6_recov raid6_pq async_tx raid1 raid0 dm_snapshot dm_crypt dm_mirror dm_region_hash dm_log dm_mod hid_sunplus hid_sony hid_samsung hid_pl hid_petalynx hid_gyration sl811_hcd usbhid xhci_hcd ohci_hcd uhci_hcd usb_storage ehci_pci ehci_hcd usbcore usb_common aic94xx libsas lpfc crc_t10dif qla2xxx

[   11.467630]  megaraid_sas megaraid_mbox megaraid_mm megaraid aacraid sx8 DAC960 cciss 3w_9xxx 3w_xxxx mptsas scsi_transport_sas mptfc scsi_transport_fc scsi_tgt mptspi mptscsih mptbase atp870u dc395x qla1280 imm parport dmx3191d sym53c8xx gdth advansys initio BusLogic arcmsr aic7xxx aic79xx scsi_transport_spi sg pdc_adma sata_inic162x sata_mv ata_piix ahci libahci sata_qstor sata_vsc sata_uli sata_sis sata_sx4 sata_nv sata_via sata_svw sata_sil24 sata_sil sata_promise pata_sl82c105 pata_cs5530 pata_cs5520 pata_via pata_jmicron pata_marvell pata_sis pata_netcell pata_sc1200 pata_pdc202xx_old pata_triflex pata_atiixp pata_opti pata_amd pata_ali pata_it8213 pata_pcmcia pcmcia pcmcia_core pata_ns87415 pata_ns87410 pata_serverworks pata_artop pata_it821x pata_optidma pata_hpt3x2n pata_hpt3x3 pata_hpt37x

[   11.482222]  pata_hpt366 pata_cmd64x pata_efar pata_rz1000 pata_sil680 pata_radisys pata_pdc2027x pata_mpiix libata

[   11.485341] CPU: 3 PID: 15712 Comm: systemd-udevd Not tainted 3.10.25-gentoo #1

[   11.486237] microcode: CPU1 sig=0x206a7, pf=0x10, revision=0x1a

[   11.489523] microcode: CPU2 sig=0x206a7, pf=0x10, revision=0x1a

[   11.493797] Hardware name: ASUSTeK Computer Inc. UX21E/UX21E, BIOS UX21E.213 08/10/2012

[   11.496466] task: ffff88013ea9c090 ti: ffff880137972000 task.ti: ffff880137972000

[   11.499148] RIP: 0010:[<ffffffff81089306>]  [<ffffffff81089306>] relay_open_buf.part.8+0x208/0x26b

[   11.501896] RSP: 0018:ffff8801379739c8  EFLAGS: 00010286

[   11.504633] RAX: ffffffffffffffed RBX: ffff88013e9d2280 RCX: ffff88013e9d2280

[   11.507733] RDX: 0000000000000000 RSI: ffffffffffffffed RDI: ffff88013e8006c0

[   11.510544] RBP: ffff880137973a08 R08: ffff880136ed6940 R09: 00000000fffffffb

[   11.513312] R10: 0000000036840000 R11: 0000000000000000 R12: ffff880136ed6800

[   11.516123] R13: 0000000000000040 R14: 0000000000000000 R15: 0000000000000040

[   11.518916] FS:  00007f5c281b7780(0000) GS:ffff88013f460000(0000) knlGS:0000000000000000

[   11.521748] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033

[   11.524592] CR2: 000000000000001d CR3: 0000000137772000 CR4: 00000000000407e0

[   11.527484] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000

[   11.530356] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400

[   11.533202] Stack:

[   11.536028]  000000000000003f ffff880136a78ff8 0000000000000400 ffff880136ed6800

[   11.538953]  0000000000000000 0000000000040000 0000000000000400 ffffffffa0a59249

[   11.541880]  ffff880137973a58 ffffffff8108963c 0000000000000000 ffffffffffffffed

[   11.544824] Call Trace:

[   11.546498] cfg80211: World regulatory domain updated:

[   11.546500] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)

[   11.546503] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

[   11.546506] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

[   11.546508] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)

[   11.546511] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

[   11.546513] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

[   11.568767]  [<ffffffff8108963c>] relay_open+0x15d/0x234

[   11.571765]  [<ffffffffa0a55758>] ath9k_init_debug+0x39/0x49 [ath9k]

[   11.574765]  [<ffffffffa0a49e4b>] ath9k_init_device+0x722/0x8a7 [ath9k]

[   11.577759]  [<ffffffff810836bd>] ? request_threaded_irq+0xe0/0x12d

[   11.580726]  [<ffffffffa0a54298>] ath_pci_probe+0x210/0x2ae [ath9k]

[   11.583683]  [<ffffffff813ffd51>] ? __pm_runtime_resume+0x4b/0x59

[   11.586605]  [<ffffffff813198f3>] pci_device_probe+0x6b/0xb1

[   11.589502]  [<ffffffff813f754d>] ? driver_probe_device+0x1c6/0x1c6

[   11.592406]  [<ffffffff813f7421>] driver_probe_device+0x9a/0x1c6

[   11.595206]  [<ffffffff813f75a7>] __driver_attach+0x5a/0x7e

[   11.597908]  [<ffffffff813f5b5c>] bus_for_each_dev+0x54/0x86

[   11.600507]  [<ffffffff813f6fce>] driver_attach+0x19/0x1b

[   11.603010]  [<ffffffff813f6bc7>] bus_add_driver+0xe3/0x207

[   11.605413]  [<ffffffff813f7b2f>] driver_register+0x8e/0x114

[   11.607714]  [<ffffffff813199fe>] __pci_register_driver+0x46/0x48

[   11.609921]  [<ffffffffa0a5444e>] ath_pci_init+0x1e/0x20 [ath9k]

[   11.612032]  [<ffffffffa0a5d028>] ath9k_init+0x28/0x5a [ath9k]

[   11.614047]  [<ffffffffa0a5d000>] ? 0xffffffffa0a5cfff

[   11.615942]  [<ffffffff81000263>] do_one_initcall+0x7b/0x10c

[   11.617744]  [<ffffffff8106c09f>] load_module+0x1ab5/0x1d90

[   11.619520]  [<ffffffff81068bb4>] ? sys_getegid16+0x44/0x44

[   11.621318]  [<ffffffff81069337>] ? copy_module_from_fd+0xbc/0xd4

[   11.623093]  [<ffffffff8106c46b>] SyS_finit_module+0x56/0x6c

[   11.624821]  [<ffffffff81502892>] system_call_fastpath+0x16/0x1b

[   11.626521] Code: 48 89 df e8 0a 5d 03 00 eb 61 44 89 f2 48 89 de 4c 89 e7 e8 61 f1 ff ff 48 85 c0 74 46 48 89 83 80 00 00 00 48 8b 93 b8 00 00 00 <48> 8b 40 30 48 89 50 48 44 89 b3 c0 00 00 00 be 01 00 00 00 48 

[   11.630568] RIP  [<ffffffff81089306>] relay_open_buf.part.8+0x208/0x26b

[   11.632474]  RSP <ffff8801379739c8>

[   11.634344] CR2: 000000000000001d

[   11.636189] microcode: CPU3 sig=0x206a7, pf=0x10, revision=0x1a

[   11.638076] ---[ end trace 10af9aa54b5bb1c3 ]---


emerge --info

Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.10.25-gentoo x86_64)
=================================================================
System uname: Linux-3.10.25-gentoo-x86_64-Intel-R-_Core-TM-_i3-2367M_CPU_@_1.40GHz-with-gentoo-2.2
KiB Mem:     3954720 total,   1086568 free
KiB Swap:     524284 total,    524284 free
Timestamp of tree: Sat, 08 Feb 2014 14:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo java
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/java"
USE="X acl acpi alsa amd64 berkdb bluetooth bzip2 cli cracklib crypt cxx dbus dri fortran gdbm gtk iconv ipv6 jpeg lock mmx modules multilib ncurses nls nptl openmp pam pcre readline session sse sse2 ssl startup-notification tcpd thunar udev unicode 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" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-04-02 16:09:44 UTC
Thank you for filing this bug. Does this still happen on more recent kernels?
Comment 2 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2014-04-02 16:12:52 UTC
(In reply to John Doe from comment #0)
> kvm: exiting hardware virtualization

As a side note, this usually has to do with something else than what you brought forward in this bug; a quick internet search reveals that this is often the result of one or another particular device mount point that is still mounted.

Start your kernel with these additional parameters:

    debug ignore_loglevel log_buf_len=10M

Maybe you can get more details that way instead of just that kvm message.