Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] vgaswitcheroo vs grsecurity
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Tractor Girl
Apprentice
Apprentice


Joined: 16 May 2013
Posts: 159

PostPosted: Sat Jun 07, 2014 5:00 pm    Post subject: [solved] vgaswitcheroo vs grsecurity Reply with quote

I'm trying to setup vgaswitcheroo to disable radeon videocard in my laptop. It definitively can be done on this machine, because I did it before with Debian (and I vaguely recall that I did it also on gentoo few months back). Anyway now I have a problem with it.
Probably I forget about something, but there's no vgaswitcheroo under /sys/kernel/debug in the firstplace.


zgrep -i switcheroo /proc/config.gz
Code:
CONFIG_VGA_SWITCHEROO=y


lspci | grep -i vga
Code:
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Whistler [Radeon HD 6630M/6650M/6750M/7670M/7690M]


mount | column -t
Code:
rootfs                   on  /                         type  rootfs       (rw)
proc                     on  /proc                     type  proc         (rw,nosuid,nodev,noexec,relatime)
udev                     on  /dev                      type  devtmpfs     (rw,nosuid,relatime,size=10240k,nr_inodes=1007792,mode=755)
devpts                   on  /dev/pts                  type  devpts       (rw,relatime,gid=5,mode=620)
sysfs                    on  /sys                      type  sysfs        (rw,nosuid,nodev,noexec,relatime)
/dev/mapper/gentoo-root  on  /                         type  ext4         (rw,noatime,data=ordered)
tmpfs                    on  /run                      type  tmpfs        (rw,nosuid,nodev,relatime,size=806568k,mode=755)
shm                      on  /dev/shm                  type  tmpfs        (rw,nosuid,nodev,noexec,relatime)
debugfs                  on  /sys/kernel/debug         type  debugfs      (rw,relatime)
cgroup_root              on  /sys/fs/cgroup            type  tmpfs        (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
fusectl                  on  /sys/fs/fuse/connections  type  fusectl      (rw,nosuid,nodev,noexec,relatime)
openrc                   on  /sys/fs/cgroup/openrc     type  cgroup       (rw,nosuid,nodev,noexec,relatime,release_agent=/lib64/rc/sh/cgroup-release-agent.sh,name=openrc)
cpu                      on  /sys/fs/cgroup/cpu        type  cgroup       (rw,nosuid,nodev,noexec,relatime,cpu)
binfmt_misc              on  /proc/sys/fs/binfmt_misc  type  binfmt_misc  (rw,nodev,noexec,nosuid)


ls -1F /sys/kernel/debug

Code:
acpi/
bdi/
dell_laptop/
dma_buf/
dri/
extfrag/
hid/
ieee80211/
kvm/
mce/
pkg_temp_thermal/
pktcdvd/
sleep_time
suspend_stats
usb/
wakeup_sources
x86/


eix radeon-ucode
Code:
[I] x11-drivers/radeon-ucode
     Available versions:  20140204 ~20140430
     Installed versions:  20140204(02:29:39 02.06.2014)
     Homepage:            http://people.freedesktop.org/~agd5f/radeon_ucode/
     Description:         IRQ microcode for r6xx/r7xx/Evergreen/N.Islands/S.Islands Radeon GPUs and APUs


lsmod

Code:
Module                  Size  Used by
i915                  777108  2
snd_hda_codec_hdmi     37723  1
radeon               1349396  1
ttm                    79755  1 radeon
snd_hda_codec_idt      49814  1
iwlwifi                88251  0
snd_hda_intel          34215  1
snd_hda_codec         159762  3 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_intel
snd_hwdep               8418  1 snd_hda_codec
snd_pcm               108457  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc          8918  2 snd_pcm,snd_hda_intel
snd_timer              26134  1 snd_pcm
snd                    82743  9 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_idt,snd_pcm,snd_hda_codec,snd_hda_intel
x86_pkg_temp_thermal     5385  0
i2c_algo_bit            6289  2 i915,radeon
drm_kms_helper         38365  2 i915,radeon
drm                   320845  6 ttm,i915,drm_kms_helper,radeon
fuse                   94676  1


Full kernel config:
http://bpaste.net/show/316715/


Last edited by Tractor Girl on Mon Jun 30, 2014 6:10 pm; edited 1 time in total
Back to top
View user's profile Send private message
Tractor Girl
Apprentice
Apprentice


Joined: 16 May 2013
Posts: 159

PostPosted: Mon Jun 16, 2014 4:18 pm    Post subject: Reply with quote

This problem (no vgaswitchroo in /sys/kernel/debug) is related to hardened kernels.
On gentoo-sources and vanilla-sources everything works fine :?

Here's the diff of gentoo-sources and hardened-sources configs:
Quote:
--- gen.conf 2014-06-15 19:11:42.103383774 +0200
+++ hard.conf 2014-06-15 19:12:00.566717906 +0200
@@ -1,19 +1,7 @@
#
# Automatically generated file; DO NOT EDIT.
-# Linux/x86 3.14.6-gentoo Kernel Configuration
+# Linux/x86 3.14.6-hardened Kernel Configuration
#
-
-#
-# Gentoo Linux
-#
-CONFIG_GENTOO_LINUX=y
-CONFIG_GENTOO_LINUX_UDEV=y
-
-#
-# Support for init systems, system and service managers
-#
-CONFIG_GENTOO_LINUX_INIT_SCRIPT=y
-# CONFIG_GENTOO_LINUX_INIT_SYSTEMD is not set
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
@@ -330,6 +318,7 @@
# CONFIG_GENERIC_CPU is not set
CONFIG_X86_INTERNODE_CACHE_SHIFT=6
CONFIG_X86_L1_CACHE_SHIFT=6
+CONFIG_X86_ALIGNMENT_16=y
CONFIG_X86_INTEL_USERCOPY=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_X86_P6_NOP=y
@@ -2203,7 +2192,6 @@
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
-# CONFIG_FB_CON_DECOR is not set
CONFIG_LOGO=y
# CONFIG_LOGO_LINUX_MONO is not set
# CONFIG_LOGO_LINUX_VGA16 is not set
@@ -2882,7 +2870,7 @@
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_PROC_SYSCTL=y
-CONFIG_PROC_PAGE_MONITOR=y
+# CONFIG_PROC_PAGE_MONITOR is not set
CONFIG_SYSFS=y
CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
@@ -3111,8 +3099,6 @@
CONFIG_EARLY_PRINTK=y
# CONFIG_EARLY_PRINTK_DBGP is not set
# CONFIG_X86_PTDUMP is not set
-# CONFIG_DEBUG_RODATA is not set
-# CONFIG_DEBUG_SET_MODULE_RONX is not set

# CONFIG_DEBUG_NX_TEST is not set
CONFIG_DOUBLEFAULT=y
# CONFIG_DEBUG_TLBFLUSH is not set
@@ -3137,12 +3123,16 @@
#
# Security options
#
+
+#
+# Grsecurity
+#
+CONFIG_TASK_SIZE_MAX_SHIFT=47
+# CONFIG_GRKERNSEC is not set

# CONFIG_KEYS is not set
# CONFIG_SECURITY_DMESG_RESTRICT is not set
# CONFIG_SECURITY is not set
CONFIG_SECURITYFS=y
-# CONFIG_DEFAULT_SECURITY_SELINUX is not set
-# CONFIG_DEFAULT_SECURITY_APPARMOR is not set

CONFIG_DEFAULT_SECURITY_DAC=y
CONFIG_DEFAULT_SECURITY=""
CONFIG_XOR_BLOCKS=y


Apparently problem is caused by grsecurity patch. Unfortunatelly not by any of its options, which can be set 'on' or 'off' in menuconfig.
I patched (by hand) vanilla kernel-3.14.6 with grsecurity patch, but I disabled Grsecurity completly in menuconfig - and problem still occurs.

I wanted to try older hardened-sources which use stable grsecurity patch , namly 3.2.60. But when I boot there's this error related to disk encryption (it occurs after password was typed in):
http://oi61.tinypic.com/23jpdo6.jpg
Back to top
View user's profile Send private message
Tractor Girl
Apprentice
Apprentice


Joined: 16 May 2013
Posts: 159

PostPosted: Tue Jun 17, 2014 3:19 pm    Post subject: Reply with quote

I compared boot logs of vanilla-3.14.6 (on which vgaswitcheroo is present in /sys/kernel/debug) and vanilla-3.14.6-patched-with-grsecurity (on which vgaswitcheroo is missing).
Interesting part is here:
Quote:
@@ -703,7 +711,6 @@
[drm] Please upgrade your BIOS to fix this.
fbcon: inteldrmfb (fb0) is primary device
[drm] radeon kernel modesetting enabled.
-VGA switcheroo: detected switching method \_SB_.PCI0.GFX0.ATPX handle
Console: switching to colour frame buffer device 170x48
i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
i915 0000:00:02.0: registered panic notifier
@@ -718,17 +725,15 @@
[drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
[drm] initializing kernel modesetting (TURKS 0x1002:0x6741 0x1028:0x04CD).
[drm] register mmio base: 0xF7B20000
-modprobe (3132) used greatest stack depth: 3576 bytes left
[drm] register mmio size: 131072
-vga_switcheroo: enabled
-ATPX version 1, functions 0x00000033
+modprobe (3231) used greatest stack depth: 11880 bytes left


Complete .diff:
Quote:
--- 3.14.6-vanilla.log 2014-06-17 16:50:04.180026480 +0200
+++ 3.14.6-vanilla-patched.log 2014-06-17 16:50:23.160027302 +0200
@@ -1,12 +1,12 @@
-gentoo kernel: Kernel logging (proc) stopped.
-gentoo kernel: Kernel log daemon terminating.
-gentoo kernel: klogd 1.5.0, log source = /proc/kmsg started.
-gentoo kernel: Inspecting /usr/src/linux/System.map
-gentoo kernel: Cannot find map file.
-gentoo kernel: Loaded 69456 symbols from 19 modules.
+(proc) stopped.
+on terminating.
+g source = /proc/kmsg started.
+/src/linux/System.map
+ file.
+mbols from 19 modules.
Initializing cgroup subsys cpu
-Linux version 3.14.6 (root@gentoo) (gcc version 4.7.3 (Gentoo Hardened 4.7.3-r1 p1.4, pie-0.5.5) ) #1 SMP PREEMPT Mon Jun 16 21:00:32 CEST 2014
-Command line: BOOT_IMAGE=/vmlinuz-3.14.6-vanilla crypt_root=/dev/sda6 root=/dev/mapper/gentoo-root ro quiet dolvm docrypt
+Linux version 3.14.6-grsec (root@gentoo) (gcc version 4.7.3 (Gentoo Hardened 4.7.3-r1 p1.4, pie-0.5.5) ) #2 SMP PREEMPT Mon Jun 16 21:31:07 CEST 2014
+Command line: BOOT_IMAGE=/vmlinuz-3.14.6-vanilla-patched crypt_root=/dev/sda6 root=/dev/mapper/gentoo-root ro quiet dolvm docrypt
e820: BIOS-provided physical RAM map:
BIOS-e820: [mem 0x0000000000000000-0x000000000009d3ff] usable
BIOS-e820: [mem 0x000000000009d400-0x000000000009ffff] reserved
@@ -65,12 +65,10 @@
reserving inaccessible SNB gfx pages
init_memory_mapping: [mem 0x00000000-0x000fffff]
[mem 0x00000000-0x000fffff] page 4k
-BRK [0x01c86000, 0x01c86fff] PGTABLE
-BRK [0x01c87000, 0x01c87fff] PGTABLE
-BRK [0x01c88000, 0x01c88fff] PGTABLE
+BRK [0x01cf3000, 0x01cf3fff] PGTABLE
init_memory_mapping: [mem 0x22fc00000-0x22fdfffff]
[mem 0x22fc00000-0x22fdfffff] page 2M
-BRK [0x01c89000, 0x01c89fff] PGTABLE
+BRK [0x01cf4000, 0x01cf4fff] PGTABLE
init_memory_mapping: [mem 0x22c000000-0x22fbfffff]
[mem 0x22c000000-0x22fbfffff] page 2M
init_memory_mapping: [mem 0x200000000-0x22bffffff]
@@ -83,10 +81,12 @@
init_memory_mapping: [mem 0x40200000-0xca4e4fff]
[mem 0x40200000-0xca3fffff] page 2M
[mem 0xca400000-0xca4e4fff] page 4k
-BRK [0x01c8a000, 0x01c8afff] PGTABLE
-BRK [0x01c8b000, 0x01c8bfff] PGTABLE
+BRK [0x01cf5000, 0x01cf5fff] PGTABLE
+BRK [0x01cf6000, 0x01cf6fff] PGTABLE
+BRK [0x01cf7000, 0x01cf7fff] PGTABLE
init_memory_mapping: [mem 0xca528000-0xca792fff]
[mem 0xca528000-0xca792fff] page 4k
+BRK [0x01cf8000, 0x01cf8fff] PGTABLE
init_memory_mapping: [mem 0xca967000-0xcaba6fff]
[mem 0xca967000-0xcaba6fff] page 4k
init_memory_mapping: [mem 0x100000000-0x1ffffffff]
@@ -149,18 +149,18 @@
nr_irqs_gsi: 40
e820: [mem 0xcfa00000-0xf7ffffff] available for PCI devices
setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:4 nr_node_ids:1
-PERCPU: Embedded 26 pages/cpu @ffff88022fa00000 s75776 r8192 d22528 u524288
-pcpu-alloc: s75776 r8192 d22528 u524288 alloc=1*2097152
+PERCPU: Embedded 23 pages/cpu @ffff88022fa00000 s62784 r8192 d23232 u524288
+pcpu-alloc: s62784 r8192 d23232 u524288 alloc=1*2097152
pcpu-alloc: [0] 0 1 2 3
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 2040833
-Kernel command line: BOOT_IMAGE=/vmlinuz-3.14.6-vanilla crypt_root=/dev/sda6 root=/dev/mapper/gentoo-root ro quiet dolvm docrypt
+Kernel command line: BOOT_IMAGE=/vmlinuz-3.14.6-vanilla-patched crypt_root=/dev/sda6 root=/dev/mapper/gentoo-root ro quiet dolvm docrypt
PID hash table entries: 4096 (order: 3, 32768 bytes)
Dentry cache hash table entries: 1048576 (order: 11, 8388608 bytes)
Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes)
xsave: enabled xstate_bv 0x7, cntxt size 0x340
Checking aperture...
No AGP bridge found
-Memory: 8067820K/8293552K available (7984K kernel code, 504K rwdata, 2812K rodata, 816K init, 656K bss, 225732K reserved)
+Memory: 8067456K/8293552K available (8142K kernel code, 562K rwdata, 2948K rodata, 888K init, 648K bss, 226096K reserved)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
Preemptible hierarchical RCU implementation.
^ICONFIG_RCU_FANOUT set to non-default value of 32
@@ -171,9 +171,9 @@
console [tty0] enabled
hpet clockevent registered
tsc: Fast TSC calibration using PIT
-tsc: Detected 2394.586 MHz processor
-Calibrating delay loop (skipped), value calculated using timer frequency.. 4791.72 BogoMIPS (lpj=7981953)
-pid_max: default: 32768 minimum: 301
+tsc: Detected 2394.784 MHz processor
+Calibrating delay loop (skipped), value calculated using timer frequency.. 4791.13 BogoMIPS (lpj=7982613)
+pid_max: default: 32768 minimum: 501
ACPI: Core revision 20131218
ACPI: All ACPI Tables successfully acquired
Mount-cache hash table entries: 16384 (order: 5, 131072 bytes)
@@ -182,12 +182,13 @@
CPU: Processor Core ID: 0
ENERGY_PERF_BIAS: Set to 'normal', was 'performance'
ENERGY_PERF_BIAS: View and update with x86_energy_perf_policy(8)
+PAX: PCID detected
mce: CPU supports 7 MCE banks
CPU0: Thermal monitoring enabled (TM1)
Last level iTLB entries: 4KB 512, 2MB 8, 4MB 8
Last level dTLB entries: 4KB 512, 2MB 32, 4MB 32, 1GB 0
tlb_flushall_shift: 6
-Freeing SMP alternatives memory: 28K (ffffffff81bda000 - ffffffff81be1000)
+Freeing SMP alternatives memory: 28K (ffffffff81c49000 - ffffffff81c50000)
..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
smpboot: CPU0: Intel(R) Core(TM) i5-2430M CPU @ 2.40GHz (fam: 06, model: 2a, stepping: 07)
TSC deadline timer enabled
@@ -201,16 +202,20 @@
... fixed-purpose events: 3
... event mask: 000000070000000f
x86: Booting SMP configuration:
-.... node #0, CPUs: #1 #2 #3
+.... node #0, CPUs: #1
+PAX: PCID detected
+ #2PAX: PCID detected
+ #3
+PAX: PCID detected
x86: Booted up 1 node, 4 CPUs
-smpboot: Total of 4 processors activated (19164.88 BogoMIPS)
+smpboot: Total of 4 processors activated (19165.53 BogoMIPS)
devtmpfs: initialized
PM: Registering ACPI NVS region [mem 0xca4e5000-0xca527fff] (274432 bytes)
PM: Registering ACPI NVS region [mem 0xcad68000-0xcafacfff] (2379776 bytes)
PM: Registering ACPI NVS region [mem 0xcafbb000-0xcafe7fff] (184320 bytes)
-kworker/u8:0 (31) used greatest stack depth: 5976 bytes left
+kworker/u8:0 (31) used greatest stack depth: 14184 bytes left
xor: automatically using best checksumming function:
- avx : 16932.000 MB/sec
+ avx : 16994.400 MB/sec
NET: Registered protocol family 16
cpuidle: using governor ladder
cpuidle: using governor menu
@@ -219,10 +224,10 @@
PCI: MMCONFIG at [mem 0xf8000000-0xfbffffff] reserved in E820
PCI: Using configuration type 1 for base access
bio: create slab <bio-0> at 0
-raid6: sse2x1 6526 MB/s
-raid6: sse2x2 7960 MB/s
-raid6: sse2x4 9298 MB/s
-raid6: using algorithm sse2x4 (9298 MB/s)
+raid6: sse2x1 6528 MB/s
+raid6: sse2x2 8039 MB/s
+raid6: sse2x4 9289 MB/s
+raid6: using algorithm sse2x4 (9289 MB/s)
raid6: using ssse3x2 recovery algorithm
ACPI: Added _OSI(Module Device)
ACPI: Added _OSI(Processor Device)
@@ -232,13 +237,13 @@
[Firmware Bug]: ACPI: BIOS _OSI(Linux) query ignored
ACPI: SSDT 00000000cad51698 00064F (v01 PmRef Cpu0Cst 00003001 INTL 20051117)
ACPI: Dynamic OEM Table Load:
-ACPI: SSDT (null) 00064F (v01 PmRef Cpu0Cst 00003001 INTL 20051117)
+ACPI: SSDT (nil) 00064F (v01 PmRef Cpu0Cst 00003001 INTL 20051117)
ACPI: SSDT 00000000cad52a98 000303 (v01 PmRef ApIst 00003000 INTL 20051117)
ACPI: Dynamic OEM Table Load:
-ACPI: SSDT (null) 000303 (v01 PmRef ApIst 00003000 INTL 20051117)
+ACPI: SSDT (nil) 000303 (v01 PmRef ApIst 00003000 INTL 20051117)
ACPI: SSDT 00000000cad50d98 000119 (v01 PmRef ApCst 00003000 INTL 20051117)
ACPI: Dynamic OEM Table Load:
-ACPI: SSDT (null) 000119 (v01 PmRef ApCst 00003000 INTL 20051117)
+ACPI: SSDT (nil) 000119 (v01 PmRef ApCst 00003000 INTL 20051117)
ACPI: Interpreter enabled
ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20131218/hwxface-580)
ACPI: (supports S0 S1 S3 S5)
@@ -491,7 +496,7 @@
sha512_ssse3: Using AVX optimized SHA-512 implementation
futex hash table entries: 1024 (order: 4, 65536 bytes)
audit: initializing netlink subsys (disabled)
-audit: type=2000 audit(1402945649.943:1): initialized
+audit: type=2000 audit(1402947245.943:1): initialized
bounce pool size: 64 pages
HugeTLB registered 2 MB page size, pre-allocated 0 pages
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
@@ -504,9 +509,9 @@
io scheduler noop registered
io scheduler cfq registered (default)
crc32: CRC_LE_BITS = 64, CRC_BE BITS = 64
-crc32: self tests passed, processed 225944 bytes in 199467 nsec
+crc32: self tests passed, processed 225944 bytes in 205403 nsec
crc32c: CRC_LE_BITS = 64
-crc32c: self tests passed, processed 225944 bytes in 103016 nsec
+crc32c: self tests passed, processed 225944 bytes in 99873 nsec
crc32_combine: 8373 self tests passed
crc32c_combine: 8373 self tests passed
xz_dec_test: module loaded
@@ -637,7 +642,7 @@
registered taskstats version 1
bio: create slab <bio-1> at 1
Btrfs loaded
-rtc_cmos 00:04: setting system clock to 2014-06-16 19:07:31 UTC (1402945651)
+rtc_cmos 00:04: setting system clock to 2014-06-16 19:34:07 UTC (1402947247)
input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input4
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
usb 1-1: new high-speed USB device number 2 using ehci-pci
@@ -650,13 +655,13 @@
sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
-sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
+sd 0:0:0:0: Attached scsi generic sg0 type 0
sda: sda1 sda2 sda3 < sda5 sda6 >
sd 0:0:0:0: [sda] Attached SCSI disk
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 6 ports detected
-tsc: Refined TSC clocksource calibration: 2394.564 MHz
+tsc: Refined TSC clocksource calibration: 2394.560 MHz
usb 2-1: new high-speed USB device number 2 using ehci-pci
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 8 ports detected
@@ -669,22 +674,25 @@
sr 4:0:0:0: Attached scsi CD-ROM sr0
sr 4:0:0:0: Attached scsi generic sg1 type 5
ata6: SATA link down (SStatus 0 SControl 300)
-Freeing unused kernel memory: 816K (ffffffff81b0e000 - ffffffff81bda000)
-echo (1514) used greatest stack depth: 5688 bytes left
+Freeing unused kernel memory: 888K (ffffffff81b6b000 - ffffffff81c49000)
+cut (1571) used greatest stack depth: 14032 bytes left
+cut (1577) used greatest stack depth: 13880 bytes left
input: DualPoint Stick as /devices/platform/i8042/serio1/input/input8
input: AlpsPS/2 ALPS DualPoint TouchPad as /devices/platform/i8042/serio1/input/input7
Switched to clocksource tsc
fuse init (API version 7.22)
-random: lvm urandom read with 18 bits of entropy available
+random: lvm urandom read with 19 bits of entropy available
bio: create slab <bio-2> at 2
bio: create slab <bio-2> at 2
-cryptsetup (2865) used greatest stack depth: 4808 bytes left
+cryptsetup (2954) used greatest stack depth: 13432 bytes left
EXT3-fs (dm-1): error: couldn't mount because of unsupported optional features (240)
EXT2-fs (dm-1): error: couldn't mount because of unsupported optional features (240)
EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null)
random: nonblocking pool is initialized
-init-early.sh (2924) used greatest stack depth: 4632 bytes left
-61] udevd[3092]: starting version 1.5.3
+setfont (3019) used greatest stack depth: 13160 bytes left
+loadkeys (3021) used greatest stack depth: 13000 bytes left
+init-early.sh (3017) used greatest stack depth: 12824 bytes left
+52] udevd[3187]: starting version 1.5.3
Intel(R) Wireless WiFi driver for Linux, in-tree:
Copyright(c) 2003- 2014 Intel Corporation
iwlwifi 0000:09:00.0: irq 49 for MSI/MSI-X
@@ -703,7 +711,6 @@
[drm] Please upgrade your BIOS to fix this.
fbcon: inteldrmfb (fb0) is primary device
[drm] radeon kernel modesetting enabled.
-VGA switcheroo: detected switching method \_SB_.PCI0.GFX0.ATPX handle
Console: switching to colour frame buffer device 170x48
i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
i915 0000:00:02.0: registered panic notifier
@@ -718,17 +725,15 @@
[drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
[drm] initializing kernel modesetting (TURKS 0x1002:0x6741 0x1028:0x04CD).
[drm] register mmio base: 0xF7B20000
-modprobe (3132) used greatest stack depth: 3576 bytes left
[drm] register mmio size: 131072
-vga_switcheroo: enabled
-ATPX version 1, functions 0x00000033
+modprobe (3231) used greatest stack depth: 11880 bytes left
[drm] Enabling RC6 states: RC6 on, RC6p off, RC6pp off
ATOM BIOS: Dell
radeon 0000:01:00.0: VRAM: 1024M 0x0000000000000000 - 0x000000003FFFFFFF (1024M used)
radeon 0000:01:00.0: GTT: 1024M 0x0000000040000000 - 0x000000007FFFFFFF
[drm] Detected VRAM RAM=1024M, BAR=256M
[drm] RAM width 128bits DDR
-[TTM] Zone kernel: Available graphics memory: 4035452 kiB
+[TTM] Zone kernel: Available graphics memory: 4035306 kiB
[TTM] Zone dma32: Available graphics memory: 2097152 kiB
[TTM] Initializing pool allocator
[TTM] Initializing DMA pool allocator
@@ -741,15 +746,15 @@
[drm] PCIE gen 2 link speeds already enabled
[drm] PCIE GART of 1024M enabled (table at 0x0000000000273000).
radeon 0000:01:00.0: WB enabled
-radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xffff88022419cc00
-radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xffff88022419cc0c
-radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x0000000000072118 and cpu addr 0xffffc900156b2118
+radeon 0000:01:00.0: fence driver on ring 0 use gpu addr 0x0000000040000c00 and cpu addr 0xffff8800c4134c00
+radeon 0000:01:00.0: fence driver on ring 3 use gpu addr 0x0000000040000c0c and cpu addr 0xffff8800c4134c0c
+radeon 0000:01:00.0: fence driver on ring 5 use gpu addr 0x0000000000072118 and cpu addr 0xffffc90015432118
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[drm] Driver supports precise vblank timestamp query.
radeon 0000:01:00.0: irq 51 for MSI/MSI-X
radeon 0000:01:00.0: radeon: using MSI.
[drm] radeon: irq initialized.
-[drm] ring test on 0 succeeded in 0 usecs
+[drm] ring test on 0 succeeded in 1 usecs
[drm] ring test on 3 succeeded in 1 usecs
[drm] ring test on 5 succeeded in 1 usecs
[drm] UVD initialized successfully.
@@ -759,7 +764,7 @@
[drm] Radeon Display Connectors
radeon 0000:01:00.0: No connectors reported connected with modes
[drm] Cannot find any crtc or sizes - going 1024x768
-[drm] fb mappable at 0xE0474000
+[drm] fb mappable at 0xE0476000
[drm] vram apper at 0xE0000000
[drm] size 3145728
[drm] fb depth is 24


How can it be that grsecurity is blocking vgaswitcheroo, even if it is completly disabled in kernel :?:

Quote:
#
# Security options
#

#
# Grsecurity
#
CONFIG_TASK_SIZE_MAX_SHIFT=47
# CONFIG_GRKERNSEC is not set
# CONFIG_KEYS is not set
# CONFIG_SECURITY_DMESG_RESTRICT is not set
# CONFIG_SECURITY is not set
CONFIG_SECURITYFS=y
CONFIG_DEFAULT_SECURITY_DAC=y
CONFIG_DEFAULT_SECURITY=""
CONFIG_XOR_BLOCKS=y
CONFIG_CRYPTO=y
Back to top
View user's profile Send private message
Tractor Girl
Apprentice
Apprentice


Joined: 16 May 2013
Posts: 159

PostPosted: Mon Jun 30, 2014 6:16 pm    Post subject: Reply with quote

Workaround can be found on Grsecurity forums:
https://forums.grsecurity.net/viewtopic.php?f=3&t=3989
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum