FINODELK Call has a Malformed Packet
nixpanic opened this issue · 1 comments
nixpanic commented
It looks like a FINODELK Call can not be dissected correctly:
GlusterFS
[Program Version: 330]
[GlusterFS: FINODELK (30)]
GFID: <DATA>
contents: <DATA>
File Descriptor: 0
Command: GF_LK_SETLK (1)
Type: GF_LK_F_WRLCK (1)
flock
ia_flock_type: GF_LK_F_WRLCK (1)
ia_flock_whence: 0
ia_flock_start: 0
ia_flock_len: 0
ia_flock_pid: 0
ia_flock_owner: 16
Volume: -replicate-0<TRUNCATED>
length: 1919250540
contents: -replicate-0<TRUNCATED>
[Malformed Packet: GlusterFS]
[Expert Info (Error/Malformed): Malformed Packet (Exception occurred)]
[Message: Malformed Packet (Exception occurred)]
[Severity level: Error]
[Group: Malformed]
Steps to reproduce:
- start tcpdump like
tcpdump -i any -s 0 -w /tmp/new-repl.pcap tcp and not port 22
- create a new replicated volume with something like
gluster volume create repl replica 2 transport tcp node1:/bricks/repl node2:/bricks/repl
- start the volume
gluster volume start repl
- mount the volume
mount -t glusterfs node1:/repl /mnt
- create a file
echo hello > /mnt/README
- unmount with
umount /mnt
- kill the tcpdump with CTRL+C
- open the .pcap file in the patched wireshark/tshark