Bug #206

uftp crashes router when transferring files

Added by Matt Urbanski almost 2 years ago. Updated about 1 year ago.

Status:New Start date:07/14/2011
Priority:Urgent Due date:
Assignee:- % Done:

0%

Category:- Spent time: 1.50 hour
Target version:Cerowrt-Next

Description

uftp 3.5.1

Host:
/uftpd -D /home/matt/src/bismark_week/ -L works ; tail -f works

2011/07/14 11:30:28.195551: UFTP version 3.5.1 Copyright (C) 2001-2011 Dennis A. Bush
2011/07/14 11:30:28.196667: Loaded key with fingerprint 12:7F:6E:58:60:85:63:E4:64:71:25:FA:80:FC:53:F6:46:87:2E:B9

Router:
root@gw:~# uftp -D -L /tmp/1stlog /tmp/file.test
Killed
root@gw:~# du /tmp/file.test
12268 /tmp/file.test

Note: the 1stlog file is never created. This is on the first attempt. On the 2nd attempt, using a smaller file:
root@gw:~# uftp -D -L /tmp/1stlog /tmp/dhcp.leases

The router crashes and reboots.

History

Updated by Matt Urbanski almost 2 years ago

Running uftpd, killing the process, and then running the client causes a crash followed by a reboot.

root@gw:/tmp# uftp
Killed
root@gw:/tmp# ps 
  PID USER       VSZ STAT COMMAND
    1 root      1656 S    init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    4 root         0 RW   [kworker/0:0]
    6 root         0 SW   [rcu_kthread]
    7 root         0 SW<  [khelper]
   69 root         0 SW   [sync_supers]
   71 root         0 SW   [bdi-default]
   73 root         0 SW<  [kblockd]
  103 root         0 SW   [kswapd0]
  163 root         0 SW<  [ar71xx-spi]
  176 root         0 SW   [mtdblock0]
  181 root         0 SW   [mtdblock1]
  186 root         0 SW   [mtdblock2]
  191 root         0 SW   [mtdblock3]
  196 root         0 SW   [mtdblock4]
  201 root         0 SW   [mtdblock5]
  247 root         0 SW   [kworker/0:1]
  350 root         0 SW<  [ipolldevd]
  360 root         0 SW   [kworker/u:2]
  394 root         0 SWN  [jffs2_gcd_mtd3]
  416 root         0 SW   [khubd]
  432 root      1684 S    /bin/sh /etc/init.d/rcS S boot
  433 root      1656 S    init
  435 root      1648 S    logger -s -p 6 -t sysinit
  464 root      1660 S    syslogd -C16
  466 root      1640 S    klogd
  492 root       832 S    /sbin/hotplug2 --override --persistent --set-worker
  676 root         0 SW<  [cfg80211]
 1826 root      1660 S    udhcpc -t 0 -i ge00 -b -p /var/run/dhcp-ge00.pid -O
 2612 www-data  3444 S    lighttpd -f /etc/lighttpd/cerowrt.conf
 2636 root      1144 S    /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
 2642 root      3432 S    lighttpd -f /etc/lighttpd/lighttpd.conf
 2830 root      1164 S    radvd -C /var/etc/radvd.conf -m stderr_syslog -p /va
 2841 root      1208 S    xinetd
 2863 bind     12032 S    named -c /etc/bind/conf/named.conf -u bind -t /etc/c
 2871 nobody     936 S    /usr/sbin/dnsmasq -K -D -y -Z -b -E -6 /etc/dnsmasq_
 2872 root       936 S    /usr/sbin/dnsmasq -K -D -y -Z -b -E -6 /etc/dnsmasq_
 2902 root      1156 S    /usr/sbin/babeld -z3 -D -I /var/run/babeld.pid -c /e
 2928 root       764 S    /usr/bin/luci-bwc -d
 2933 root      1652 S    watchdog -t 5 /dev/watchdog
 2938 root      1232 S    /usr/sbin/polipo -c /var/etc/polipo.conf
 2955 root      2692 S    /usr/sbin/ntpd -g -p /var/run/ntpd.pid
 3056 root      1208 S    /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
 3057 root      1664 S    -ash
 3802 root         0 SW   [kworker/u:1]
 4050 root      2508 S <  uftpd -D /tmp/ -L works
 4265 root      1648 R    ps
root@gw:/tmp# ps | grep uftp
 4050 root      2508 S <  uftpd -D /tmp/ -L works
 4283 root      1640 D    grep uftp
root@gw:/tmp# kill 4050
root@gw:/tmp# uftp
Killed
root@gw:/tmp# ps | grep uftp
 4286 root      1640 R    grep uftp
root@gw:/tmp# uftp
uftp [ -U ] [ -R txrate ] [ -W txweight ] [ -m min_time ]
    [ -n ] [ -L logfile ] [ -B udp_buf_size ] [ -Y keytype ] [ -h hashtype ]
    [ -w sigtype ] [ -c ] [ -k key_file ] [ -K new_key_length ] [ -l ] [ -T ]
    [ -A announce_time ] [ -S status_time ] [ -a announce_interval ]
    [ -s status_interval ] [ -r register_interval ] [ -d done_interval ]
    [ -b mtu ] [ -t ttl ] [ -Q dscp ] [ -z | -Z ] [ -I interface ]
    [ -p port ] [ -j proxylist_file ] [ -q ] [ -f ] [ -y ] [ -x log_level ]
    [ -H host[,host...] | -H @hostlist_file | -F restart_file ] [ -o ]
    [ -X exclude_file ] [ -M pub_multicast_addr ] [ -P priv_multicast_addr ]
    [ -C cc_config_file ] [ -D dest_name ] [ -E base_dir[,base_dir... ] ]
    { -i list_file | file [ file... ] }
Killed
root@gw:/tmp# uftp
---ROUTER DISCONNECTS AND REBOOTS HERE---
Write failed: Broken pipe
matt@wontseeme:~/src/bismark_week/uftp-3.5.1$ 

Updated by Dave Täht almost 2 years ago

  • Priority changed from Normal to Immediate
  • Target version set to 1st Public Cerowrt release

Did you guys actually fix crashing the router with utftp? What was the cause? if it's fixed, please document the solution and close the bug. I think I 'heard' the cause was trying to transfer too large a file....

Updated by Dave Täht almost 2 years ago

Still a problem? Or was this crash related to attempting to transfer your entire pr0n connection to the router?

Updated by Dave Täht almost 2 years ago

What is the correct status of the uftp bug??

Updated by jacopo cesareo almost 2 years ago

I have installed the uftp and uftpd modules on rc4 and ran a simple file exchange between a host and the router experiment in a wired setting.
I also changed the router from server to client(uftp to uftpd) and back and so far it hasn't crashed.

The wireless link, on the other hand, seems to be not functioning. It seems like UFTP doesn't run on the wireless link AT ALL.

Updated by Dave Täht almost 2 years ago

did you add multicast routes to the wireless interface?

Updated by jacopo cesareo almost 2 years ago

Yes. I actually got it to work one way (when the host sends the file and the router receives it) but not the other way around. Most probably it's something weird on my MAC that is not allowing it to respond, (it sees the packets I've checked with tcpdump). What can it be? Whatever it is, it wasn't doing it in ATL.

Updated by Dave Täht over 1 year ago

on the plus side, over a single hop, I can get the multicast packets.

on the minus side, over more than one hop, no such luck, and can't change mc_forwarding vis either
sysctl nor /proc

echo 1 > /proc/sys/net/ipv4/conf/se*/mc_forwarding # permission denied

Is also a problem in ubuntu.

d@cruithne:~/src/uftp-3.5.1$ sudo echo 1 > /proc/sys/net/ipv4/conf/eth*/mc_forwarding
bash: /proc/sys/net/ipv4/conf/eth0/mc_forwarding: Permission denied

Updated by Dave Täht over 1 year ago

  • Priority changed from Immediate to Urgent
  • Target version changed from 1st Public Cerowrt release to 13

I haven't been able to crash the router doing this. On the other hand, I can't get multicast to work quite right, either.

ENOTIME.

Updated by Dave Täht about 1 year ago

  • Target version changed from 13 to Cerowrt-Next

Also available in: Atom PDF