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, 9 months
[PATCH] Add -r to debuginfo_args to invoke eu-strip --reloc-debug-sections.
by Mark Wielaard
The -r flag to find-debuginfo.sh to invoke eu-strip --reloc-debug-sections
reduces the number of unnecessary relocations in kernel module .ko.debug
files. This saves ~500MB on the installed size of the kernel-debuginfo
package and makes the rpm file ~30MB smaller.
---
kernel.spec | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/kernel.spec b/kernel.spec
index 1f801f0..b9715fe 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -54,7 +54,7 @@ Summary: The Linux kernel
# For non-released -rc kernels, this will be appended after the rcX and
# gitX tags, so a 3 here would become part of release "0.rcX.gitX.3"
#
-%global baserelease 2
+%global baserelease 3
%global fedora_build %{baserelease}
# base_sublevel is the kernel version we're starting with and patching
@@ -566,8 +566,11 @@ BuildRequires: pciutils-devel gettext
BuildConflicts: rhbuildsys(DiskFree) < 500Mb
%if %{with_debuginfo}
# Fancy new debuginfo generation introduced in Fedora 8/RHEL 6.
-BuildRequires: rpm-build >= 4.4.2.1-4
-%define debuginfo_args --strict-build-id
+# The -r flag to find-debuginfo.sh to invoke eu-strip --reloc-debug-sections
+# reduces the number of relocations in kernel module .ko.debug files and was
+# introduced with rpm 4.9 and elfutils 0.153.
+BuildRequires: rpm-build >= 4.9.0-1, elfutils >= elfutils-0.153-1
+%define debuginfo_args --strict-build-id -r
%endif
Source0: ftp://ftp.kernel.org/pub/linux/kernel/v3.0/linux-%{kversion}.tar.xz
@@ -2376,6 +2379,9 @@ fi
# ||----w |
# || ||
%changelog
+* Wed Feb 29 2012 Mark Wielaard <mark(a)klomp.org> - 3.3.0-0.rc5.git2.3
+- Add -r to debuginfo_args to invoke eu-strip --reloc-debug-sections.
+
* Tue Feb 28 2012 Josh Boyer <jwboyer(a)redhat.com>
- Add patch to enable keyboard backlight on Sony laptops (rhbz 728478)
--
1.7.7.6
12 years
Re: F16 Linux 3.1 soft lockups
by Michał Piotrowski
Hi,
W dniu 7 stycznia 2012 16:34 użytkownik Michał Piotrowski
<mkkp4x4(a)gmail.com> napisał:
> Hi,
>
> I've noticed some strange soft lockup behaviour on my system (please
> see the attachment). Soft lockup appears to be caused by kswapd0
> process. It seems to me that in both cases this error occured when I
> used "git fsck --full" or "git gc" commands.
>
I've got the same problem on 3.2.6-3.fc16. Any ideas what might be
happening? I turned off the swap partition to see if this help.
Feb 20 18:18:47 ozzy kernel: [33356.102007] BUG: soft lockup - CPU#1
stuck for 23s! [kswapd0:36]
Feb 20 18:18:47 ozzy kernel: [33356.102008] Modules linked in:
smsc47m192 hwmon_vid coretemp i2c_i801 serio_raw iTCO_wdt
iTCO_vendor_support r8169 mii sata_si
l i915 drm_kms_helper drm i2c_algo_bit i2c_core video [last unloaded:
scsi_wait_scan]
Feb 20 18:18:47 ozzy kernel: [33356.102008] CPU 1
Feb 20 18:18:47 ozzy kernel: [33356.102008] Modules linked in:
smsc47m192 hwmon_vid coretemp i2c_i801 serio_raw iTCO_wdt
iTCO_vendor_support r8169 mii sata_si
l i915 drm_kms_helper drm i2c_algo_bit i2c_core video [last unloaded:
scsi_wait_scan]
Feb 20 18:18:47 ozzy kernel: [33356.102008]
Feb 20 18:18:47 ozzy kernel: [33356.102008] Pid: 36, comm: kswapd0 Not
tainted 3.2.6-3.fc16.x86_64 #1 /D945GCLF2
Feb 20 18:18:47 ozzy kernel: [33356.102008] RIP:
0010:[<ffffffff815e18b1>] [<ffffffff815e18b1>]
_raw_spin_trylock+0x1/0x40
Feb 20 18:18:47 ozzy kernel: [33356.102008] RSP: 0018:ffff88007834bb60
EFLAGS: 00000282
Feb 20 18:18:47 ozzy kernel: [33356.102008] RAX: 000000009d689d68 RBX:
ffff880042762700 RCX: 0000000000000014
Feb 20 18:18:47 ozzy kernel: [33356.102008] RDX: 0000000000009d68 RSI:
ffff88004271bcc0 RDI: ffff880042762390
Feb 20 18:18:47 ozzy kernel: [33356.102008] RBP: ffff88007834bbc0 R08:
ffff880042762ad8 R09: ffffc90000000000
Feb 20 18:18:47 ozzy kernel: [33356.102008] R10: 0000000000000000 R11:
0000000000000002 R12: ffff88007834bb00
Feb 20 18:18:47 ozzy kernel: [33356.102008] R13: 0000000000000282 R14:
ffff88007834bb00 R15: ffff88007f293780
Feb 20 18:18:47 ozzy kernel: [33356.102008] FS:
0000000000000000(0000) GS:ffff88007f280000(0000)
knlGS:0000000000000000
Feb 20 18:18:47 ozzy kernel: [33356.102008] CS: 0010 DS: 0000 ES:
0000 CR0: 000000008005003b
Feb 20 18:18:47 ozzy kernel: [33356.102008] CR2: 00007f4f3961e000 CR3:
0000000001a05000 CR4: 00000000000006e0
Feb 20 18:18:47 ozzy kernel: [33356.102008] DR0: 0000000000000000 DR1:
0000000000000000 DR2: 0000000000000000
Feb 20 18:18:47 ozzy kernel: [33356.102008] DR3: 0000000000000000 DR6:
00000000ffff0ff0 DR7: 0000000000000400
Feb 20 18:18:47 ozzy kernel: [33356.102008] Process kswapd0 (pid: 36,
threadinfo ffff88007834a000, task ffff88007b63c560)
Feb 20 18:18:47 ozzy kernel: [33356.102008] Stack:
Feb 20 18:18:47 ozzy kernel: [33356.102008] ffff88007834bbc0
ffffffff8118ef15 0000000000000240 ffff88004271bcc0
Feb 20 18:18:47 ozzy kernel: [33356.102008] ffff88007834bba0
ffff88004271c140 ffffffffffffff04 ffff88004272d500
Feb 20 18:18:47 ozzy kernel: [33356.102008] ffff88004272d4dc
ffff880076191800 0000000000000000 ffff8800761918e0
Feb 20 18:18:47 ozzy kernel: [33356.102008] Call Trace:
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff8118ef15>] ?
shrink_dentry_list+0xa5/0x1e0
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff8118fc11>]
prune_dcache_sb+0x121/0x140
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff8117c060>]
prune_super+0x130/0x1a0
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff8112bab4>]
shrink_slab+0x154/0x310
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff8112f22a>]
balance_pgdat+0x4fa/0x6c0
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff8112f568>]
kswapd+0x178/0x3d0
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff815df2c4>] ?
__schedule+0x3d4/0x8c0
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff81090440>] ?
remove_wait_queue+0x50/0x50
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff8112f3f0>] ?
balance_pgdat+0x6c0/0x6c0
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff8108fb9c>]
kthread+0x8c/0xa0
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff815ebaf4>]
kernel_thread_helper+0x4/0x10
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff8108fb10>] ?
kthread_worker_fn+0x190/0x190
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff815ebaf0>] ?
gs_change+0x13/0x13
Feb 20 18:18:47 ozzy kernel: [33356.102008] Code: 66 2e 0f 1f 84 00 00
00 00 00 55 48 c7 c2 ff ff ff ff be 01 00 00 00 48 89 e5 e8 8b fe ff
ff 5d c3 90 90 90 90 90 90 90 90 90 55 <48> 89 e5 66 66 66 66 90 8b 17
31 c0 89 d1 c1 e9 10 66 39 ca 74
Feb 20 18:18:47 ozzy kernel: [33356.102008] Call Trace:
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff8118ef15>] ?
shrink_dentry_list+0xa5/0x1e0
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff8118fc11>]
prune_dcache_sb+0x121/0x140
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff8117c060>]
prune_super+0x130/0x1a0
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff8112bab4>]
shrink_slab+0x154/0x310
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff8112f22a>]
balance_pgdat+0x4fa/0x6c0
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff8112f568>]
kswapd+0x178/0x3d0
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff815df2c4>] ?
__schedule+0x3d4/0x8c0
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff81090440>] ?
remove_wait_queue+0x50/0x50
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff8112f3f0>] ?
balance_pgdat+0x6c0/0x6c0
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff8108fb9c>]
kthread+0x8c/0xa0
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff815ebaf4>]
kernel_thread_helper+0x4/0x10
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff8108fb10>] ?
kthread_worker_fn+0x190/0x190
Feb 20 18:18:47 ozzy kernel: [33356.102008] [<ffffffff815ebaf0>] ?
gs_change+0x13/0x13
--
Best regards,
Michal
http://eventhorizon.pl/
12 years
BUG: soft lockup - CPU#0 stuck for 29s! [X:811] (70 lines?)
by Frank Murphy
Can someone point me to the correct kernel component for bz.
Abrt added me to: https://bugzilla.redhat.com/show_bug.cgi?id=713687
But that seems to be completly different.
Snipped from /var/log/messages:
Feb 23 12:14:03 test07 kernel: [ 6068.185344] BUG: soft lockup - CPU#0
stuck for 29s! [X:811]
Feb 23 12:14:03 test07 kernel: [ 6068.186283] Modules linked in: nfs
nfs_acl auth_rpcgss fscache lockd sunrpc nf_conntrack_ipv4
nf_defrag_ipv4 xt_state nf_conntrack microcode virtio_net virtio_balloon
i6300esb virtio_blk [last unloaded: scsi_wait_scan]
Feb 23 12:14:03 test07 kernel: [ 6068.186283] Modules linked in: nfs
nfs_acl auth_rpcgss fscache lockd sunrpc nf_conntrack_ipv4
nf_defrag_ipv4 xt_state nf_conntrack microcode virtio_net virtio_balloon
i6300esb virtio_blk [last unloaded: scsi_wait_scan]
Feb 23 12:14:03 test07 kernel: [ 6068.186283]
Feb 23 12:14:03 test07 kernel: [ 6068.186283] Pid: 811, comm: X Not
tainted 3.3.0-0.rc4.git0.1.fc18.i686 #1 Bochs Bochs
Feb 23 12:14:03 test07 kernel: [ 6068.186283] EIP: 0060:[<c043d885>]
EFLAGS: 00203206 CPU: 0
Feb 23 12:14:03 test07 kernel: [ 6068.186283] EIP is at
__do_softirq+0x55/0x190
Feb 23 12:14:03 test07 kernel: [ 6068.186283] EAX: 00000000 EBX:
00000008 ECX: 00000000 EDX: 00000000
Feb 23 12:14:03 test07 kernel: [ 6068.186283] ESI: f6722000 EDI:
c043d830 EBP: f440bff8 ESP: f440bfc4
Feb 23 12:14:03 test07 kernel: [ 6068.186283] DS: 007b ES: 007b FS:
00d8 GS: 00e0 SS: 0068
Feb 23 12:14:03 test07 kernel: [ 6068.186283] Process X (pid: 811,
ti=f440a000 task=f35bcb60 task.ti=f6722000)
Feb 23 12:14:03 test07 kernel: [ 6068.186283] Stack:
Feb 23 12:14:03 test07 kernel: [ 6068.186283] 00000000 00000000
00000000 00000000 00000000 00000000 00000000 0000000a
Feb 23 12:14:03 test07 kernel: [ 6068.186283] 00000100 00000008
f6723f68 f6722000 c043d830 f6723f78 c0405346
Feb 23 12:14:03 test07 kernel: [ 6068.186283] Call Trace:
Feb 23 12:14:03 test07 kernel: [ 6068.186283] [<c043d830>] ?
remote_softirq_receive+0x40/0x40
Feb 23 12:14:03 test07 kernel: [ 6068.186283] <IRQ>
Feb 23 12:14:03 test07 kernel: [ 6068.186283] [<c043dc0d>] ?
irq_exit+0x9d/0xb0
Feb 23 12:14:03 test07 kernel: [ 6068.186283] [<c0404fbb>] ?
do_IRQ+0x4b/0xc0
Feb 23 12:14:03 test07 kernel: [ 6068.186283] [<c043dbd7>] ?
irq_exit+0x67/0xb0
Feb 23 12:14:03 test07 kernel: [ 6068.186283] [<c041f77e>] ?
smp_apic_timer_interrupt+0x5e/0x90
Feb 23 12:14:03 test07 kernel: [ 6068.186283] [<c092d8f0>] ?
common_interrupt+0x30/0x38
Feb 23 12:14:03 test07 kernel: [ 6068.186283] Code: 00 01 00 00 64 a1 ec
36 c4 c0 89 5d f0 89 45 e4 c7 45 e8 0a 00 00 00 8d b4 26 00 00 00 00 64
c7 05 c0 7f c4 c0 00 00 00 00 fb 90 <8d> 74 26 00 bf 00 fa b3 c0 eb 08
83 c7 04 d1 6d f0 74 57 f6 45
Feb 23 12:14:03 test07 kernel: [ 6068.186283] Call Trace:
Feb 23 12:14:03 test07 kernel: [ 6068.186283] [<c043d830>] ?
remote_softirq_receive+0x40/0x40
Feb 23 12:14:03 test07 kernel: [ 6068.186283] <IRQ> [<c043dc0d>] ?
irq_exit+0x9d/0xb0
Feb 23 12:14:03 test07 kernel: [ 6068.186283] [<c0404fbb>] ?
do_IRQ+0x4b/0xc0
Feb 23 12:14:03 test07 kernel: [ 6068.186283] [<c043dbd7>] ?
irq_exit+0x67/0xb0
Feb 23 12:14:03 test07 kernel: [ 6068.186283] [<c041f77e>] ?
smp_apic_timer_interrupt+0x5e/0x90
Feb 23 12:14:03 test07 kernel: [ 6068.186283] [<c092d8f0>] ?
common_interrupt+0x30/0x38
Feb 23 12:14:04 test07 abrt-dump-oops[318]: abrt-dump-oops: Found oopses: 1
Feb 23 12:14:05 test07 abrt-dump-oops[318]: abrt-dump-oops: Can't open
'/etc/abrt/abrt.conf'
Feb 23 12:14:05 test07 abrt-dump-oops[318]: abrt-dump-oops: Creating
dump directories
Feb 23 12:14:05 test07 abrtd: Directory 'oops-2012-02-23-12:14:04-318-0'
creation detected
Feb 23 12:14:05 test07 abrt-dump-oops: Reported 1 kernel oopses to Abrt
Feb 23 12:14:05 test07 abrtd: Can't open file
'/var/spool/abrt/oops-2012-02-23-12:14:04-318-0/uid': No such file or
directory
Feb 23 12:14:07 test07 abrtd: New problem directory
/var/spool/abrt/oops-2012-02-23-12:14:04-318-0, processing
Feb 23 12:14:07 test07 abrtd: Can't open file
'/var/spool/abrt/oops-2012-02-23-12:14:04-318-0/uid': No such file or
directory
Feb 23 12:23:15 test07 kernel: [ 6619.931865] BUG: soft lockup - CPU#0
stuck for 28s! [X:811]
--
Regards,
Frank
"Jack of all, fubars"
12 years
kernel-3.3.0-0.rc4.git0.3 will not boot on f16
by Steve Dickson
Anybody have a clue as to way kernel-3.3.0-0.rc4.git0.3 die
on a fully updated f16 vm?
Here is the boot trace... tia...
Loading Fedora (3.3.0-0.rc4.git0.3.lnfs.fc17.x86_64)
Loading initial ramdisk ...
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.3.0-0.rc4.git0.3.lnfs.fc17.x86_64.debug (mockbuild(a)x86-13.phx2.fedoraproject.org) (gcc version 4.7.0 20120208 (Red Hat 4.7.0-0.12) (GCC) ) #1 SMP Tue Feb 21 12:24:32 UTC 2012
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-3.3.0-0.rc4.git0.3.lnfs.fc17.x86_64 root=/dev/mapper/vg_localhost-lv_root ro rd.lvm.lv=vg_localhost/lv_swap rd.md=0 rd.dm=0 rd.lvm.lv=vg_localhost/lv_root KEYTABLE=us SYSFONT=latarcyrheb-sun16 rd.luks=0 LANG=en_US.UTF-8 console=tty0 console=ttyS0,115200n8
[ 0.000000] Disabled fast string operations
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: 0000000000000000 - 000000000009bc00 (usable)
[ 0.000000] BIOS-e820: 000000000009bc00 - 00000000000a0000 (reserved)
[ 0.000000] BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
[ 0.000000] BIOS-e820: 0000000000100000 - 000000007fffd000 (usable)
[ 0.000000] BIOS-e820: 000000007fffd000 - 0000000080000000 (reserved)
[ 0.000000] BIOS-e820: 00000000fffbc000 - 0000000100000000 (reserved)
[ 0.000000] NX (Execute Disable) protection: active
[ 0.000000] DMI 2.4 present.
[ 0.000000] No AGP bridge found
[ 0.000000] last_pfn = 0x7fffd max_arch_pfn = 0x400000000
[ 0.000000] PAT not supported by CPU.
[ 0.000000] found SMP MP-table at [ffff8800000fda40] fda40
[ 0.000000] init_memory_mapping: 0000000000000000-000000007fffd000
[ 0.000000] RAMDISK: 35f90000 - 36fc0000
[ 0.000000] ACPI: RSDP 00000000000fd9f0 00014 (v00 BOCHS )
[ 0.000000] ACPI: RSDT 000000007fffd650 00030 (v01 BOCHS BXPCRSDT 00000001 BXPC 00000001)
[ 0.000000] ACPI: FACP 000000007ffffe20 00074 (v01 BOCHS BXPCFACP 00000001 BXPC 00000001)
[ 0.000000] ACPI: DSDT 000000007fffd870 02544 (v01 BXPC BXDSDT 00000001 INTL 20090123)
[ 0.000000] ACPI: FACS 000000007ffffdc0 00040
[ 0.000000] ACPI: SSDT 000000007fffd770 000FF (v01 BOCHS BXPCSSDT 00000001 BXPC 00000001)
[ 0.000000] ACPI: APIC 000000007fffd680 00080 (v01 BOCHS BXPCAPIC 00000001 BXPC 00000001)
[ 0.000000] No NUMA configuration found
[ 0.000000] Faking a node at 0000000000000000-000000007fffd000
[ 0.000000] Initmem setup node 0 0000000000000000-000000007fffd000
[ 0.000000] NODE_DATA [000000007ffd6000 - 000000007fffcfff]
[ 0.000000] kvm-clock: Using msrs 4b564d01 and 4b564d00
[ 0.000000] kvm-clock: cpu 0, msr 0:1ef4e81, boot clock
[ 0.000000] Zone PFN ranges:
[ 0.000000] DMA 0x00000010 -> 0x00001000
[ 0.000000] DMA32 0x00001000 -> 0x00100000
[ 0.000000] Normal empty
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] Early memory PFN ranges
[ 0.000000] 0: 0x00000010 -> 0x0000009b
[ 0.000000] 0: 0x00000100 -> 0x0007fffd
[ 0.000000] ACPI: PM-Timer IO Port: 0xb008
[ 0.000000] ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
[ 0.000000] ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
[ 0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
[ 0.000000] ACPI: IOAPIC (id[0x02] address[0xfec00000] gsi_base[0])
[ 0.000000] IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
[ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
[ 0.000000] Using ACPI (MADT) for SMP configuration information
[ 0.000000] SMP: Allowing 2 CPUs, 0 hotplug CPUs
[ 0.000000] PM: Registered nosave memory: 000000000009b000 - 000000000009c000
[ 0.000000] PM: Registered nosave memory: 000000000009c000 - 00000000000a0000
[ 0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
[ 0.000000] PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
[ 0.000000] Allocating PCI resources starting at 80000000 (gap: 80000000:7ffbc000)
[ 0.000000] Booting paravirtualized kernel on KVM
[ 0.000000] setup_percpu: NR_CPUS:4096 nr_cpumask_bits:2 nr_cpu_ids:2 nr_node_ids:1
[ 0.000000] PERCPU: Embedded 476 pages/cpu @ffff88007d200000 s1920384 r8192 d21120 u2097152
[ 0.000000] kvm-clock: cpu 0, msr 0:7d3d3e81, primary cpu clock
[ 0.000000] Built 1 zonelists in Node order, mobility grouping on. Total pages: 515971
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-3.3.0-0.rc4.git0.3.lnfs.fc17.x86_64 root=/dev/mapper/vg_localhost-lv_root ro rd.lvm.lv=vg_localhost/lv_swap rd.md=0 rd.dm=0 rd.lvm.lv=vg_localhost/lv_root KEYTABLE=us SYSFONT=latarcyrheb-sun16 rd.luks=0 LANG=en_US.UTF-8 console=tty0 console=ttyS0,115200n8
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Checking aperture...
[ 0.000000] No AGP bridge found
[ 0.000000] Memory: 2013236k/2097140k available (6829k kernel code, 468k absent, 83436k reserved, 6609k data, 3208k init)
[ 0.000000] SLUB: Genslabs=15, HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU dyntick-idle grace-period acceleration is enabled.
[ 0.000000] RCU lockdep checking is enabled.
[ 0.000000] NR_IRQS:262400 nr_irqs:512 16
[ 0.000000] Console: colour VGA+ 80x25
[ 0.000000] console [tty0] enabled
[ 0.000000] console [ttyS0] enabled
[ 0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[ 0.000000] ... MAX_LOCKDEP_SUBCLASSES: 8
[ 0.000000] ... MAX_LOCK_DEPTH: 48
[ 0.000000] ... MAX_LOCKDEP_KEYS: 8191
[ 0.000000] ... CLASSHASH_SIZE: 4096
[ 0.000000] ... MAX_LOCKDEP_ENTRIES: 16384
[ 0.000000] ... MAX_LOCKDEP_CHAINS: 32768
[ 0.000000] ... CHAINHASH_SIZE: 16384
[ 0.000000] memory used by lock dependency info: 6367 kB
[ 0.000000] per task-struct memory footprint: 2688 bytes
[ 0.000000] allocated 8388608 bytes of page_cgroup
[ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[ 0.000000] kmemleak: Kernel memory leak detector disabled
[ 0.000000] Detected 1994.725 MHz processor.
[ 0.002999] Calibrating delay loop (skipped) preset value.. 3989.45 BogoMIPS (lpj=1994725)
[ 0.004008] pid_max: default: 32768 minimum: 301
[ 0.006035] Security Framework initialized
[ 0.007016] SELinux: Initializing.
[ 0.009593] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.011639] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.013306] Mount-cache hash table entries: 256
[ 0.018386] Initializing cgroup subsys cpuacct
[ 0.019008] Initializing cgroup subsys memory
[ 0.020208] Initializing cgroup subsys devices
[ 0.022006] Initializing cgroup subsys freezer
[ 0.023015] Initializing cgroup subsys net_cls
[ 0.024015] Initializing cgroup subsys blkio
[ 0.025112] Initializing cgroup subsys perf_event
[ 0.027072] Disabled fast string operations
[ 0.028022] mce: CPU supports 10 MCE banks
[ 0.035370] ACPI: Core revision 20120111
[ 0.111456] ftrace: allocating 22771 entries in 89 pages
[ 0.124742] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.124995] CPU0: Intel QEMU Virtual CPU version (cpu64-rhel6) stepping 03
[ 0.128987] Performance Events: Broken PMU hardware detected, using software events only.
[ 0.131314] NMI watchdog disabled (cpu0): hardware events not enabled
[ 0.133675] lockdep: fixing up alternatives.
[ 0.135194] Booting Node 0, Processors #1 Ok.
[ 0.002999] Disabled fast string operations
[ 0.150031] kvm-clock: cpu 1, msr 0:7d5d3e81, secondary cpu clock
[ 0.150156] NMI watchdog disabled (cpu1): hardware events not enabled
[ 0.150320] Brought up 2 CPUs
[ 0.150323] Total of 2 processors activated (7978.90 BogoMIPS).
[ 0.159927] devtmpfs: initialized
[ 0.166092] atomic64 test passed for x86-64 platform with CX8 and with SSE
[ 0.167181] RTC time: 22:04:24, date: 02/21/12
[ 0.169617] NET: Registered protocol family 16
[ 0.174415] ACPI: bus type pci registered
[ 0.176251] PCI: Using configuration type 1 for base access
[ 0.200053] bio: create slab <bio-0> at 0
[ 0.202326] ACPI: Added _OSI(Module Device)
[ 0.203017] ACPI: Added _OSI(Processor Device)
[ 0.204003] ACPI: Added _OSI(3.0 _SCP Extensions)
[ 0.204997] ACPI: Added _OSI(Processor Aggregator Device)
[ 0.297776] ACPI: Interpreter enabled
[ 0.298973] ACPI: (supports S0 S5)
[ 0.301009] ACPI: Using IOAPIC for interrupt routing
[ 0.445692] ACPI: No dock devices found.
[ 0.445950] PCI: Ignoring host bridge windows from ACPI; if necessary, use "pci=use_crs" and report a bug
[ 0.448373] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[ 0.451058] PCI host bridge to bus 0000:00
[ 0.451947] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 0.452946] pci_bus 0000:00: root bus resource [mem 0x00000000-0xffffffffff]
[ 0.457569] pci 0000:00:01.3: quirk: [io 0xb000-0xb03f] claimed by PIIX4 ACPI
[ 0.458956] pci 0000:00:01.3: quirk: [io 0xb100-0xb10f] claimed by PIIX4 SMB
[ 0.538778] pci0000:00: Unable to request _OSC control (_OSC support mask: 0x1e)
[ 1.154311] ACPI: PCI Interrupt Link [LNKA] (IRQs 5 *10 11)
[ 1.159512] ACPI: PCI Interrupt Link [LNKB] (IRQs 5 *10 11)
[ 1.165036] ACPI: PCI Interrupt Link [LNKC] (IRQs 5 10 *11)
[ 1.170383] ACPI: PCI Interrupt Link [LNKD] (IRQs 5 10 *11)
[ 1.175292] ACPI: PCI Interrupt Link [LNKS] (IRQs 9) *0
[ 1.180246] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
[ 1.182098] vgaarb: loaded
[ 1.182834] vgaarb: bridge control possible 0000:00:02.0
[ 1.187379] SCSI subsystem initialized
[ 1.190208] usbcore: registered new interface driver usbfs
[ 1.191962] usbcore: registered new interface driver hub
[ 1.193921] usbcore: registered new device driver usb
[ 1.197010] PCI: Using ACPI for IRQ routing
[ 1.200779] NetLabel: Initializing
[ 1.200832] NetLabel: domain hash size = 128
[ 1.202829] NetLabel: protocols = UNLABELED CIPSOv4
[ 1.204024] NetLabel: unlabeled traffic allowed by default
[ 1.205090] Switching to clocksource kvm-clock
[ 1.401955] pnp: PnP ACPI init
[ 1.403131] ACPI: bus type pnp registered
[ 1.421032] pnp: PnP ACPI: found 7 devices
[ 1.422094] ACPI: ACPI bus type pnp unregistered
[ 1.482752] NET: Registered protocol family 2
[ 1.484821] IP route cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 1.490397] TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
[ 1.496089] TCP bind hash table entries: 65536 (order: 10, 5242880 bytes)
[ 1.505343] TCP: Hash tables configured (established 262144 bind 65536)
[ 1.506840] TCP reno registered
[ 1.507860] UDP hash table entries: 1024 (order: 5, 196608 bytes)
[ 1.509467] UDP-Lite hash table entries: 1024 (order: 5, 196608 bytes)
[ 1.511853] NET: Registered protocol family 1
[ 1.513079] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[ 1.514424] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[ 1.519936] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[ 1.522521] Unpacking initramfs...
[ 2.332754] Freeing initrd memory: 16576k freed
[ 2.511978] DMA-API: preallocated 32768 debug entries
[ 2.513222] DMA-API: debugging enabled by kernel config
[ 2.522176] Intel AES-NI instructions are not detected.
[ 2.522176] cryptomgr_test used greatest stack depth: 6120 bytes left
[ 2.528051] audit: initializing netlink socket (disabled)
[ 2.529643] type=2000 audit(1329861867.528:1): initialized
[ 2.556887] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 2.605061] VFS: Disk quotas dquot_6.5.2
[ 2.606917] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 2.617065] msgmni has been set to 3964
[ 2.625141] cryptomgr_test used greatest stack depth: 5496 bytes left
[ 2.630107] cryptomgr_test used greatest stack depth: 5352 bytes left
[ 2.630350] alg: No test for stdrng (krng)
[ 2.630379] NET: Registered protocol family 38
[ 2.630917] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 2.631259] io scheduler noop registered
[ 2.631262] io scheduler deadline registered
[ 2.631991] io scheduler cfq registered (default)
[ 2.631993] start plist test
[ 2.634288] end plist test
[ 2.641796] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[ 2.643519] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[ 2.644949] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[ 2.647662] acpiphp: Slot [1] registered
[ 2.649266] acpiphp: Slot [2] registered
[ 2.650776] acpiphp: Slot [3] registered
[ 2.652351] acpiphp: Slot [4] registered
[ 2.653860] acpiphp: Slot [5] registered
[ 2.655424] acpiphp: Slot [6] registered
[ 2.656925] acpiphp: Slot [7] registered
[ 2.658509] acpiphp: Slot [8] registered
[ 2.660047] acpiphp: Slot [9] registered
[ 2.661582] acpiphp: Slot [10] registered
[ 2.663198] acpiphp: Slot [11] registered
[ 2.664721] acpiphp: Slot [12] registered
[ 2.666299] acpiphp: Slot [13] registered
[ 2.668283] acpiphp: Slot [14] registered
[ 2.669996] acpiphp: Slot [15] registered
[ 2.671563] acpiphp: Slot [16] registered
[ 2.673368] acpiphp: Slot [17] registered
[ 2.674903] acpiphp: Slot [18] registered
[ 2.676524] acpiphp: Slot [19] registered
[ 2.678089] acpiphp: Slot [20] registered
[ 2.679864] acpiphp: Slot [21] registered
[ 2.681439] acpiphp: Slot [22] registered
[ 2.682969] acpiphp: Slot [23] registered
[ 2.684509] acpiphp: Slot [24] registered
[ 2.686322] acpiphp: Slot [25] registered
[ 2.687858] acpiphp: Slot [26] registered
[ 2.689423] acpiphp: Slot [27] registered
[ 2.690967] acpiphp: Slot [28] registered
[ 2.692527] acpiphp: Slot [29] registered
[ 2.694110] acpiphp: Slot [30] registered
[ 2.695637] acpiphp: Slot [31] registered
[ 2.729869] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
[ 2.731871] ACPI: Power Button [PWRF]
[ 2.799630] GHES: HEST is not enabled!
[ 2.804228] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 11
[ 2.809487] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 10
[ 2.816204] ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 10
[ 2.820750] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 2.846300] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 2.875884] 00:05: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 2.881200] hpet_acpi_add: no address or irqs in _CRS
[ 2.883412] Non-volatile memory driver v1.3
[ 2.884580] Linux agpgart interface v0.103
[ 2.903503] loop: module loaded
[ 2.914786] scsi0 : ata_piix
[ 2.918269] scsi1 : ata_piix
[ 2.920001] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc000 irq 14
[ 2.921468] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc008 irq 15
[ 2.923932] Fixed MDIO Bus: probed
[ 2.925912] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.927566] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 2.929130] uhci_hcd: USB Universal Host Controller Interface driver
[ 2.934421] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 11
[ 2.935811] uhci_hcd 0000:00:01.2: UHCI Host Controller
[ 2.939464] uhci_hcd 0000:00:01.2: new USB bus registered, assigned bus number 1
[ 2.942292] uhci_hcd 0000:00:01.2: irq 11, io base 0x0000c020
[ 2.944987] usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
[ 2.947024] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.949522] usb usb1: Product: UHCI Host Controller
[ 2.951485] usb usb1: Manufacturer: Linux 3.3.0-0.rc4.git0.3.lnfs.fc17.x86_64.debug uhci_hcd
[ 2.954403] usb usb1: SerialNumber: 0000:00:01.2
[ 2.959424] hub 1-0:1.0: USB hub found
[ 2.961435] hub 1-0:1.0: 2 ports detected
[ 2.965767] usbcore: registered new interface driver usbserial
[ 2.967728] USB Serial support registered for generic
[ 2.969473] usbcore: registered new interface driver usbserial_generic
[ 2.971315] usbserial: USB Serial Driver core
[ 2.972952] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
[ 2.976611] serio: i8042 KBD port at 0x60,0x64 irq 1
[ 2.978169] serio: i8042 AUX port at 0x60,0x64 irq 12
[ 2.982348] mousedev: PS/2 mouse device common for all mice
[ 2.989219] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input1
[ 2.994311] rtc_cmos 00:01: RTC can wake from S4
[ 2.997413] rtc_cmos 00:01: rtc core: registered rtc_cmos as rtc0
[ 2.999581] rtc0: alarms up to one day, 114 bytes nvram
[ 3.003747] device-mapper: uevent: version 1.0.3
[ 3.012897] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel(a)redhat.com
[ 3.017134] cpuidle: using governor ladder
[ 3.018392] cpuidle: using governor menu
[ 3.020581] EFI Variables Facility v0.08 2004-May-17
[ 3.024219] usbcore: registered new interface driver usbhid
[ 3.025526] usbhid: USB HID core driver
[ 3.028713] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 3.030343] TCP cubic registered
[ 3.031287] Initializing XFRM netlink socket
[ 3.034912] NET: Registered protocol family 10
[ 3.042677] Mobile IPv6
[ 3.043551] NET: Registered protocol family 17
[ 3.044695] Registering the dns_resolver key type
[ 3.047567] registered taskstats version 1
[ 3.051777] Magic number: 0:401:98
[ 3.053103] rtc_cmos 00:01: setting system clock to 2012-02-21 22:04:27 UTC (1329861867)
[ 3.056098] Initializing network drop monitor service
[ 3.078843] Freeing unused kernel memory: 3208k freed
[ 3.082479] Write protecting the kernel read-only data: 12288k
[ 3.089940] Freeing unused kernel memory: 1344k freed
[ 3.097028] Freeing unused kernel memory: 1324k freed
[ 3.110238] mknod used greatest stack depth: 5008 bytes left
[ 3.265131] usb 1-1: new full-speed USB device number 2 using uhci_hcd
[ 3.446310] input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input2
[ 3.516212] Refined TSC clocksource calibration: 1994.985 MHz.
[ 3.518184] usb 1-1: New USB device found, idVendor=0627, idProduct=0001
[ 3.520114] usb 1-1: New USB device strings: Mfr=1, Product=3, SerialNumber=5
[ 3.522268] usb 1-1: Product: QEMU USB Tablet
[ 3.523631] usb 1-1: Manufacturer: QEMU 0.12.1
[ 3.525124] usb 1-1: SerialNumber: 42
[ 3.569273] input: QEMU 0.12.1 QEMU USB Tablet as /devices/pci0000:00/0000:00:01.2/usb1/1-1/1-1:1.0/input/input3
[ 3.575998] generic-usb 0003:0627:0001.0001: input,hidraw0: USB HID v0.01 Pointer [QEMU 0.12.1 QEMU USB Tablet] on usb-0000:00:01.2-1/input0
[ 4.087703] cp used greatest stack depth: 4992 bytes left
[ 4.150722] dracut: dracut-013-20.fc16
[ 4.203301] dracut: rd.luks=0: removing cryptoluks activation
[ 4.269407] udevd[102]: starting version 173
[ 4.386063] udevadm used greatest stack depth: 4872 bytes left
[ 4.437655] kbd_mode used greatest stack depth: 4776 bytes left
[ 4.577262] console_init used greatest stack depth: 4672 bytes left
[ 4.617369] dracut: Starting plymouth daemon
[ 4.975309] dracut: rd.dm=0: removing DM RAID activation
[ 5.006316] dracut: rd.md=0: removing MD RAID activation
[ 5.274249] modprobe used greatest stack depth: 4416 bytes left
[ 31.204544] dracut Warning: No root device "block:/dev/mapper/vg_localhost-lv_root" found
[ 31.222921] dracut Warning: LVM vg_localhost/lv_swap not found
dracut Warning: LVM vg_localhost/lv_swap not found
[ 31.225489] dracut Warning: LVM vg_localhost/lv_root not found
dracut Warning: LVM vg_localhost/lv_root not found
Dropping to debug shell.
sh: can't access tty; job control turned off
dracut:/#
12 years
enable CONFIG_AUDIT_LOGINUID_IMMUTABLE on F17
by Eric Paris
In F17 I'd like to see CONFIG_AUDIT_LOGINUID_IMMUTABLE turned on.
In the old days when an admin restarted a service they actually did the
restart themselves. Thus the new daemon would be attributed to the
loginuid of the admin. If this daemon was ssh, when a new user logged
in we needed a method to 'switch' the loginuid so the audit trail was
associated with this new user, not the admin who started sshd.
With the advent of systemd admins do not directly launch daemons and
instead init launches it on their behalf. With this option set sshd
will not need to 'switch' its loginuid, instead it will 'set' it for the
first time. Even after a restart. This couldn't work under sysvinit or
upstart, but since Fedora has removed almost all init scripts, noone can
be using sysvinit or upstart any more!
With this enabled we will break people directly launching login
utilities instead of going through init. However it will allow us to
remove some permissions from applications (CAP_AUDIT_CONTROL) since
setting the loginuid will no longer be a privileged operation and will
greatly increase the reliability of audit logs to be able to attest to
what user performed what operation.
-Eric
12 years, 1 month
[PATCH 1/1] Update to keyring based idmapping code.
by Steve Dickson
Upstream has changed the way it wants to introduce
the new keyring based id mapping. These three patches
reflect that change.
Signed-off-by: Steve Dickson <steved(a)redhat.com>
---
kernel.spec | 6 +
linux-3.2-newidmapper-01.patch | 217 ++++++++++++++++++++++++++++++++++++++++
linux-3.2-newidmapper-02.patch | 97 ++++++++++++++++++
linux-3.2-newidmapper-03.patch | 40 ++++++++
4 files changed, 360 insertions(+), 0 deletions(-)
create mode 100644 linux-3.2-newidmapper-01.patch
create mode 100644 linux-3.2-newidmapper-02.patch
create mode 100644 linux-3.2-newidmapper-03.patch
diff --git a/kernel.spec b/kernel.spec
index 5f324c6..4e9e432 100644
--- a/kernel.spec
+++ b/kernel.spec
@@ -716,6 +716,9 @@ Patch2901: linux-2.6-v4l-dvb-experimental.patch
# NFSv4
Patch1101: linux-3.1-keys-remove-special-keyring.patch
+Patch1102: linux-3.2-newidmapper-01.patch
+Patch1103: linux-3.2-newidmapper-02.patch
+Patch1104: linux-3.2-newidmapper-03.patch
# patches headed upstream
Patch12016: disable-i8042-check-on-apple-mac.patch
@@ -1325,6 +1328,9 @@ ApplyPatch arm-smsc-support-reading-mac-address-from-device-tree.patch
# NFSv4
ApplyPatch linux-3.1-keys-remove-special-keyring.patch
+ApplyPatch linux-3.2-newidmapper-01.patch
+ApplyPatch linux-3.2-newidmapper-02.patch
+ApplyPatch linux-3.2-newidmapper-03.patch
# USB
diff --git a/linux-3.2-newidmapper-01.patch b/linux-3.2-newidmapper-01.patch
new file mode 100644
index 0000000..9afbb93
--- /dev/null
+++ b/linux-3.2-newidmapper-01.patch
@@ -0,0 +1,217 @@
+commit e6499c6f4b5f56a16f8b8ef60529c1da28b13aea
+Author: Bryan Schumaker <bjschuma(a)netapp.com>
+Date: Thu Jan 26 16:54:23 2012 -0500
+
+ NFS: Fall back on old idmapper if request_key() fails
+
+ This patch removes the CONFIG_NFS_USE_NEW_IDMAPPER compile option.
+ First, the idmapper will attempt to map the id using /sbin/request-key
+ and nfsidmap. If this fails (if /etc/request-key.conf is not configured
+ properly) then the idmapper will call the legacy code to perform the
+ mapping. I left a comment stating where the legacy code begins to make
+ it easier for somebody to remove in the future.
+
+ Signed-off-by: Bryan Schumaker <bjschuma(a)netapp.com>
+ Signed-off-by: Trond Myklebust <Trond.Myklebust(a)netapp.com>
+
+diff -up linux-3.2.noarch/fs/nfs/idmap.c.orig linux-3.2.noarch/fs/nfs/idmap.c
+--- linux-3.2.noarch/fs/nfs/idmap.c.orig 2012-01-27 10:07:07.209851446 -0500
++++ linux-3.2.noarch/fs/nfs/idmap.c 2012-01-27 10:15:42.914563082 -0500
+@@ -142,8 +142,6 @@ static int nfs_map_numeric_to_string(__u
+ return snprintf(buf, buflen, "%u", id);
+ }
+
+-#ifdef CONFIG_NFS_USE_NEW_IDMAPPER
+-
+ #include <linux/cred.h>
+ #include <linux/sunrpc/sched.h>
+ #include <linux/nfs4.h>
+@@ -328,43 +326,7 @@ static int nfs_idmap_lookup_id(const cha
+ return ret;
+ }
+
+-int nfs_map_name_to_uid(const struct nfs_server *server, const char *name, size_t namelen, __u32 *uid)
+-{
+- if (nfs_map_string_to_numeric(name, namelen, uid))
+- return 0;
+- return nfs_idmap_lookup_id(name, namelen, "uid", uid);
+-}
+-
+-int nfs_map_group_to_gid(const struct nfs_server *server, const char *name, size_t namelen, __u32 *gid)
+-{
+- if (nfs_map_string_to_numeric(name, namelen, gid))
+- return 0;
+- return nfs_idmap_lookup_id(name, namelen, "gid", gid);
+-}
+-
+-int nfs_map_uid_to_name(const struct nfs_server *server, __u32 uid, char *buf, size_t buflen)
+-{
+- int ret = -EINVAL;
+-
+- if (!(server->caps & NFS_CAP_UIDGID_NOMAP))
+- ret = nfs_idmap_lookup_name(uid, "user", buf, buflen);
+- if (ret < 0)
+- ret = nfs_map_numeric_to_string(uid, buf, buflen);
+- return ret;
+-}
+-int nfs_map_gid_to_group(const struct nfs_server *server, __u32 gid, char *buf, size_t buflen)
+-{
+- int ret = -EINVAL;
+-
+- if (!(server->caps & NFS_CAP_UIDGID_NOMAP))
+- ret = nfs_idmap_lookup_name(gid, "group", buf, buflen);
+- if (ret < 0)
+- ret = nfs_map_numeric_to_string(gid, buf, buflen);
+- return ret;
+-}
+-
+-#else /* CONFIG_NFS_USE_NEW_IDMAPPER not defined */
+-
++/* idmap classic begins here */
+ #include <linux/module.h>
+ #include <linux/mutex.h>
+ #include <linux/init.h>
+@@ -796,19 +758,27 @@ static unsigned int fnvhash32(const void
+ int nfs_map_name_to_uid(const struct nfs_server *server, const char *name, size_t namelen, __u32 *uid)
+ {
+ struct idmap *idmap = server->nfs_client->cl_idmap;
++ int ret = -EINVAL;
+
+ if (nfs_map_string_to_numeric(name, namelen, uid))
+ return 0;
+- return nfs_idmap_id(idmap, &idmap->idmap_user_hash, name, namelen, uid);
++ ret = nfs_idmap_lookup_id(name, namelen, "uid", uid);
++ if (ret < 0)
++ ret = nfs_idmap_id(idmap, &idmap->idmap_user_hash, name, namelen, uid);
++ return ret;
+ }
+
+-int nfs_map_group_to_gid(const struct nfs_server *server, const char *name, size_t namelen, __u32 *uid)
++int nfs_map_group_to_gid(const struct nfs_server *server, const char *name, size_t namelen, __u32 *gid)
+ {
+ struct idmap *idmap = server->nfs_client->cl_idmap;
++ int ret = -EINVAL;
+
+- if (nfs_map_string_to_numeric(name, namelen, uid))
++ if (nfs_map_string_to_numeric(name, namelen, gid))
+ return 0;
+- return nfs_idmap_id(idmap, &idmap->idmap_group_hash, name, namelen, uid);
++ ret = nfs_idmap_lookup_id(name, namelen, "gid", gid);
++ if (ret < 0)
++ ret = nfs_idmap_id(idmap, &idmap->idmap_group_hash, name, namelen, gid);
++ return ret;
+ }
+
+ int nfs_map_uid_to_name(const struct nfs_server *server, __u32 uid, char *buf, size_t buflen)
+@@ -816,22 +786,26 @@ int nfs_map_uid_to_name(const struct nfs
+ struct idmap *idmap = server->nfs_client->cl_idmap;
+ int ret = -EINVAL;
+
+- if (!(server->caps & NFS_CAP_UIDGID_NOMAP))
+- ret = nfs_idmap_name(idmap, &idmap->idmap_user_hash, uid, buf);
++ if (!(server->caps & NFS_CAP_UIDGID_NOMAP)) {
++ ret = nfs_idmap_lookup_name(uid, "user", buf, buflen);
++ if (ret < 0)
++ ret = nfs_idmap_name(idmap, &idmap->idmap_user_hash, uid, buf);
++ }
+ if (ret < 0)
+ ret = nfs_map_numeric_to_string(uid, buf, buflen);
+ return ret;
+ }
+-int nfs_map_gid_to_group(const struct nfs_server *server, __u32 uid, char *buf, size_t buflen)
++int nfs_map_gid_to_group(const struct nfs_server *server, __u32 gid, char *buf, size_t buflen)
+ {
+ struct idmap *idmap = server->nfs_client->cl_idmap;
+ int ret = -EINVAL;
+
+- if (!(server->caps & NFS_CAP_UIDGID_NOMAP))
+- ret = nfs_idmap_name(idmap, &idmap->idmap_group_hash, uid, buf);
++ if (!(server->caps & NFS_CAP_UIDGID_NOMAP)) {
++ ret = nfs_idmap_lookup_name(gid, "group", buf, buflen);
++ if (ret < 0)
++ ret = nfs_idmap_name(idmap, &idmap->idmap_group_hash, gid, buf);
++ }
+ if (ret < 0)
+- ret = nfs_map_numeric_to_string(uid, buf, buflen);
++ ret = nfs_map_numeric_to_string(gid, buf, buflen);
+ return ret;
+ }
+-
+-#endif /* CONFIG_NFS_USE_NEW_IDMAPPER */
+diff -up linux-3.2.noarch/fs/nfs/Kconfig.orig linux-3.2.noarch/fs/nfs/Kconfig
+--- linux-3.2.noarch/fs/nfs/Kconfig.orig 2012-01-04 18:55:44.000000000 -0500
++++ linux-3.2.noarch/fs/nfs/Kconfig 2012-01-27 10:15:42.913562572 -0500
+@@ -132,14 +132,3 @@ config NFS_USE_KERNEL_DNS
+ select DNS_RESOLVER
+ select KEYS
+ default y
+-
+-config NFS_USE_NEW_IDMAPPER
+- bool "Use the new idmapper upcall routine"
+- depends on NFS_V4 && KEYS
+- help
+- Say Y here if you want NFS to use the new idmapper upcall functions.
+- You will need /sbin/request-key (usually provided by the keyutils
+- package). For details, read
+- <file:Documentation/filesystems/nfs/idmapper.txt>.
+-
+- If you are unsure, say N.
+diff -up linux-3.2.noarch/fs/nfs/sysctl.c.orig linux-3.2.noarch/fs/nfs/sysctl.c
+--- linux-3.2.noarch/fs/nfs/sysctl.c.orig 2012-01-04 18:55:44.000000000 -0500
++++ linux-3.2.noarch/fs/nfs/sysctl.c 2012-01-27 10:15:42.914563082 -0500
+@@ -32,7 +32,6 @@ static ctl_table nfs_cb_sysctls[] = {
+ .extra1 = (int *)&nfs_set_port_min,
+ .extra2 = (int *)&nfs_set_port_max,
+ },
+-#ifndef CONFIG_NFS_USE_NEW_IDMAPPER
+ {
+ .procname = "idmap_cache_timeout",
+ .data = &nfs_idmap_cache_timeout,
+@@ -40,7 +39,6 @@ static ctl_table nfs_cb_sysctls[] = {
+ .mode = 0644,
+ .proc_handler = proc_dointvec_jiffies,
+ },
+-#endif /* CONFIG_NFS_USE_NEW_IDMAPPER */
+ #endif
+ {
+ .procname = "nfs_mountpoint_timeout",
+diff -up linux-3.2.noarch/include/linux/nfs_idmap.h.orig linux-3.2.noarch/include/linux/nfs_idmap.h
+--- linux-3.2.noarch/include/linux/nfs_idmap.h.orig 2012-01-27 10:06:46.783643915 -0500
++++ linux-3.2.noarch/include/linux/nfs_idmap.h 2012-01-27 10:15:42.915563594 -0500
+@@ -69,36 +69,11 @@ struct nfs_server;
+ struct nfs_fattr;
+ struct nfs4_string;
+
+-#ifdef CONFIG_NFS_USE_NEW_IDMAPPER
+-
+ int nfs_idmap_init(void);
+ void nfs_idmap_quit(void);
+-
+-static inline int nfs_idmap_new(struct nfs_client *clp)
+-{
+- return 0;
+-}
+-
+-static inline void nfs_idmap_delete(struct nfs_client *clp)
+-{
+-}
+-
+-#else /* CONFIG_NFS_USE_NEW_IDMAPPER not set */
+-
+-static inline int nfs_idmap_init(void)
+-{
+- return 0;
+-}
+-
+-static inline void nfs_idmap_quit(void)
+-{
+-}
+-
+ int nfs_idmap_new(struct nfs_client *);
+ void nfs_idmap_delete(struct nfs_client *);
+
+-#endif /* CONFIG_NFS_USE_NEW_IDMAPPER */
+-
+ void nfs_fattr_init_names(struct nfs_fattr *fattr,
+ struct nfs4_string *owner_name,
+ struct nfs4_string *group_name);
diff --git a/linux-3.2-newidmapper-02.patch b/linux-3.2-newidmapper-02.patch
new file mode 100644
index 0000000..9307ee0
--- /dev/null
+++ b/linux-3.2-newidmapper-02.patch
@@ -0,0 +1,97 @@
+commit 3cd0f37a2cc9e4d6188df10041a2441eaa41d991
+Author: Bryan Schumaker <bjschuma(a)netapp.com>
+Date: Thu Jan 26 16:54:24 2012 -0500
+
+ NFS: Keep idmapper include files in one place
+
+ Signed-off-by: Bryan Schumaker <bjschuma(a)netapp.com>
+ Signed-off-by: Trond Myklebust <Trond.Myklebust(a)netapp.com>
+
+diff -up linux-3.2.noarch/fs/nfs/idmap.c.orig linux-3.2.noarch/fs/nfs/idmap.c
+--- linux-3.2.noarch/fs/nfs/idmap.c.orig 2012-01-27 10:15:42.914563082 -0500
++++ linux-3.2.noarch/fs/nfs/idmap.c 2012-01-27 10:19:22.711401559 -0500
+@@ -39,6 +39,36 @@
+ #include <linux/slab.h>
+ #include <linux/nfs_idmap.h>
+ #include <linux/nfs_fs.h>
++#include <linux/cred.h>
++#include <linux/sunrpc/sched.h>
++#include <linux/nfs4.h>
++#include <linux/nfs_fs_sb.h>
++#include <linux/keyctl.h>
++#include <linux/key-type.h>
++#include <linux/rcupdate.h>
++#include <linux/err.h>
++#include <keys/user-type.h>
++
++/* include files needed by legacy idmapper */
++#include <linux/module.h>
++#include <linux/mutex.h>
++#include <linux/init.h>
++#include <linux/socket.h>
++#include <linux/in.h>
++#include <linux/sched.h>
++#include <linux/sunrpc/clnt.h>
++#include <linux/workqueue.h>
++#include <linux/sunrpc/rpc_pipe_fs.h>
++#include <linux/nfs_fs.h>
++#include "nfs4_fs.h"
++
++#define NFS_UINT_MAXLEN 11
++#define IDMAP_HASH_SZ 128
++
++/* Default cache timeout is 10 minutes */
++unsigned int nfs_idmap_cache_timeout = 600 * HZ;
++const struct cred *id_resolver_cache;
++
+
+ /**
+ * nfs_fattr_init_names - initialise the nfs_fattr owner_name/group_name fields
+@@ -142,21 +172,6 @@ static int nfs_map_numeric_to_string(__u
+ return snprintf(buf, buflen, "%u", id);
+ }
+
+-#include <linux/cred.h>
+-#include <linux/sunrpc/sched.h>
+-#include <linux/nfs4.h>
+-#include <linux/nfs_fs_sb.h>
+-#include <linux/keyctl.h>
+-#include <linux/key-type.h>
+-#include <linux/rcupdate.h>
+-#include <linux/err.h>
+-
+-#include <keys/user-type.h>
+-
+-#define NFS_UINT_MAXLEN 11
+-
+-const struct cred *id_resolver_cache;
+-
+ struct key_type key_type_id_resolver = {
+ .name = "id_resolver",
+ .instantiate = user_instantiate,
+@@ -327,25 +342,6 @@ static int nfs_idmap_lookup_id(const cha
+ }
+
+ /* idmap classic begins here */
+-#include <linux/module.h>
+-#include <linux/mutex.h>
+-#include <linux/init.h>
+-#include <linux/socket.h>
+-#include <linux/in.h>
+-#include <linux/sched.h>
+-#include <linux/sunrpc/clnt.h>
+-#include <linux/workqueue.h>
+-#include <linux/sunrpc/rpc_pipe_fs.h>
+-
+-#include <linux/nfs_fs.h>
+-
+-#include "nfs4_fs.h"
+-
+-#define IDMAP_HASH_SZ 128
+-
+-/* Default cache timeout is 10 minutes */
+-unsigned int nfs_idmap_cache_timeout = 600 * HZ;
+-
+ static int param_set_idmap_timeout(const char *val, struct kernel_param *kp)
+ {
+ char *endp;
diff --git a/linux-3.2-newidmapper-03.patch b/linux-3.2-newidmapper-03.patch
new file mode 100644
index 0000000..7018e35
--- /dev/null
+++ b/linux-3.2-newidmapper-03.patch
@@ -0,0 +1,40 @@
+commit a602bea3e7ccc5ce3da61d2c18245c4058983926
+Author: Bryan Schumaker <bjschuma(a)netapp.com>
+Date: Thu Jan 26 16:54:25 2012 -0500
+
+ NFS: Update idmapper documentation
+
+ Signed-off-by: Bryan Schumaker <bjschuma(a)netapp.com>
+ Signed-off-by: Trond Myklebust <Trond.Myklebust(a)netapp.com>
+
+diff -up linux-3.2.noarch/Documentation/filesystems/nfs/idmapper.txt.orig linux-3.2.noarch/Documentation/filesystems/nfs/idmapper.txt
+--- linux-3.2.noarch/Documentation/filesystems/nfs/idmapper.txt.orig 2012-01-04 18:55:44.000000000 -0500
++++ linux-3.2.noarch/Documentation/filesystems/nfs/idmapper.txt 2012-01-27 10:19:55.406740364 -0500
+@@ -4,13 +4,21 @@ ID Mapper
+ =========
+ Id mapper is used by NFS to translate user and group ids into names, and to
+ translate user and group names into ids. Part of this translation involves
+-performing an upcall to userspace to request the information. Id mapper will
+-user request-key to perform this upcall and cache the result. The program
+-/usr/sbin/nfs.idmap should be called by request-key, and will perform the
+-translation and initialize a key with the resulting information.
++performing an upcall to userspace to request the information. There are two
++ways NFS could obtain this information: placing a call to /sbin/request-key
++or by placing a call to the rpc.idmap daemon.
++
++NFS will attempt to call /sbin/request-key first. If this succeeds, the
++result will be cached using the generic request-key cache. This call should
++only fail if /etc/request-key.conf is not configured for the id_resolver key
++type, see the "Configuring" section below if you wish to use the request-key
++method.
++
++If the call to /sbin/request-key fails (if /etc/request-key.conf is not
++configured with the id_resolver key type), then the idmapper will ask the
++legacy rpc.idmap daemon for the id mapping. This result will be stored
++in a custom NFS idmap cache.
+
+- NFS_USE_NEW_IDMAPPER must be selected when configuring the kernel to use this
+- feature.
+
+ ===========
+ Configuring
--
1.7.7.5
12 years, 1 month
[PATCH] enable Open vSwitch
by Chris Wright
Anyone object to something like this? (scratch build started:
http://koji.fedoraproject.org/koji/taskinfo?taskID=3770160)
diff --git a/config-generic b/config-generic
index 0e34601..ccdb655 100644
--- a/config-generic
+++ b/config-generic
@@ -1056,7 +1056,7 @@ CONFIG_NET_ACT_SIMP=m
CONFIG_NET_ACT_SKBEDIT=m
CONFIG_DCB=y
-# CONFIG_OPENVSWITCH is not set
+CONFIG_OPENVSWITCH=m
CONFIG_NETPRIO_CGROUP=m
diff --git a/kernel.spec b/kernel.spec
--- a/kernel.spec
+++ b/kernel.spec
@@ -2310,6 +2310,9 @@ fi
# ||----w |
# || ||
%changelog
+* Tue Feb 07 2012 Chris Wright <chrisw(a)redhat.com>
+- Enable Open vSwitch
+
* Tue Feb 07 2012 Josh Boyer <jwboyer(a)redhat.com>
- Make build/ point to /usr/src/kernels instead of being relative (rhbz 788125)
12 years, 1 month
[PATCHSET] utrace for 3.1 kernel
by Oleg Nesterov
Hello.
utrace patches for 3.1 kernel. Untested, will try to do some tests
tomorrow.
I do not want to spam you all and the lists, please look at
git://git.kernel.org/pub/scm/linux/kernel/git/oleg/misc.git utrace-3.1
Oleg Nesterov (29):
utrace: add utrace_init_task/utrace_free_task calls
tracehooks: add utrace hooks
tracehooks: reintroduce tracehook_consider_fatal_signal()
add utrace hooks into sig_ignored() and recalc_sigpending()
restore the EXEC/EXIT/CLONE utrace hooks
utrace: utrace_report_death() can use task_utrace_struct()
restore the DEATH/REAP utrace hooks
utrace: remove jobctl bits
ptrace: take ->siglock around s/TRACED/RUNNING/
introduce wake_up_quiescent()
introduce ptrace_signal_wake_up()
wait_task_inactive: treat task->state and match_state as bitmasks
introduce TASK_UTRACED state
utrace: use TASK_UTRACED instead of TASK_TRACED
reintroduce tracehook_finish_jctl() as utrace_end_stop()
teach wake_up_quiescent() to do "selective" wake_up
ptrace_stop: do not assume the task is running after wake_up_quiescent()
get_signal_to_deliver: restore/restructure utrace/ptrace signal reporting
utrace_get_signal: s/JOBCTL_STOP_PENDING/JOBCTL_PENDING_MASK/
introduce ptrace_set_syscall_trace()
introduce PT_SYSCALL_TRACE flag
utrace: don't clear TIF_SYSCALL_TRACE if it is needed by ptrace
introduce task_utrace_lock/task_utrace_unlock
teach ptrace_set_syscall_trace() to play well with utrace
introduce PT_SINGLE_STEP and PT_SINGLE_BLOCK
utrace: finish_resume_report: don't do user_xxx_step() if ptrace_wants_step()
ptrace: shift user_*_step() from ptrace_resume() to ptrace_stop()
ptrace_disable: no need to disable stepping
ptrace_report_syscall: check TIF_SYSCALL_EMU
Roland McGrath (1):
utrace core
Documentation/DocBook/Makefile | 2 +-
Documentation/DocBook/utrace.tmpl | 589 +++++++++
arch/s390/kernel/traps.c | 4 +-
arch/x86/kernel/ptrace.c | 1 -
fs/exec.c | 5 +-
fs/proc/array.c | 14 +-
include/linux/ptrace.h | 7 +
include/linux/sched.h | 25 +-
include/linux/signal.h | 2 +
include/linux/tracehook.h | 53 +-
include/linux/utrace.h | 773 ++++++++++++
init/Kconfig | 9 +
kernel/Makefile | 1 +
kernel/exit.c | 5 +
kernel/fork.c | 9 +
kernel/ptrace.c | 57 +-
kernel/sched.c | 2 +-
kernel/signal.c | 97 ++-
kernel/utrace.c | 2461 +++++++++++++++++++++++++++++++++++++
19 files changed, 4062 insertions(+), 54 deletions(-)
create mode 100644 Documentation/DocBook/utrace.tmpl
create mode 100644 include/linux/utrace.h
create mode 100644 kernel/utrace.c
12 years, 1 month