Repository : ssh://git@open-mesh.org/doc
On branches: backup-redmine/2019-10-12,master
>---------------------------------------------------------------
commit 03a2586f0434cc396b211a371f5919df5ae48fe3
Author: Sven Eckelmann <sven(a)narfation.org>
Date: Fri Oct 11 23:31:41 2019 +0000
doc: open-mesh/Emulation_Debug
>---------------------------------------------------------------
03a2586f0434cc396b211a371f5919df5ae48fe3
open-mesh/Emulation_Debug.textile | 1 +
1 file changed, 1 insertion(+)
diff --git a/open-mesh/Emulation_Debug.textile b/open-mesh/Emulation_Debug.textile
index 8457e77..69c4907 100644
--- a/open-mesh/Emulation_Debug.textile
+++ b/open-mesh/Emulation_Debug.textile
@@ -301,6 +301,7 @@ chmod +x hub.sh
The @SHARED_PATH@ in run.sh has to be changed to a valid path which is used to share the precompiled batman-adv.ko and other tools
<pre>
+cat > run.sh << "EOF"
#! /bin/sh
SHARED_PATH=/home/sven/tmp/qemu-batman/
Repository : ssh://git@open-mesh.org/doc
On branches: backup-redmine/2019-10-12,master
>---------------------------------------------------------------
commit c43f5e8ce34e8dad2f16ef9fd6ad0f927ab293bb
Author: Sven Eckelmann <sven(a)narfation.org>
Date: Fri Oct 11 15:02:39 2019 +0000
doc: open-mesh/News-draft
>---------------------------------------------------------------
c43f5e8ce34e8dad2f16ef9fd6ad0f927ab293bb
open-mesh/News-draft.textile | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/open-mesh/News-draft.textile b/open-mesh/News-draft.textile
index fde622d..ba7e227 100644
--- a/open-mesh/News-draft.textile
+++ b/open-mesh/News-draft.textile
@@ -1,6 +1,6 @@
h1. DRAFT: Batman-adv 2019.4 released
-Oct 8th, 2019. Today the B.A.T.M.A.N. team publishes the October 2019 update to batman-adv, batctl and alfred! The B.A.T.M.A.N. V implementation can now aggregate OGM2 messages into single messages before sending them out. As usual, this release also contains various bugfixes and code cleanups.
+Oct 15th, 2019. Today the B.A.T.M.A.N. team publishes the October 2019 update to batman-adv, batctl and alfred! The B.A.T.M.A.N. V implementation can now aggregate OGM2 messages into single messages before sending them out. As usual, this release also contains various bugfixes and code cleanups.
As the kernel module always depends on the Linux kernel it is compiled against, it does not make sense to provide binaries on our website. As usual, you will find the signed tarballs in our download section:
@@ -22,7 +22,7 @@ h2. batman-adv
<pre>
$ git describe origin/master
v2019.3-10-gbcadeaa3
-$ range=v2019.3..v2019.3-10-gbcadeaa3
+$ range=v2019.3..v2019.3-15-g888f60e5
$ git shortlog --email --no-merges "${range}"
$ git log --no-merges "${range}"|grep -e '\(Reported\|Tested\|Acked\|Reviewed-by\|Co-authored-by\)-by'|sed 's/.*:/*/'|sort|uniq
@@ -35,6 +35,8 @@ coding style cleanup/refactoring
================================
batman-adv: Replace usage of strlcpy with strscpy
+ batman-adv: Fix Kconfig indentation
+ batman-adv: netfilter: drop bridge nf reset from nf_reset
BATMAN V
=========
@@ -46,11 +48,13 @@ bugfixes
========
batman-adv: fix uninit-value in batadv_netlink_get_ifindex()
+ batman-adv: Avoid free/alloc race when handling OGM2 buffer
+ batman-adv: Avoid free/alloc race when handling OGM2 buffer
-2019.4 (2019-10-08)
+2019.4 (2019-10-15)
===================
* support latest kernels (3.16 - 5.4)
@@ -60,6 +64,7 @@ bugfixes
- fix length validation in netlink messages
- fix out of buffer read when parsing aggregated packets
+ - avoid race condition in OGM(2) packet modification and submission
</pre>
@@ -86,7 +91,7 @@ bugfix
batctl: Fix deprecation warning for option '-m'
-2019.4 (2019-10-08)
+2019.4 (2019-10-15)
===================
* fix deprecation warning for option '-m'
@@ -107,7 +112,7 @@ Sven Eckelmann <sven(a)narfation.org> (2):
alfred: vis: Fix ifindex check when registering interface
-2019.4 (2019-10-08)
+2019.4 (2019-10-15)
===================
* fix build with musl
Repository : ssh://git@open-mesh.org/doc
On branches: backup-redmine/2019-10-12,master
>---------------------------------------------------------------
commit 31d21b88a6a656ddc69e5bb2e45ee3f4455ef4ec
Author: Sven Eckelmann <sven(a)narfation.org>
Date: Fri Oct 11 23:30:52 2019 +0000
doc: open-mesh/Emulation_Debug: document usage of qemu gdb and linux gdb helper
>---------------------------------------------------------------
31d21b88a6a656ddc69e5bb2e45ee3f4455ef4ec
open-mesh/Emulation_Debug.textile | 31 +++++++++++++++++++++++++++++--
1 file changed, 29 insertions(+), 2 deletions(-)
diff --git a/open-mesh/Emulation_Debug.textile b/open-mesh/Emulation_Debug.textile
index 31fc6ae..8457e77 100644
--- a/open-mesh/Emulation_Debug.textile
+++ b/open-mesh/Emulation_Debug.textile
@@ -301,7 +301,6 @@ chmod +x hub.sh
The @SHARED_PATH@ in run.sh has to be changed to a valid path which is used to share the precompiled batman-adv.ko and other tools
<pre>
-cat > run.sh << "EOF"
#! /bin/sh
SHARED_PATH=/home/sven/tmp/qemu-batman/
@@ -309,10 +308,11 @@ SHARED_PATH=/home/sven/tmp/qemu-batman/
for i in `seq 1 5`; do
qemu-img create -b debian.img -f qcow2 root.cow$i
normalized_id=`echo "$i"|awk '{ printf "%02d\n",$1 }'`
- screen qemu-system-x86_64 -enable-kvm -kernel linux-next/arch/x86/boot/bzImage -append "root=/dev/vda rw console=ttyS0" \
+ screen qemu-system-x86_64 -enable-kvm -kernel linux-next/arch/x86/boot/bzImage -append "root=/dev/vda rw console=ttyS0 nokaslr" \
-smp 2 -m 512 -drive file=root.cow$i,if=virtio \
-netdev type=tap,id=net0,ifname=tap$i,script=no -device virtio-net-pci,mac=02:ba:de:af:fe:`echo $i|awk '{ printf "%02X", $1 }'`,netdev=net0 \
-virtfs local,path="${SHARED_PATH}",security_model=none,mount_tag=host \
+ -gdb tcp:127.0.0.1:$((23000+$i)) \
-device virtio-rng-pci -nographic
sleep 1
done
@@ -378,3 +378,30 @@ mkfifo remote-dump
ssh root(a)192.168.2.51 'tcpdump -i enp3s0 -s 0 -U -n -w - "port not 22"' > remote-dump
wireshark -k -i remote-dump
</pre>
+
+h2. Using KGDB
+
+The instances are listening on 127.0.0.1 TCP port <code>23000 + instance_no</code>. We will use in the following example instance 1. The gdb debugger can be started from the linux source directory and all <code>lx-*</code> helpers will be automatically be loaded.
+
+The debugging with gdb can be started from the linux-next directory:
+
+<pre>
+$ gdb -iex "set auto-load safe-path scripts/gdb/" -ex 'target remote 127.0.0.1:23001' -ex c ./vmlinux
+</pre>
+
+The module can now be loaded in the qemu instance. After that, we have to reload the symbol information via <code>lx-symbol</code> and can set any kind of breakpoints on the batman-adv module:
+
+<pre>
+^C
+Thread 1 received signal SIGINT, Interrupt.
+default_idle () at arch/x86/kernel/process.c:581
+581 trace_cpu_idle_rcuidle(PWR_EVENT_EXIT, smp_processor_id());
+(gdb) lx-symbols /home/sven/tmp/qemu-batman/batman-adv/net/batman-adv/
+loading vmlinux
+scanning for modules in /home/sven/tmp/qemu-batman/batman-adv/net/batman-adv/
+scanning for modules in /home/sven/tmp/qemu-batman/linux-next
+loading @0xffffffffa0000000: /home/sven/tmp/qemu-batman/batman-adv/net/batman-adv//batman-adv.ko
+(gdb) b batadv_iv_send_outstanding_bat_ogm_packet
+Breakpoint 1 at 0xffffffffa0005d60: file /home/sven/tmp/qemu-batman/batman-adv/net/batman-adv/bat_iv_ogm.c, line 1692.
+(gdb) c
+</pre>
\ No newline at end of file
Repository : ssh://git@open-mesh.org/doc
On branches: backup-redmine/2019-10-12,master
>---------------------------------------------------------------
commit 0dd57235d6a22140e8a6cb2056b5196cb65f7044
Author: Sven Eckelmann <sven(a)narfation.org>
Date: Fri Sep 27 20:14:21 2019 +0000
doc: open-mesh/News-draft
>---------------------------------------------------------------
0dd57235d6a22140e8a6cb2056b5196cb65f7044
open-mesh/News-draft.textile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/open-mesh/News-draft.textile b/open-mesh/News-draft.textile
index cdf30e6..d238d3c 100644
--- a/open-mesh/News-draft.textile
+++ b/open-mesh/News-draft.textile
@@ -1,6 +1,6 @@
h1. DRAFT: Batman-adv 2019.4 released
-Sep 23th, 2019. Today the B.A.T.M.A.N. team publishes the September 2019 update to batman-adv, batctl and alfred! The B.A.T.M.A.N. V implementation can now aggregate OGM2 messages into single messages before sending them out. As usual, this release also contains various bugfixes and code cleanups.
+Oct 8th, 2019. Today the B.A.T.M.A.N. team publishes the October 2019 update to batman-adv, batctl and alfred! The B.A.T.M.A.N. V implementation can now aggregate OGM2 messages into single messages before sending them out. As usual, this release also contains various bugfixes and code cleanups.
As the kernel module always depends on the Linux kernel it is compiled against, it does not make sense to provide binaries on our website. As usual, you will find the signed tarballs in our download section:
@@ -49,7 +49,7 @@ bugfixes
-2019.4 (2019-09-23)
+2019.4 (2019-10-08)
===================
* support latest kernels (3.16 - 5.4)
@@ -85,7 +85,7 @@ bugfix
batctl: Fix deprecation warning for option '-m'
-2019.4 (2019-09-23)
+2019.4 (2019-10-08)
===================
* fix deprecation warning for option '-m'
@@ -106,7 +106,7 @@ Sven Eckelmann <sven(a)narfation.org> (2):
alfred: vis: Fix ifindex check when registering interface
-2019.4 (2019-09-23)
+2019.4 (2019-10-08)
===================
* fix build with musl