fedora 14 kernel performance with ip forwarding workload
by Jesse Brandeburg
The other day I was running the stock fedora kernel on my ip
forwarding setup, to see what the performance was, and the performance
wasn't very good.
system is S5520HC dual socket 2.93GHz Xeon 5570 (Nehalem) with 3 quad
port 82580 adapters (12 ports). Traffic is bidirectional 64 byte
packets being forwarded and received on each port, basically port to
port routing. I am only using 12 flows currently.
The driver is igb, and I am using an affinity script that lines up
each pair of ports that are forwarding traffic into optimal
configurations for cache locality. I am also disabling
remote_node_defrag_ratio to stop cross node traffic.
With the fedora default kernel from F14 it appears that
CONFIG_NETFILTER=y means that I cannot unload all of netfilter even if
I stop iptables service.
perf showed netfilter being prominent, and removing it gives me much
higher throughput. Is there a reason CONFIG_NETFILTER=y ? Isn't it a
good thing to be able to disable netfilter if you want to?
Jesse
8 years, 6 months
SB X-Fi Xtreme Audio
by Mateusz Marzantowicz
I'm writing here because there was no answer to my problem on fedora
users [1] and because it might be kernel related (in case I'm wrong,
pleas forgive me).
My sound card is not working correctly after migration from Fedora 17 to
Fedora 19. I can't hear sound on my headphones connected to the front
panel despite I can see them listed on gnome-control-center. When I pull
out jack a little I can hear sound in headphones. I've read somewhere
that it might be cause by wrong pin detection by sound card driver (part
of Linux kernel) but I can't find out what changes in kernel sources
might be responsible for this situation. As I said, it worked with all
kernels in Fedora 17 up to Jun when I migrated to F19.
Here is some info that might be useful to diagnose this issue:
----- uname -srv -----
Linux 3.10.3-300.fc19.x86_64 #1 SMP Fri Jul 26 00:00:58 UTC 2013
---- lspci -v -----
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset
Family High Definition Audio Controller (rev 05)
Subsystem: Dell XPS 8300
Flags: bus master, fast devsel, latency 0, IRQ 47
Memory at fe700000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Juniper
HDMI Audio [Radeon HD 5700 Series]
Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Juniper HDMI Audio
[Radeon HD 5700 Series]
Flags: bus master, fast devsel, latency 0, IRQ 48
Memory at fe640000 (64-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
04:00.0 PCI bridge: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG PCI
to PCIe Bridge (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=04, secondary=05, subordinate=05, sec-latency=32
Memory behind bridge: fe400000-fe4fffff
Capabilities: <access denied>
05:00.0 Audio device: Creative Labs [SB X-Fi Xtreme Audio] CA0110-IBG
Subsystem: Creative Labs SB1040
Flags: bus master, medium devsel, latency 32, IRQ 16
Memory at fe400000 (32-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>
Kernel driver in use: snd_hda_intel
----- dmesg -----
[ 45.957982] snd_hda_intel 0000:00:1b.0: irq 47 for MSI/MSI-X
[ 45.969362] ALSA sound/pci/hda/patch_realtek.c:414 SKU: Nid=0x1d
sku_cfg=0x4005e601
[ 45.969364] ALSA sound/pci/hda/patch_realtek.c:416 SKU:
port_connectivity=0x1
[ 45.969365] ALSA sound/pci/hda/patch_realtek.c:417 SKU: enable_pcbeep=0x0
[ 45.969366] ALSA sound/pci/hda/patch_realtek.c:418 SKU:
check_sum=0x00000005
[ 45.969367] ALSA sound/pci/hda/patch_realtek.c:419 SKU:
customization=0x000000e6
[ 45.969368] ALSA sound/pci/hda/patch_realtek.c:420 SKU: external_amp=0x0
[ 45.969369] ALSA sound/pci/hda/patch_realtek.c:421 SKU: platform_type=0x0
[ 45.969370] ALSA sound/pci/hda/patch_realtek.c:422 SKU: swap=0x0
[ 45.969371] ALSA sound/pci/hda/patch_realtek.c:423 SKU: override=0x1
[ 45.969774] ALSA sound/pci/hda/hda_auto_parser.c:393 autoconfig:
line_outs=4 (0x14/0x15/0x16/0x17/0x0) type:line
[ 45.969775] ALSA sound/pci/hda/hda_auto_parser.c:397
speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 45.969777] ALSA sound/pci/hda/hda_auto_parser.c:401 hp_outs=1
(0x1b/0x0/0x0/0x0/0x0)
[ 45.969777] ALSA sound/pci/hda/hda_auto_parser.c:402 mono:
mono_out=0x0
[ 45.969778] ALSA sound/pci/hda/hda_auto_parser.c:405 dig-out=0x1e/0x0
[ 45.969779] ALSA sound/pci/hda/hda_auto_parser.c:406 inputs:
[ 45.969780] ALSA sound/pci/hda/hda_auto_parser.c:410 Front Mic=0x19
[ 45.969782] ALSA sound/pci/hda/hda_auto_parser.c:410 Rear Mic=0x18
[ 45.969783] ALSA sound/pci/hda/hda_auto_parser.c:410 Line=0x1a
[ 45.969784] ALSA sound/pci/hda/patch_realtek.c:486 realtek: No valid
SSID, checking pincfg 0x4005e601 for NID 0x1d
[ 45.969785] ALSA sound/pci/hda/patch_realtek.c:502 realtek: Enabling
init ASM_ID=0xe601 CODEC_ID=10ec0887
[ 45.985179] input: HDA Intel PCH HDMI/DP,pcm=3 as
/devices/pci0000:00/0000:00:1b.0/sound/card0/input5
[ 45.985272] input: HDA Intel PCH Front Headphone as
/devices/pci0000:00/0000:00:1b.0/sound/card0/input6
[ 45.985342] input: HDA Intel PCH Line Out Side as
/devices/pci0000:00/0000:00:1b.0/sound/card0/input7
[ 45.985399] input: HDA Intel PCH Line Out CLFE as
/devices/pci0000:00/0000:00:1b.0/sound/card0/input8
[ 45.985455] input: HDA Intel PCH Line Out Surround as
/devices/pci0000:00/0000:00:1b.0/sound/card0/input9
[ 45.985506] input: HDA Intel PCH Line Out Front as
/devices/pci0000:00/0000:00:1b.0/sound/card0/input10
[ 45.985562] input: HDA Intel PCH Line as
/devices/pci0000:00/0000:00:1b.0/sound/card0/input11
[ 45.985614] input: HDA Intel PCH Rear Mic as
/devices/pci0000:00/0000:00:1b.0/sound/card0/input12
[ 45.985667] input: HDA Intel PCH Front Mic as
/devices/pci0000:00/0000:00:1b.0/sound/card0/input13
[ 45.986026] ALSA sound/pci/hda/hda_intel.c:3084 0000:01:00.1: Handle
VGA-switcheroo audio client
[ 45.986028] ALSA sound/pci/hda/hda_intel.c:3276 0000:01:00.1: Using
LPIB position fix
[ 45.986058] snd_hda_intel 0000:01:00.1: irq 48 for MSI/MSI-X
[ 45.987891] ALSA sound/pci/hda/hda_intel.c:1763 0000:01:00.1: Enable
sync_write for stable communication
[ 45.988541] input: HD-Audio Generic HDMI/DP,pcm=3 as
/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input14
[ 45.988735] ALSA sound/pci/hda/hda_intel.c:3276 0000:05:00.0: Using
LPIB position fix
[ 46.028371] ALSA sound/pci/hda/hda_auto_parser.c:393 autoconfig:
line_outs=4 (0xb/0xd/0xc/0xe/0x0) type:line
[ 46.028376] ALSA sound/pci/hda/hda_auto_parser.c:397
speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 46.028379] ALSA sound/pci/hda/hda_auto_parser.c:401 hp_outs=1
(0xf/0x0/0x0/0x0/0x0)
[ 46.028381] ALSA sound/pci/hda/hda_auto_parser.c:402 mono:
mono_out=0x0
[ 46.028383] ALSA sound/pci/hda/hda_auto_parser.c:405 dig-out=0x12/0x0
[ 46.028385] ALSA sound/pci/hda/hda_auto_parser.c:406 inputs:
[ 46.028388] ALSA sound/pci/hda/hda_auto_parser.c:410 Mic=0x11
[ 46.028398] ALSA sound/pci/hda/hda_auto_parser.c:410 Line=0x10
[ 46.028399] ALSA sound/pci/hda/hda_auto_parser.c:413 dig-in=0x13
[ 46.312592] input: HDA Creative Front Headphone as
/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/0000:05:00.0/sound/card2/input15
[ 46.312764] input: HDA Creative Line Out Side as
/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/0000:05:00.0/sound/card2/input16
[ 46.312940] input: HDA Creative Line Out CLFE as
/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/0000:05:00.0/sound/card2/input17
[ 46.313090] input: HDA Creative Line Out Surround as
/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/0000:05:00.0/sound/card2/input18
[ 46.313207] input: HDA Creative Line Out Front as
/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/0000:05:00.0/sound/card2/input19
[ 46.313311] input: HDA Creative Line as
/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/0000:05:00.0/sound/card2/input20
[ 46.313429] input: HDA Creative Mic as
/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/0000:05:00.0/sound/card2/input21
----- lsmod | grep snd -----
snd_hda_codec_ca0110 12551 1
snd_hda_codec_hdmi 41193 2
snd_hda_codec_realtek 47074 1
snd_hda_intel 43836 11
snd_hda_codec 179124 4
snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_ca0110
snd_hwdep 17650 1 snd_hda_codec
snd_seq 60752 0
snd_seq_device 14136 1 snd_seq
snd_pcm 98071 3
snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc 18268 2 snd_pcm,snd_hda_intel
snd_timer 28698 2 snd_pcm,snd_seq
snd 75292 31
snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_hda_codec,snd_hda_intel,snd_seq_device
soundcore 14491 1 snd
Thanks for any help,
Mateusz Marzantowicz
[1] https://lists.fedoraproject.org/pipermail/users/2013-July/438850.html
10 years, 4 months
[PATCH] update s390x config
by Dan Horák
- disable various drivers not relevant for s390x
- enable kdump support
---
config-s390x | 39 ++++++++++++++++++++++++++++++++-------
1 file changed, 32 insertions(+), 7 deletions(-)
diff --git a/config-s390x b/config-s390x
index ab65656..e1e06a5 100644
--- a/config-s390x
+++ b/config-s390x
@@ -38,6 +38,7 @@ CONFIG_CMM=m
CONFIG_CMM_PROC=y
# CONFIG_NETIUCV is not set
CONFIG_SMSGIUCV=m
+CONFIG_CRASH_DUMP=y
#
# SCSI low-level drivers
@@ -251,26 +252,50 @@ CONFIG_SCM_BLOCK=m
CONFIG_SCM_BLOCK_CLUSTER_WRITE=y
# CONFIG_S390_PTDUMP is not set
# CONFIG_ASYMMETRIC_KEY_TYPE is not set
-CONFIG_PCI_NR_FUNCTIONS=64
-CONFIG_HOTPLUG_PCI=m
-# CONFIG_HOTPLUG_PCI_CPCI is not set
-# CONFIG_HOTPLUG_PCI_SHPC is not set
-CONFIG_HOTPLUG_PCI_S390=m
+# CONFIG_PCI is not set
# CONFIG_BLK_DEV_PCIESSD_MTIP32XX is not set
# CONFIG_SGI_IOC4 is not set
# CONFIG_GPIO_GENERIC_PLATFORM is not set
# CONFIG_GPIO_MCP23S08 is not set
+# CONFIG_NEW_LEDS is not set
+# CONFIG_HID is not set
+
+# CONFIG_INPUT is not set
+# CONFIG_INPUT_JOYDEV is not set
+# CONFIG_INPUT_KEYBOARD is not set
+# CONFIG_INPUT_MOUSE is not set
+# CONFIG_INPUT_JOYSTICK is not set
+# CONFIG_INPUT_TABLET is not set
+# CONFIG_INPUT_TOUCHSCREEN is not set
+# CONFIG_INPUT_MISC is not set
+
+# CONFIG_ACCESSIBILITY is not set
+# CONFIG_AUXDISPLAY is not set
+# CONFIG_POWER_SUPPLY is not set
+# CONFIG_STAGING is not set
+# CONFIG_MEMSTICK is not set
# CONFIG_MEDIA_SUPPORT is not set
# CONFIG_USB_SUPPORT is not set
# CONFIG_DRM is not set
# CONFIG_SOUND is not set
# CONFIG_DW_DMAC is not set
+# CONFIG_I2C is not set
# CONFIG_I2C_SMBUS is not set
# CONFIG_I2C_STUB is not set
# CONFIG_I2C_HELPER_AUTO is not set
# CONFIG_I2C_PARPORT is not set
# CONFIG_I2C_PARPORT_LIGHT is not set
# CONFIG_I2C_NFORCE2 is not set
-# CONFIG_DW_DMAC is not set
-# CONFIG_DW_DMAC_PCI is not set
+
+# CONFIG_PHYLIB is not set
+# CONFIG_ATM_DRIVERS is not set
+# CONFIG_NET_VENDOR_ARC is not set
+# CONFIG_NET_VENDOR_INTEL is not set
+# CONFIG_NET_VENDOR_MARVELL is not set
+# CONFIG_NET_VENDOR_NATSEMI is not set
+# CONFIG_SH_ETH is not set
+# CONFIG_NET_VENDOR_VIA is not set
+# CONFIG_IEEE802154_DRIVERS is not set
+
+# CONFIG_FMC is not set
--
1.8.1.4
10 years, 4 months
kernel-tests master: Allow the actual test to skip if modsign is not enabled (0ab7c9d)
by Justin Forbes
Repository : http://git.fedorahosted.org/cgit/kernel-tests.git
On branch : master
>---------------------------------------------------------------
commit 0ab7c9db4130983b91d13b9f5771d8096f89acc4
Author: Justin M. Forbes <jforbes(a)redhat.com>
Date: Fri Jul 26 11:32:09 2013 -0500
Allow the actual test to skip if modsign is not enabled
>---------------------------------------------------------------
default/modsign/runtest.sh | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/default/modsign/runtest.sh b/default/modsign/runtest.sh
index ea87a07..c6e2451 100755
--- a/default/modsign/runtest.sh
+++ b/default/modsign/runtest.sh
@@ -10,7 +10,8 @@ fi
# Run
./modsign_tests.sh
-if [ "$?" -ne "0" ]; then
+result=$?
+if [ "$result" -ne "0" ]; then
echo "Could not run tests"
- exit -1
+ exit $result
fi
10 years, 4 months
Should f20 kernels work on f19 right now?
by Bruno Wolff III
3.11.0-0.rc2.git1.2.fc20.i686+PAE (rawhide-nodebug) boots just fine, but the git2 and git3 kernels don't.
Instead of switching to smaller text during the boot process it switches to larger text and then boot
hangs pretty early in the boot process. (Before being prompted for the luks password.) Characters are
echoed to the screen and C-A-Del elicits a response (though it doesn't shutdown).
The same kernels work on rawhide. (Though I am having X problems on rawhide right now, this doesn't
seem to be kernel related.)
10 years, 4 months
iwlwifi 7260 support
by Yu Watanabe
Dear all,
I found that kernel-3.11.0-0.rc2.git0.2.fc20.x86_64 supports
Intel Wifi module 7260.
But linux-firmware-20130607-26.git2892af0.fc20.noarch.rpm and iwl*.rpm
does not contain the firmware for the Wifi module.
Now the mainline repository has the firmware iwlwifi-7260-7.ucode.
If possible, could you update linux-firmware package?
--
Yu
10 years, 4 months
intel pstate support for vaio pro
by Yu Watanabe
Dear all,
I use kernel-3.11.0-0.rc2.git0.2.fc20.x86_64 on Sony Vaio Pro.
This machine has Haswell processor, however, the intel_pstate cpufreq driver
does not loaded.
$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver
acpi-cpufreq
I googled this issue and found a patch at
https://spicious.com/sony-vaio-pro-11-with-ubuntu.html
> diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
> index 07f2840..1ce506a 100644
> --- a/drivers/cpufreq/intel_pstate.c
> +++ b/drivers/cpufreq/intel_pstate.c
> @@ -522,6 +522,7 @@ static const struct x86_cpu_id intel_pstate_cpu_ids[] = {
> ICPU(0x2a, default_policy),
> ICPU(0x2d, default_policy),
> ICPU(0x3a, default_policy),
> + ICPU(0x45, default_policy),
> {}
> };
> MODULE_DEVICE_TABLE(x86cpu, intel_pstate_cpu_ids);
Could you apply this patch to the rawhide and f19 kernel?
--
Yu
10 years, 4 months
[BUG] [skge] WARNING: at lib/dma-debug.c:937
by poma
Given much time is here, almost like a giraffe.
3.10.2:
…
skge 0000:01:09.0 enp1s9: Link is up at 1000 Mbps, full duplex, flow
control both
------------[ cut here ]------------
WARNING: at lib/dma-debug.c:937 check_unmap+0x47b/0x930()
skge 0000:01:09.0: DMA-API: device driver failed to check map
error[device address=0x000000012175cec2] [size=42 bytes] [mapped as single]
Modules linked in:
skge raid1 nouveau video mxm_wmi i2c_algo_bit drm_kms_helper ttm drm
i2c_core wmi
CPU: 3 PID: 0 Comm: swapper/3 Not tainted 3.10.2-301.fc19.x86_64.debug #1
Hardware name: Gigabyte Technology Co., Ltd. M720-US3/M720-US3, BIOS F7n
09/07/2010
0000000000000009 ffff88012ac03c58 ffffffff81717f12 ffff88012ac03c90
ffffffff810674d1 ffff880128330ac0 ffff880124f83ae8 ffffffff82bd7290
0000000000000282 ffffffff819f7ab3 ffff88012ac03cf0 ffffffff8106753c
Call Trace:
<IRQ> [<ffffffff81717f12>] dump_stack+0x19/0x1b
[<ffffffff810674d1>] warn_slowpath_common+0x61/0x80
[<ffffffff8106753c>] warn_slowpath_fmt+0x4c/0x50
[<ffffffff8137641b>] check_unmap+0x47b/0x930
[<ffffffff8137692f>] debug_dma_unmap_page+0x5f/0x70
[<ffffffffa01c6d35>] skge_poll+0xe5/0x9d0 [skge]
[<ffffffff815d8f61>] ? net_rx_action+0xa1/0x380
[<ffffffff815d9032>] net_rx_action+0x172/0x380
[<ffffffff81071817>] __do_softirq+0x107/0x410
[<ffffffff81071cf5>] irq_exit+0xc5/0xd0
[<ffffffff8172b6d6>] do_IRQ+0x56/0xc0
[<ffffffff81720772>] common_interrupt+0x72/0x72
<EOI> [<ffffffff810494c6>] ? native_safe_halt+0x6/0x10
[<ffffffff81020ab4>] default_idle+0x24/0x270
[<ffffffff81020d7a>] amd_e400_idle+0x7a/0x110
[<ffffffff810215de>] arch_cpu_idle+0x2e/0x40
[<ffffffff810c93e2>] cpu_startup_entry+0xd2/0x410
[<ffffffff8170b158>] start_secondary+0x262/0x264
---[ end trace 80d48b7d4f24ac81 ]---
Mapped at:
[<ffffffff81375251>] debug_dma_map_page+0x91/0x140
[<ffffffffa01c4140>] skge_xmit_frame+0x180/0x5d0 [skge]
[<ffffffff815da841>] dev_hard_start_xmit+0x301/0x6d0
[<ffffffff815fd20e>] sch_direct_xmit+0xee/0x290
[<ffffffff815dae88>] dev_queue_xmit+0x278/0x990
…
3.11-rc2:
…
skge 0000:01:09.0 enp1s9: Link is up at 1000 Mbps, full duplex, flow
control both
------------[ cut here ]------------
WARNING: at lib/dma-debug.c:937 check_unmap+0x47b/0x930()
skge 0000:01:09.0: DMA-API: device driver failed to check map
error[device address=0x00000000cd3ae902] [size=42 bytes] [mapped as single]
Modules linked in:
skge raid1 nouveau video mxm_wmi i2c_algo_bit drm_kms_helper ttm drm
i2c_core wmi
CPU: 3 PID: 1784 Comm: setroubleshootd Not tainted
3.11.0-0.rc2.git0.1.fc20.x86_64.debug #1
Hardware name: Gigabyte Technology Co., Ltd. M720-US3/M720-US3, BIOS F7n
09/07/2010
0000000000000009 ffff88012ac03c58 ffffffff8172eeab ffff88012ac03ca0
ffff88012ac03c90 ffffffff810744fd ffff880128353ae0 ffff880124f48a28
ffffffff82bd3c10 0000000000000282 ffffffff81a03c03 ffff88012ac03cf0
Call Trace:
<IRQ> [<ffffffff8172eeab>] dump_stack+0x54/0x74
[<ffffffff810744fd>] warn_slowpath_common+0x7d/0xa0
[<ffffffff8107456c>] warn_slowpath_fmt+0x4c/0x50
[<ffffffff813943bb>] check_unmap+0x47b/0x930
[<ffffffff810e90bd>] ? trace_hardirqs_on+0xd/0x10
[<ffffffff813948cf>] debug_dma_unmap_page+0x5f/0x70
[<ffffffffa01bdd35>] skge_poll+0xe5/0x9d0 [skge]
[<ffffffff815f9071>] ? net_rx_action+0xa1/0x380
[<ffffffff815f9142>] net_rx_action+0x172/0x380
[<ffffffff8107ef77>] __do_softirq+0x107/0x410
[<ffffffff8107f455>] irq_exit+0xc5/0xd0
[<ffffffff81744596>] do_IRQ+0x56/0xc0
[<ffffffff81738c72>] common_interrupt+0x72/0x72
<EOI> [<ffffffff81181583>] ? get_page_from_freelist+0x533/0x9a0
[<ffffffff81021899>] ? sched_clock+0x9/0x10
[<ffffffff81021899>] ? sched_clock+0x9/0x10
[<ffffffff81181bc3>] __alloc_pages_nodemask+0x1d3/0xbe0
[<ffffffff81021825>] ? native_sched_clock+0x15/0x80
[<ffffffff81021899>] ? sched_clock+0x9/0x10
[<ffffffff810e96d5>] ? __lock_acquire+0x2e5/0x1b10
[<ffffffff810e5ed7>] ? __lock_is_held+0x57/0x80
[<ffffffff811c660a>] alloc_pages_vma+0x9a/0x140
[<ffffffff811a4b6b>] handle_pte_fault+0x6ab/0x990
[<ffffffff811a5c95>] handle_mm_fault+0x2a5/0x5c0
[<ffffffff8173ccb2>] __do_page_fault+0x162/0x5a0
[<ffffffff810e8fed>] ? trace_hardirqs_on_caller+0xfd/0x1c0
[<ffffffff810e90bd>] ? trace_hardirqs_on+0xd/0x10
[<ffffffff8173803c>] ? _raw_spin_unlock_irq+0x2c/0x50
[<ffffffff810b04dc>] ? finish_task_switch+0x7c/0x120
[<ffffffff810b049f>] ? finish_task_switch+0x3f/0x120
[<ffffffff81738d18>] ? retint_swapgs+0x13/0x1b
[<ffffffff8137c02d>] ? trace_hardirqs_off_thunk+0x3a/0x3c
[<ffffffff8173d0fe>] do_page_fault+0xe/0x10
[<ffffffff81739008>] page_fault+0x28/0x30
---[ end trace aba61fbe029924e7 ]---
Mapped at:
[<ffffffff813931f1>] debug_dma_map_page+0x91/0x140
[<ffffffffa01bb140>] skge_xmit_frame+0x180/0x5d0 [skge]
[<ffffffff815fb1b1>] dev_hard_start_xmit+0x301/0x6d0
[<ffffffff8161deae>] sch_direct_xmit+0xee/0x290
[<ffffffff815fb7fb>] dev_queue_xmit+0x27b/0x990
…
poma
10 years, 4 months
Fedora Kernel: Strict user copy checks: Disabled
by Reindl Harald
Hi
is there a strong performance-wise reason for
"Strict user copy checks: Disabled" - IMHO if
something may make things more secure while not
have a dramatically performance impact security
in doubt should go first
__________________________________________________
[root@rh:~]$ checksec --kernel
* Kernel protection information:
Description - List the status of kernel protection mechanisms. Rather than
inspect kernel mechanisms that may aid in the prevention of exploitation of
userspace processes, this option lists the status of kernel configuration
options that harden the kernel itself against attack.
Kernel config: /boot/config-3.9.10-200.fc18.x86_64
Warning: The config on disk may not represent running kernel config!
GCC stack protector support: Enabled
Strict user copy checks: Disabled
Enforce read-only kernel data: Enabled
Restrict /dev/mem access: Enabled
Restrict /dev/kmem access: Enabled
10 years, 4 months
[PATCH v3] kernel.spec: let flavors/variants end with "+$flavor" in the uname
by Harald Hoyer
From: Harald Hoyer <harald(a)redhat.com>
This patch changes the version of kernel flavor/variants to end
in "+$flavor" instead of ".$flavor". This makes it easier to detect
a flavor and a parser can separate it from the architecture.
With that change we can correct kernel-install (of systemd) to call
new-kernel-package with --package kernel-$flavor, because the $flavor
can easily be extracted from the version string.
---
Rebased for current git.
commit 69c0bf478219b2fbb38fb3c707b220b75bfa4129
Date: Wed Jun 26 07:50:55 2013 -0400
kernel.spec | 74 ++++++++++++++++++++++++++++++-------------------------------
1 file changed, 37 insertions(+), 37 deletions(-)
diff --git a/kernel.spec b/kernel.spec
index 27fd3f2..ecce9f2 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -473,17 +473,17 @@ Summary: The Linux kernel
#
%define kernel_reqprovconf \
Provides: kernel = %{rpmversion}-%{pkg_release}\
-Provides: kernel-%{_target_cpu} = %{rpmversion}-%{pkg_release}%{?1:.%{1}}\
+Provides: kernel-%{_target_cpu} = %{rpmversion}-%{pkg_release}%{?1:+%{1}}\
Provides: kernel-drm = 4.3.0\
Provides: kernel-drm-nouveau = 16\
Provides: kernel-modeset = 1\
-Provides: kernel-uname-r = %{KVERREL}%{?1:.%{1}}\
+Provides: kernel-uname-r = %{KVERREL}%{?1:+%{1}}\
Provides: kernel-highbank\
-Provides: kernel-highbank-uname-r = %{KVERREL}%{?1:.%{1}}\
+Provides: kernel-highbank-uname-r = %{KVERREL}%{?1:+%{1}}\
Provides: kernel-omap\
-Provides: kernel-omap-uname-r = %{KVERREL}%{?1:.%{1}}\
+Provides: kernel-omap-uname-r = %{KVERREL}%{?1:+%{1}}\
Provides: kernel-tegra\
-Provides: kernel-tegra-uname-r = %{KVERREL}%{?1:.%{1}}\
+Provides: kernel-tegra-uname-r = %{KVERREL}%{?1:+%{1}}\
Requires(pre): %{kernel_prereq}\
Requires(pre): %{initrd_prereq}\
Requires(pre): linux-firmware >= 20120206-0.1.git06c8f81\
@@ -953,7 +953,7 @@ AutoReqProv: no\
%description -n %{name}%{?1:-%{1}}-debuginfo\
This package provides debug information for package %{name}%{?1:-%{1}}.\
This is required to use SystemTap with %{name}%{?1:-%{1}}-%{KVERREL}.\
-%{expand:%%global debuginfo_args %{?debuginfo_args} -p '/.*/%%{KVERREL}%{?1:\.%{1}}/.*|/.*%%{KVERREL}%{?1:\.%{1}}(\.debug)?' -o debuginfo%{?1}.list}\
+%{expand:%%global debuginfo_args %{?debuginfo_args} -p '/.*/%%{KVERREL}%{?1:\+%{1}}/.*|/.*%%{KVERREL}%{?1:\+%{1}}(\.debug)?' -o debuginfo%{?1}.list}\
%{nil}
#
@@ -965,9 +965,9 @@ This is required to use SystemTap with %{name}%{?1:-%{1}}-%{KVERREL}.\
Summary: Development package for building kernel modules to match the %{?2:%{2} }kernel\
Group: System Environment/Kernel\
Provides: kernel%{?1:-%{1}}-devel-%{_target_cpu} = %{version}-%{release}\
-Provides: kernel-devel-%{_target_cpu} = %{version}-%{release}%{?1:.%{1}}\
-Provides: kernel-devel = %{version}-%{release}%{?1:.%{1}}\
-Provides: kernel-devel-uname-r = %{KVERREL}%{?1:.%{1}}\
+Provides: kernel-devel-%{_target_cpu} = %{version}-%{release}%{?1:+%{1}}\
+Provides: kernel-devel = %{version}-%{release}%{?1:+%{1}}\
+Provides: kernel-devel-uname-r = %{KVERREL}%{?1:+%{1}}\
AutoReqProv: no\
Requires(pre): /usr/bin/find\
Requires: perl\
@@ -985,11 +985,11 @@ against the %{?2:%{2} }kernel package.\
Summary: Extra kernel modules to match the %{?2:%{2} }kernel\
Group: System Environment/Kernel\
Provides: kernel%{?1:-%{1}}-modules-extra-%{_target_cpu} = %{version}-%{release}\
-Provides: kernel-modules-extra-%{_target_cpu} = %{version}-%{release}%{?1:.%{1}}\
-Provides: kernel-modules-extra = %{version}-%{release}%{?1:.%{1}}\
+Provides: kernel-modules-extra-%{_target_cpu} = %{version}-%{release}%{?1:+%{1}}\
+Provides: kernel-modules-extra = %{version}-%{release}%{?1:+%{1}}\
Provides: installonlypkg(kernel-module)\
-Provides: kernel-modules-extra-uname-r = %{KVERREL}%{?1:.%{1}}\
-Requires: kernel-uname-r = %{KVERREL}%{?1:.%{1}}\
+Provides: kernel-modules-extra-uname-r = %{KVERREL}%{?1:+%{1}}\
+Requires: kernel-uname-r = %{KVERREL}%{?1:+%{1}}\
AutoReqProv: no\
%description -n kernel%{?variant}%{?1:-%{1}}-modules-extra\
This package provides less commonly used kernel modules for the %{?2:%{2} }kernel package.\
@@ -1578,7 +1578,7 @@ BuildKernel() {
MakeTarget=$1
KernelImage=$2
Flavour=$3
- Flav=${Flavour:+.${Flavour}}
+ Flav=${Flavour:++${Flavour}}
InstallName=${4:-vmlinuz}
# Pick the right config file for the kernel we're building
@@ -1898,13 +1898,13 @@ find Documentation -type d | xargs chmod u+w
%define __modsign_install_post \
if [ "%{signmodules}" -eq "1" ]; then \
if [ "%{with_pae}" -ne "0" ]; then \
- %{modsign_cmd} signing_key.priv.sign.%{pae} signing_key.x509.sign.%{pae} $RPM_BUILD_ROOT/lib/modules/%{KVERREL}.%{pae}/ \
+ %{modsign_cmd} signing_key.priv.sign+%{pae} signing_key.x509.sign+%{pae} $RPM_BUILD_ROOT/lib/modules/%{KVERREL}+%{pae}/ \
fi \
if [ "%{with_debug}" -ne "0" ]; then \
- %{modsign_cmd} signing_key.priv.sign.debug signing_key.x509.sign.debug $RPM_BUILD_ROOT/lib/modules/%{KVERREL}.debug/ \
+ %{modsign_cmd} signing_key.priv.sign+debug signing_key.x509.sign+debug $RPM_BUILD_ROOT/lib/modules/%{KVERREL}+debug/ \
fi \
if [ "%{with_pae_debug}" -ne "0" ]; then \
- %{modsign_cmd} signing_key.priv.sign.%{pae}debug signing_key.x509.sign.%{pae}debug $RPM_BUILD_ROOT/lib/modules/%{KVERREL}.%{pae}debug/ \
+ %{modsign_cmd} signing_key.priv.sign+%{pae}debug signing_key.x509.sign+%{pae}debug $RPM_BUILD_ROOT/lib/modules/%{KVERREL}+%{pae}debug/ \
fi \
if [ "%{with_up}" -ne "0" ]; then \
%{modsign_cmd} signing_key.priv.sign signing_key.x509.sign $RPM_BUILD_ROOT/lib/modules/%{KVERREL}/ \
@@ -2071,7 +2071,7 @@ then\
fi\
if [ "$HARDLINK" != "no" -a -x /usr/sbin/hardlink ]\
then\
- (cd /usr/src/kernels/%{KVERREL}%{?1:.%{1}} &&\
+ (cd /usr/src/kernels/%{KVERREL}%{?1:+%{1}} &&\
/usr/bin/find . -type f | while read f; do\
hardlink -c /usr/src/kernels/*.fc*.*/$f $f\
done)\
@@ -2084,7 +2084,7 @@ fi\
#
%define kernel_modules_extra_post() \
%{expand:%%post %{?1:%{1}-}modules-extra}\
-/sbin/depmod -a %{KVERREL}%{?1:.%{1}}\
+/sbin/depmod -a %{KVERREL}%{?1:+%{1}}\
%{nil}
# This macro defines a %%posttrans script for a kernel package.
@@ -2093,7 +2093,7 @@ fi\
#
%define kernel_variant_posttrans() \
%{expand:%%posttrans %{?1}}\
-/bin/kernel-install add %{KVERREL}%{?1:.%{1}} /%{image_install_path}/vmlinuz-%{KVERREL}%{?1:.%{1}} || exit $?\
+/bin/kernel-install add %{KVERREL}%{?1:+%{1}} /%{image_install_path}/vmlinuz-%{KVERREL}%{?1:+%{1}} || exit $?\
%{nil}
#
@@ -2119,7 +2119,7 @@ fi}\
#
%define kernel_variant_preun() \
%{expand:%%preun %{?1}}\
-/bin/kernel-install remove %{KVERREL}%{?1:.%{1}} /%{image_install_path}/vmlinuz-%{KVERREL}%{?1:.%{1}} || exit $?\
+/bin/kernel-install remove %{KVERREL}%{?1:+%{1}} /%{image_install_path}/vmlinuz-%{KVERREL}%{?1:+%{1}} || exit $?\
%{nil}
%kernel_variant_preun
@@ -2241,30 +2241,30 @@ fi
%if %{1}\
%{expand:%%files %{?2}}\
%defattr(-,root,root)\
-/%{image_install_path}/%{?-k:%{-k*}}%{!?-k:vmlinuz}-%{KVERREL}%{?2:.%{2}}\
-/%{image_install_path}/.vmlinuz-%{KVERREL}%{?2:.%{2}}.hmac \
+/%{image_install_path}/%{?-k:%{-k*}}%{!?-k:vmlinuz}-%{KVERREL}%{?2:+%{2}}\
+/%{image_install_path}/.vmlinuz-%{KVERREL}%{?2:+%{2}}.hmac \
%ifarch %{arm}\
-/%{image_install_path}/dtb-%{KVERREL}%{?2:.%{2}} \
+/%{image_install_path}/dtb-%{KVERREL}%{?2:+%{2}} \
%endif\
-%attr(600,root,root) /boot/System.map-%{KVERREL}%{?2:.%{2}}\
-/boot/config-%{KVERREL}%{?2:.%{2}}\
-%dir /lib/modules/%{KVERREL}%{?2:.%{2}}\
-/lib/modules/%{KVERREL}%{?2:.%{2}}/kernel\
-/lib/modules/%{KVERREL}%{?2:.%{2}}/build\
-/lib/modules/%{KVERREL}%{?2:.%{2}}/source\
-/lib/modules/%{KVERREL}%{?2:.%{2}}/updates\
+%attr(600,root,root) /boot/System.map-%{KVERREL}%{?2:+%{2}}\
+/boot/config-%{KVERREL}%{?2:+%{2}}\
+%dir /lib/modules/%{KVERREL}%{?2:+%{2}}\
+/lib/modules/%{KVERREL}%{?2:+%{2}}/kernel\
+/lib/modules/%{KVERREL}%{?2:+%{2}}/build\
+/lib/modules/%{KVERREL}%{?2:+%{2}}/source\
+/lib/modules/%{KVERREL}%{?2:+%{2}}/updates\
%ifarch %{vdso_arches}\
-/lib/modules/%{KVERREL}%{?2:.%{2}}/vdso\
-/etc/ld.so.conf.d/kernel-%{KVERREL}%{?2:.%{2}}.conf\
+/lib/modules/%{KVERREL}%{?2:+%{2}}/vdso\
+/etc/ld.so.conf.d/kernel-%{KVERREL}%{?2:+%{2}}.conf\
%endif\
-/lib/modules/%{KVERREL}%{?2:.%{2}}/modules.*\
-%ghost /boot/initramfs-%{KVERREL}%{?2:.%{2}}.img\
+/lib/modules/%{KVERREL}%{?2:+%{2}}/modules.*\
+%ghost /boot/initramfs-%{KVERREL}%{?2:+%{2}}.img\
%{expand:%%files %{?2:%{2}-}devel}\
%defattr(-,root,root)\
-/usr/src/kernels/%{KVERREL}%{?2:.%{2}}\
+/usr/src/kernels/%{KVERREL}%{?2:+%{2}}\
%{expand:%%files %{?2:%{2}-}modules-extra}\
%defattr(-,root,root)\
-/lib/modules/%{KVERREL}%{?2:.%{2}}/extra\
+/lib/modules/%{KVERREL}%{?2:+%{2}}/extra\
%if %{with_debuginfo}\
%ifnarch noarch\
%{expand:%%files -f debuginfo%{?2}.list %{?2:%{2}-}debuginfo}\
--
1.8.3.1
10 years, 4 months