lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 5 Nov 2009 16:54:14 -0800
From:	"Luis R. Rodriguez" <mcgrof@...il.com>
To:	linux-kernel@...r.kernel.org
Cc:	netdev@...r.kernel.org
Subject: Using netconsole and getting double prints

I'm getting double prints when using netconsole. This used to happen
to me and then I just enable debugging log level manually (dmesg -n 8)
but now no matter what I try I always get double prints.

For example:

[   23.425448] console [netcon0] enabled
[   23.425567] netconsole: network logging started
[   23.425448] console [netcon0] enabled
[   23.425567] netconsole: network logging started
[   32.856073] eth0: no IPv6 routers present
[   32.856073] eth0: no IPv6 routers present
[   66.307342] kmemleak: 6 new suspected memory leaks (see
/sys/kernel/debug/kmemleak)
[   66.307342] kmemleak: 6 new suspected memory leaks (see
/sys/kernel/debug/kmemleak)

Instead of dmesg -8 I'm now using ignore_loglevel as a kernel
parameter but I still get double prints. This also happens if I use
"debug" as a kernel parameter instead.

The netconsole is set up on the dev box as follows through an /etc/rc.local

dhclient eth0
IP=192.168.2
# sudo dmesg -n 8
modprobe netconsole netconsole=@...h0,6666@...P}/
exit 0

I capture my data with netcat script (I call it netlog):

#!/bin/bash
echo "You should now run in another window: tail -f $HOME/log"
while true; do
	/bin/nc -u -l -p 6666 >> $HOME/log
done

This also just doesn't work if I run the nc manually without a redirect:

while true; do /bin/nc -u -l -p 6666; done

Any ideas?

  Luis
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ