Martin Kaiser | 21 Oct 21:40 2014

small documentation update for telnetd

Hi,

the attached trivial patch corrects the list of linux kernel options
that are required for busybox telnetd. DEVPTS_FS has been obsolete for
some time.

Best regards,
Martin
_______________________________________________
busybox mailing list
busybox <at> busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
Cristian Ionescu-Idbohrn | 20 Oct 20:54 2014
Picon

1.22.1: been hit by the zcat bug

That deserves a patch in http://busybox.net/downloads/fixes-1.22.1/,
IMO.  At least, commits:

	7c47b560a8fc97956dd8132bd7f1863d83c19866
	b664f740d90880560ce46b11f766625341342e80
	640ce3de07807133796bccd0bdfa146bbfc788c7

may be relevantat.

Cheers,

--

-- 
Cristian
Bartosz Golaszewski | 20 Oct 14:56 2014
Picon

[PATCHv2] Use sendfile to copy data between file descriptors

Busybox already uses sendfile in httpd. This patch proposes to use it
globally to copy data between file descriptors.

It speeds up the copying on slow systems a lot - below are the times needed
to copy a 450Mb file with and without this option enabled on a BeagleBone
Black:

sendfile:
user	0m0.000s
sys	0m8.170s

read/write:
user	0m0.470s
sys	0m16.300s

It doesn't add a lot of bloat either:

function                                             old     new   delta
bb_full_fd_action                                    233     311     +78
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 78/0)               Total: 78 bytes
   text	   data	    bss	    dec	    hex	filename
 812839	   4123	   9552	 826514	  c9c92	busybox_old
 812917	   4123	   9552	 826592	  c9ce0	busybox_unstripped

This patch also moves USE_SENDFILE feature from httpd subconfiguration
to global settings.

Signed-off-by: Bartosz Golaszewski <bartekgola <at> gmail.com>
---
(Continue reading)

Bartosz Golaszewski | 20 Oct 13:36 2014
Picon

[PATCH] Use sendfile to copy data between file descriptors

Busybox already uses sendfile in httpd. This patch proposes to use it
globally to copy data between file descriptors.

It speeds up the copying on slow systems a lot - below are the times needed
to copy a 450Mb file with and without this option enabled on a BeagleBone
Black:

sendfile:
user	0m0.000s
sys	0m8.170s

read/write:
user	0m0.470s
sys	0m16.300s

It doesn't add a lot of bloat either:

function                                             old     new   delta
bb_full_fd_action                                    233     311     +78
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 78/0)               Total: 78 bytes
   text	   data	    bss	    dec	    hex	filename
 812839	   4123	   9552	 826514	  c9c92	busybox_old
 812917	   4123	   9552	 826592	  c9ce0	busybox_unstripped

This patch also moves USE_SENDFILE feature from httpd subconfiguration
to global settings.

Signed-off-by: Bartosz Golaszewski <bartekgola <at> gmail.com>
---
(Continue reading)

Michael D. Setzer II | 19 Oct 12:59 2014
Picon

new lzop patch doesn't have correct format?

Saw new patch

http://busybox.net/downloads/fixes-1.22.1/busybox-1.22.1-lzop.patch

But unlike the other patches the patch -p0 <file doesn't work.

From a9dc7c2f59dc5e92870d2d46316ea5c1f14740e3 Mon Sep 17 00:00:00 
2001
From: Denys Vlasenko <vda.linux <at> googlemail.com>
Date: Mon, 30 Jun 2014 10:14:34 +0200
Subject: [PATCH] lzop: add overflow check

See CVE-2014-4607
http://www.openwall.com/lists/oss-security/2014/06/26/20

function                                             old     new   delta
lzo1x_decompress_safe                               1010    1031     +21

Signed-off-by: Denys Vlasenko <vda.linux <at> googlemail.com>
---
 archival/libarchive/liblzo.h  | 2 ++
 archival/libarchive/lzo1x_d.c | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/archival/libarchive/liblzo.h b/archival/libarchive/liblzo.h
index 843997c..4596620 100644
--- a/archival/libarchive/liblzo.h
+++ b/archival/libarchive/liblzo.h
 <at>  <at>  -76,11 +76,13  <at>  <at> 
 #    define TEST_IP             (ip < ip_end)
(Continue reading)

Ron Yorston | 19 Oct 10:51 2014
Picon

Re: `busyboxvi` is not working like before

>busybox git build running `./busybox vi` now shows "'(null)' Bad address"
>instead of "- No file 1/1 100%" like before.

I submitted a patch for that in August:

   http://lists.busybox.net/pipermail/busybox/2014-August/081534.html

>and `./busybox vi new.txt` now shows "'new.txt' No such file or directory"
>instead of "- new.txt 1/1 100%"

I didn't spot that one, though.

Ron
Richard Moore | 18 Oct 22:50 2014

arp output formatting patch

Hi,

I found BB's arp default output not well aligned and rather hard to read 
for example with a mix of long and short hostnames.

I made this little patch (for my purposes on a wireless router) to make 
it look more like the 'default' aligned output style on my system (from 
net-tools). I have tried to alter as little original code as possible. 
Just thought I would post it in case it is of use to someone.

Cheers

Rich

--- a/busybox-1.22.1/networking/arp.c.orig    2014-01-09 
18:15:44.000000000 +0000
+++ b/busybox-1.22.1/networking/arp.c    2014-10-04 22:12:25.896657593 +0100
 <at>  <at>  -372,22 +372,25  <at>  <at> 
      if (xhw == NULL)
          xhw = get_hwtype(DFLT_HW);

-    printf("%s (%s) at ", name, ip);
+    printf("%-35s %-18s ", name, ip);

      if (!(arp_flags & ATF_COM)) {
          if (arp_flags & ATF_PUBL)
-            printf("* ");
+            printf("%-18s %-10s ", "*", "-");
          else
-            printf("<incomplete> ");
(Continue reading)

Steven Honeyman | 18 Oct 17:58 2014
Picon

Re: `busyboxvi` is not working like before

On 18 October 2014 16:04, Roy <roytam <at> gmail.com> wrote:
> busybox git build running `./busybox vi` now shows "'(null)' Bad address"
> instead of "- No file 1/1 100%" like before.

Confirmed - I get the same.

Steven.
hardik gohil | 16 Oct 13:51 2014
Picon

Customize Date command

Hello,

I want to customize date command such that whenever i set date using Date command It should be able to set System time and Hardware clock time using same command without using hwclock command.

I have downloaded the source.

I would like to know the entry point into busybox files whenever i enter date command from user space?

what will be easy method to customize date command?
_______________________________________________
busybox mailing list
busybox <at> busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
Bastian Bittorf | 16 Oct 13:09 2014

crash crond / openwrt / v1.22.1

hi devs,

we have sometimes a crashing crond and no idea whats going on.
In OpenWrt we carry some patches which shouldnot(tm) be involved:
https://dev.openwrt.org/browser/trunk/package/utils/busybox/patches

here the crash:

bastian <at> server1:~/openwrt$ scripts/remote-gdb r42852.ar71xx.crond.8491.11.1413252061.core staging_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/bin/busybox
Using target mips_34kc (uClibc-0.9.33.2)
GNU gdb (Linaro GDB) 7.6-2013.05
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show
copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-linux-gnu
--target=mips-openwrt-linux-uclibc".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from
/home/bastian/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/bin/busybox...done.
warning: core file may not match specified executable file.
[New LWP 8491]
Core was generated by `/usr/sbin/crond -L /dev/null'.
Program terminated with signal 11, Segmentation fault.
#0  __GI_strcmp (p1=<optimized out>, p2=<optimized out>) at
libc/string/generic/strcmp.c:34
34            c1 = (unsigned char) *s1++;
(gdb) bt full
#0  __GI_strcmp (p1=<optimized out>, p2=<optimized out>) at
libc/string/generic/strcmp.c:34
        s1 = <optimized out>
        s2 = <optimized out>
        c1 = 58 ':'
        c2 = <optimized out>
#1  0x770c20e8 in lookup_tzname (key=0x7710af40 <_time_tzinfo+16> "CET")
at libc/misc/time/time.c:745
        len = <optimized out>
        p = 0x34203030
#2  __time_localtime_tzi (timer=0x7fa56f28, result=0x7710af60
<__time_tm>, tzi=0x7710af30 <_time_tzinfo>) at libc/misc/time/time.c:750
        x = {1413860460}
        offset = <optimized out>
        days = <optimized out>
        dst = 0
#3  0x770c05ec in __GI_localtime_r (timer=0x7fa56f28, result=0x7710af60
<__time_tm>) at libc/misc/time/time.c:586
        __infunc_pthread_cleanup_buffer = {__routine = 0x770ee4ac
<pthread_mutex_unlock>, __arg = 0x77106050 <_time_tzlock>, __canceltype
= 0, __prev = 0x456e80 <bb_common_bufsiz1>}
#4  0x770c0548 in __GI_localtime (timer=<optimized out>) at
libc/misc/time/time.c:569
No locals.
#5  0x004096b6 in crond_main ()
No symbol table info available.
#6  0x0040788e in run_applet_no_and_exit ()
No symbol table info available.
#7  0x004078ce in run_applet_and_exit ()
No symbol table info available.
#8  0x00407a68 in main ()
No symbol table info available.
(gdb) 

maybe you have an idea?! - bye, bastian
Picon

Need known defect list for BusyBox

Hi,

 

Greetings!

I am Chethana and am writing from Wipro GE Healthcare Private Limited. We are using the software product ‘BusyBox’ version v1.18.3 on one of our embedded medical device. We have been using the software and the medical device is in the market from past 6 years.

 

We are performing a SOUP(Software of Unknown Pedigree) anomaly for the purpose of audit. With regard to this we need to check if the 3rd party software which we are using in our product has any known defects and its impact on our product. Hence can you please send me the known defect list such that we can analyze it and see if it has any impact on our medical device.

 

Early response is appreciated. Thanks for your support

 

Regards,

Chethana Priyadarshini

Systems Specialist

Wipro GE Healthcare Private Limited

Bangalore, INDIA

 

_______________________________________________
busybox mailing list
busybox <at> busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Gmane