syzkaller

syzkaller source code Some tips about how to use syzkaller how to unpack corpus 1 bin/syz-db unpack corpus.db corpus_dir How to setup build env before submit a patch Note: in this part you need to download and install a lot devel packages, syzkaller, kernel source code. Please leave at least 5G space for it. When you want to write testcase for syzkaller, taking one of my patch as example, you may feel confused about how to wirte the .

linux perf usage

Brendan D. Gregg perf examples Install 1 # yum install -y perf TODO: How to build, Kernel build options Usage one line cmd statistics/count: increment an integer counter on events sample: collect details (eg, instruction pointer or stack) from a subset of events (once every …) trace: collect details from every event list event List events: perf list List specific tracepoint event: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 # perf list "net:*" List of pre-defined events (to be used in -e): net:napi_gro_frags_entry [Tracepoint event] net:napi_gro_receive_entry [Tracepoint event] net:net_dev_queue [Tracepoint event] net:net_dev_xmit [Tracepoint event] net:netif_receive_skb [Tracepoint event] net:netif_receive_skb_entry [Tracepoint event] net:netif_rx [Tracepoint event] net:netif_rx_entry [Tracepoint event] net:netif_rx_ni_entry [Tracepoint event] # perf list "skb:*" List of pre-defined events (to be used in -e): skb:consume_skb [Tracepoint event] skb:kfree_skb [Tracepoint event] skb:skb_copy_datagram_iovec [Tracepoint event] count event Count net events for the entire system, for 10 seconds:

Tunnel interfaces introduction

Introduction “An IP tunnel is an Internet Protocol (IP) network communications channel between two networks. It is used to transport another network protocol by encapsulation of its packets.” quote from Wikipedia. Linux has supported many kinds of tunnels, but new users often get confused by their differences and about which one is best suited for a given use case. In this post, I will give a brief introduction for commonly used tunnel interfaces in the Linux kernel.

Linux virtual interfaces introduction

Introduction In this post I will give a brief introduction for all commonly used virtual interfaces. There is no code analysis. Only brief introduction and the usage on Linux. So anyone with a network background could have a look at this blog post. The interface list can be obtained with the command ip link help. The first part is some frequently used interfaces and some interfaces that can be easily confused with one another.