









#!/bin/sh
# path to the real vpnclient binary
VPNCLIENTBIN=/usr/local/bin/vpnclient
# path to the CPU-Hotplug facility for the second cpu. If you have a quadcore system, you
# should set this value to "1 2 3" or something like this.
SMP_CPUS="1"
# if a connection is to be established, switch off all other CPUs
if [ "$1" = "connect" ]; then
for cpu in $SMP_CPUS; do
echo 0 > /sys/devices/system/cpu/cpu$cpu/online
done
fi
# start the VPN client with all given arguments
$VPNCLIENTBIN $*
# after the connection has been closed (either by hitting CTRL-C or by using a separate
# `vpnclient disconnect` invocation, turn the CPUs back on
for cpu in $SMP_CPUs; do
echo 1 > /sys/devices/system/cpu/cpu$cpu/online
done


Setting a either a 0 or 1 to the file "online" of the second CPU works great.
when I bring the second CPU offline while connected via the VPN client, do I lose 1/2 of my CPU computational power?


Unable to handle kernel NULL pointer dereferenc
[<ffffffff8860e474>] :cisco_ipsec:CBCDecryptUpdate+0xb4/0x160
PGD 50422067 PUD 50503067 PMD 0
Oops: 0000 [1] SMP
CPU 1
Modules linked in: aes_generic aes_x86_64 i915 drm cisco_ipsec(P)(U) rfcomm l2cd
Pid: 0, comm: swapper Tainted: P 2.6.24.3-34.fc8 #1
RIP: 0010:[<ffffffff8860e474>] [<ffffffff8860e474>] :cisco_ipsec:CBCDecryptUpd0
RSP: 0018:ffff81007f36f9b0 EFLAGS: 00010203
RAX: 0000000000000000 RBX: ffff810045c99cd0 RCX: 000000000000345c
RDX: 0000000000008848 RSI: 0000000000000000 RDI: 0000000000000001
RBP: 0000000000000008 R08: 0000000000000000 R09: 00000000a02280c0
R10: ffff81005a402550 R11: a754293900000000 R12: ffffffff8864e38c
R13: ffffffff8864e38c R14: 0000000000000002 R15: 00000000000003f0
FS: 0000000000000000(0000) GS:ffff81007f001700(0000) knlGS:0000000000000000
CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: 0000000000000000 CR3: 0000000068105000 CR4: 00000000000006a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process swapper (pid: 0, threadinfo ffff81007f36a000, task ffff81007f35f160)
Stack: ffff810045c99cd0 ffff81005a402550 0000000000000008 000001607b94ad48
ffff81007f36fa74 ffff810076cc6410 ffffffff8863f880 0000000000000000
0000000000000008 ffff81007b94ad10 0000000000000550 ffffffff8864e22c
Call Trace:
<IRQ> [<ffffffff88615213>] :cisco_ipsec:AHChooseFeedbackUpdate+0x23/0x40
[<ffffffff88614a03>] :cisco_ipsec:AHFeedbackCipherDecryptUpdate+0x133/0x240
[<ffffffff88615d04>] :cisco_ipsec:B_AlgorithmDecryptUpdate+0x94/0xa0
[<ffffffff885fe668>] :cisco_ipsec:BSafeDecrypt+0x108/0x1a0
[<ffffffff885fea1d>] :cisco_ipsec:BSafeESPDecrypt+0xfd/0x1e0
[<ffffffff885fd8e9>] :cisco_ipsec:CniMemFree+0x79/0x80
[<ffffffff88607ea9>] :cisco_ipsec:ESPIn+0x69/0x210
[<ffffffff88607bc8>] :cisco_ipsec:IPSecOverUDPIn+0xe8/0x100
[<ffffffff88607612>] :cisco_ipsec:IPIn+0xd2/0x100
[<ffffffff88607267>] :cisco_ipsec:TransformIn+0x77/0xf0
[<ffffffff8860250a>] :cisco_ipsec:CNIReceiveComplete+0x23a/0xb50
[<ffffffff88601e59>] :cisco_ipsec:CNIReceiveIndication+0x599/0x660
[<ffffffff885fd188>] :cisco_ipsec:recv_ip_packet_handler+0x201/0x2d6
[<ffffffff811f9bea>] netif_receive_skb+0x3a7/0x421
[<ffffffff811fc2bb>] process_backlog+0x73/0xbb
[<ffffffff811fbd0b>] net_rx_action+0x9e/0x1c4
[<ffffffff8103c3f9>] __do_softirq+0x55/0xc3
[<ffffffff8100cf8c>] call_softirq+0x1c/0x28
[<ffffffff8100e3c0>] do_softirq+0x2c/0x85
[<ffffffff8103c35f>] irq_exit+0x3f/0x84
[<ffffffff8100e67c>] do_IRQ+0x13e/0x162
[<ffffffff8100c3a1>] ret_from_intr+0x0/0xa
<EOI> [<ffffffff811709af>] acpi_idle_enter_bm+0x265/0x2d1
[<ffffffff811709a5>] acpi_idle_enter_bm+0x25b/0x2d1
[<ffffffff811de957>] cpuidle_idle_call+0x74/0xa9
[<ffffffff811de8e3>] cpuidle_idle_call+0x0/0xa9
[<ffffffff8100b12d>] cpu_idle+0x94/0xbc
Code: 41 8b 04 b0 31 04 b3 44 39 f7 72 f0 31 f6 31 ff 39 ee 73 4b
RIP [<ffffffff8860e474>] :cisco_ipsec:CBCDecryptUpdate+0xb4/0x160
RSP <ffff81007f36f9b0>
CR2: 0000000000000000
---[ end trace b49f57c7b6417b0f ]---
Kernel panic - not syncing: Aiee, killing interrupt handler!

Return to Cisco VPN Client on Linux systems
Users browsing this forum: No registered users and 2 guests