FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 07-04-2012, 03:16 PM
Jonathan Nieder
 
Default Bug#680204: user ifconfig call initiates loading of ax.25 modules

severity 680204 important
reassign 680204 net-tools 1.60-24.1
# still present in commit e8b37a84 (2012-06-29) from
# git://net-tools.git.sourceforge.net/gitroot/net-tools/net-tools
tags 680204 + upstream
quit

Hi,

sergio wrote:

> I'm not sure, may be this is the ifconfig (net-tools) bug, but
> when I do ifconfig as user (or with -a) someones loads netrom and rose
> modules
[...]
> % ifconfig
> <skipped>
> % lsmod| grep -E (rose|netrom|ax25)
> rose 37586 0
> netrom 32996 0
> ax25 46974 2 rose,netrom

Yes, I can reproduce this. It's due to this code in lib/util.c:

int kernel_version(void)
{
struct utsname uts;
int major, minor, patch;

if (uname(&uts) < 0)
return -1;
if (sscanf(uts.release, "%d.%d.%d", &major, &minor, &patch) != 3)
return -1;
return KRELEASE(major, minor, patch);
}

A two-component version number is perfectly normal, but this code
doesn't recognize know that and kernel_version() == -1. As a result,
the logic

if (kernel_version() < KRELEASE(2, 1, 0))
force = 1;

in lib/sockets.c triggers, producing the bug.

Hope that helps,
Jonathan



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/20120704151638.GA3173@burratino
 

Thread Tools




All times are GMT. The time now is 12:32 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org