klogd broken in 1.13.0?

Steve Bennett steveb at workware.net.au
Wed Nov 19 07:04:47 UTC 2008


I suspect strcpy vs memmove.

Try this patch and let me know if it helps.

Cheers,
Steve

On 19/11/2008, at 2:17 PM, Hamish Moffatt wrote:

> I just switched from busybox 1.11.2 to 1.13.0 for a project and now  
> kernel
> message logging seems a bit busted. It starts ok but then goes wrong.
> Application logging seems to work ok still (see the last 5 lines of  
> this
> example).
>
> I backed out rev 23583 and now it works again.
>
> Viewing whole files on the busybox ViewCVS seems to be broken too eg
> http://busybox.net/cgi-bin/viewcvs.cgi/branches/busybox_1_13_stable/sysklogd/klogd.c?rev=23583&view=markup
> Diffs work though.
>
> Hamish
>
> Jan  1 00:00:06 elara user.warn kernel: [    4.040000] VFS: Mounted  
> root (ubifs filesystem) readonly.
> Jan  1 00:00:06 elara user.info kernel: [    4.050000] Freeing init  
> memory: 92K
> Jan  1 00:00:06 elara user.notice kernel: [    5.220000] UBIFS:  
> mounted UBI device 0, volume 2
> Jan  1 00:00:06 elara user.notice kernel: [    5.220000] UBIFS:  
> minimal I/O unit size:   2048 bytes
> Jan  1 00:00:06 elara user.notice kernel: [    5.230000] UBIFS:  
> logical eraseblock size: 129024 bytes (126 KiB)
> Jan  1 00:00:06 elara user.notice kernel: [    5.230000] UBIFS: file  
> system size:        15740928 bytes (15372 KiB, 15 MiB, 122 LEBs)
> Jan  1 00:00:06 elara user.notice kernel: [    5.240000] UBIFS:  
> journal size:            774144 bytes (756 KiB, 0 MiB, 6 LEBs)
> Jan  1 00:00:06 elara user.notice kernel: [    5.250000] UBIFS: data  
> journal heads:      1
> Jan  1 00:00:06 elara user.notice kernel: [    5.250000] UBIFS:  
> default compressor:      LZO
> Jan  1 00:00:06 elara user.notice kernel: [    5.540000] UBIFS:  
> mounted UBI device 0, volume 3
> Jan  1 00:00:06 elara user.notice kernel: [    5.550000] UBIFS:  
> minimal I/O unit size:   2048 bytes
> Jan  1 00:00:06 elara user.notice kernel: [    5.550000] UBIFS:  
> logical eraseblock size: 129024 bytes (126 KiB)
> Jan  1 00:00:06 elara user.notice kernel: [    5.560000] UBIFS: file  
> system size:        235081728 bytes (229572 KiB, 224 MiB, 1822 LEBs)
> Jan  1 00:00:06 elara user.notice kernel: [    5.570000] UBIFS:  
> journal size:            11741184 bytes (11466 KiB, 11 MiB, 91 LEBs)
> Jan  1 00:00:06 elara user.notice kernel: [    5.570000] UBIFS: data  
> journal heads:      1
> Jan  1 00:00:06 elara user.notice kernel: [    5.580000] UBIFS:  
> default compressor:      LZO
> Jan  1 00:00:06 elara user.info kernel: 930000]  
> 0x00200000-0x00380000 : "boot-ramdisk"<4>[    6.490000] europa_fuse:  
> Unknown symbol processor_id
> Jan  1 00:00:06 elara user.info kernel: 5>[    0.940000]  
> 0x007c0000-0x007e0000 : "RedBoot config"<6>[    6.520000] Calyptech  
> GPIO proc interface loaded
> Jan  1 00:00:06 elara user.info kernel: 0.940000]  
> 0x007c0000-0x007e0000 : "RedBoot config"<6>[    6.670000] Registered  
> led device: elara:red:power
> Jan  1 00:00:06 elara user.info kernel: aded<6>[    6.710000]  
> Registered led device: elara:green:power
> Jan  1 00:00:07 elara user.info kernel: 000] Registered led device:  
> elara:red:power<4>[    7.070000] ixp400: module license  
> 'unspecified' taints kernel.
> Jan  1 00:00:07 elara user.info kernel: .940000]  
> 0x007c0000-0x007e0000 : "RedBoot config"<7>[    7.430000] ixp400:  
> Module init.
> Jan  1 00:00:07 elara user.info kernel: pecified' taints  
> kernel.<6>[    7.670000] ixp400_eth: Initializing IXP400 NPE  
> Ethernet driver software v. 1.8
> Jan  1 00:00:07 elara user.info kernel: [    7.680000] ixp400_eth:  
> CPU clock speed (approx) = 532 MHz
> Jan  1 00:00:08 elara user.info kernel: 000] 0x007e0000-0x007e8000 :  
> "FIS directory"<6>[    7.830000] ixp400_eth: eth1 is using NPEC and  
> the PHY at address 1
> Jan  1 00:00:08 elara user.info kernel: [    7.830000] ixp400_eth:  
> eth2 is using NPEA and the PHY at address 0
> Jan  1 00:00:08 elara user.info kernel: 0x007e8000 : "FIS  
> directory"<4>[    7.870000] ixp400_eth: Using MAC address 00:1b: 
> 9f:f0:00:01 for port 1
> Jan  1 00:00:08 elara user.info kernel: at address  
> 1<4>[    7.920000] ixp400_eth: Using MAC address 00:1b:9f:00:00:02  
> for port 2
> Jan  1 00:00:09 elara user.info kernel: 0:01 for port  
> 1<3>[    9.120000] br0: Dropping NETIF_F_UFO since no  
> NETIF_F_HW_CSUM feature.
> Jan  1 00:00:09 elara user.info kernel:  for port 1<6>[    9.160000]  
> device eth0 entered promiscuous mode
> Jan  1 00:00:09 elara user.info kernel: o NETIF_F_HW_CSUM  
> feature.<6>[    9.240000] device eth1 entered promiscuous mode
> Jan  1 00:00:10 elara user.notice rc: Using IP address 192.168.3.2
> Jan  1 00:00:11 elara daemon.info dnsmasq[864]: started, version  
> 2.45 cachesize 150
> Jan  1 00:00:11 elara daemon.info dnsmasq[864]: compile time  
> options: no-IPv6 GNU-getopt no-ISC-leasefile no-DBus no-I18N TFTP
> Jan  1 00:00:11 elara daemon.info dnsmasq[864]: cleared cache
> Jan  1 00:00:11 elara auth.warn portmap[867]: user rpc not found,  
> reverting to user bin
> -- 
> Hamish Moffatt VK3SB <hamish at debian.org> <hamish at cloud.net.au>
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://busybox.net/cgi-bin/mailman/listinfo/busybox
>

--
WorkWare Systems Pty Ltd
W: www.workware.net.au      P: 0434 921 300
E: steveb at workware.net.au   F: 07 3102 9221


-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox-klogd-memmove.patch
Type: application/octet-stream
Size: 602 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20081119/20f71d36/attachment-0002.obj 


More information about the busybox mailing list