Skip to content

Instantly share code, notes, and snippets.

@thehajime
Created February 20, 2019 07:14
Show Gist options
  • Save thehajime/d095fa1db87cfc8be3bc92ae8d8ca0b4 to your computer and use it in GitHub Desktop.
Save thehajime/d095fa1db87cfc8be3bc92ae8d8ca0b4 to your computer and use it in GitHub Desktop.
% sudo LKL_HIJACK_DEBUG=1 LKL_HIJACK_CONFIG_FILE=./lkl-hijack-raw-multi.json ./bin/lkl-hijack.sh ping -I eth1 10.0.39.2
LKL: Pin To CPU 0
[ 0.000000] Linux version 4.20.0+ (tazaki@) (clang version 6.0.1 (tags/RELEASE_601/final)) #2 Thu Jan 31 16:26:12 JST 2019
[ 0.000000] memblock address range: 0x7f5ac0000000 - 0x7f5ac3fff000
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16159
[ 0.000000] Kernel command line: virtio_mmio.device=273@0x1000000:1 virtio_mmio.device=273@0x2000000:2
[ 0.000000] Dentry cache hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Memory available: 64500k/65532k RAM
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 4096
[ 0.000000] lkl: irqs initialized
[ 0.000000] clocksource: lkl: mask: 0xffffffffffffffff max_cycles: 0x1cd42e4dffb, max_idle_ns: 881590591483 ns
[ 0.000000] lkl: time and timers initialized (irq3)
[ 0.000002] pid_max: default: 4096 minimum: 301
[ 0.000018] Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
[ 0.000020] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes)
[ 0.002136] printk: console [lkl_console0] enabled
[ 0.002146] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.002150] xor: automatically using best checksumming function 8regs
[ 0.002188] random: get_random_u32 called from bucket_table_alloc+0x1c4/0x390 with crng_init=0
[ 0.002210] NET: Registered protocol family 16
[ 0.410660] raid6: int64x1 gen() 13260 MB/s
[ 0.801674] raid6: int64x1 xor() 7692 MB/s
[ 1.196654] raid6: int64x2 gen() 28404 MB/s
[ 1.587656] raid6: int64x2 xor() 15033 MB/s
[ 1.978656] raid6: int64x4 gen() 28324 MB/s
[ 2.369657] raid6: int64x4 xor() 19188 MB/s
[ 2.760654] raid6: int64x8 gen() 33490 MB/s
[ 3.157654] raid6: int64x8 xor() 22087 MB/s
[ 3.157658] raid6: using algorithm int64x8 gen() 33490 MB/s
[ 3.157673] raid6: .... xor() 22087 MB/s, rmw enabled
[ 3.157675] raid6: using intx1 recovery algorithm
[ 3.157742] clocksource: Switched to clocksource lkl
[ 3.157802] NET: Registered protocol family 2
[ 3.157886] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes)
[ 3.157890] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 3.157893] TCP bind hash table entries: 512 (order: 0, 4096 bytes)
[ 3.157896] TCP: Hash tables configured (established 512 bind 512)
[ 3.157923] UDP hash table entries: 128 (order: 0, 4096 bytes)
[ 3.157927] UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)
[ 3.157970] virtio-mmio: Registering device virtio-mmio.0 at 0x1000000-0x1000110, IRQ 1.
[ 3.157979] virtio-mmio: Registering device virtio-mmio.1 at 0x2000000-0x2000110, IRQ 2.
[ 3.158084] workingset: timestamp_bits=62 max_order=14 bucket_order=0
[ 3.158739] SGI XFS with ACLs, security attributes, no debug enabled
[ 3.159745] io scheduler noop registered
[ 3.159750] io scheduler deadline registered
[ 3.159791] io scheduler cfq registered (default)
[ 3.159793] io scheduler mq-deadline registered
[ 3.159795] io scheduler kyber registered
[ 3.159801] virtio-mmio virtio-mmio.0: Failed to enable 64-bit or 32-bit DMA. Trying to continue, but this might not work.
[ 3.159815] virtio-mmio virtio-mmio.1: Failed to enable 64-bit or 32-bit DMA. Trying to continue, but this might not work.
[ 3.161398] NET: Registered protocol family 10
[ 3.161577] Segment Routing with IPv6
[ 3.161589] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 3.161806] Btrfs loaded, crc32c=crc32c-generic
[ 3.161829] Warning: unable to open an initial console.
[ 3.161836] This architecture does not have kernel memory protection.
[ 3.161837] Run /init as init process
ping: Warning: source address might be selected on device other than eth1.
PING 10.0.39.2 (10.0.39.2) from 10.0.39.139 eth1: 56(84) bytes of data.
Warning: time of day goes back (-1537061523025234us), taking countermeasures.
64 bytes from 10.0.39.2: icmp_seq=1 ttl=64 time=0.290 ms
[ 4.117826] random: fast init done
64 bytes from 10.0.39.2: icmp_seq=2 ttl=64 time=0.335 ms
64 bytes from 10.0.39.2: icmp_seq=3 ttl=64 time=0.317 ms
^C
--- 10.0.39.2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2075ms
rtt min/avg/max/mdev = 0.290/0.314/0.335/0.018 ms
[ 6.305810] reboot: Restarting system
% cat lkl-hijack-raw-multi.json
{
"interfaces": [
{
"mac": "50:9a:4c:94:23:66",
"ip": "172.16.0.1",
"masklen": "24",
"param": "eno1",
"type": "raw"
},
{
"ip": "10.0.39.139",
"masklen": "24",
"param": "enp2s0f0",
"type": "raw"
}
],
"singlecpu": "1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment