Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Alvin Starr <alvin@iplink.net>
Subject: RE: Firewall bug in 2.0.27 kernel
Date: Thu, 10 Apr 1997 11:43:19 -0400 (EDT)	[thread overview]
Message-ID: <1682c728e8f16a9afd00ab561b69c4c0.axp-list@archive.invalid> (raw)
In-Reply-To: <97Apr10.110755edt.48472-3@gatekeeper.cplc.com>

On Thu, 10 Apr 1997, Anderson, Greg wrote:
> >Alvin Starr wrote:
> >
> >Just gotta love C for its ability to do address calculations
> >
> >in "ip_fw.c" you will find
> 
> [snip]
> 
> >The problem is that the address calculation multiplies the ihl value by 8 
> >due to the fact that it points to an "unsigned long". This calculation 
> >should be infact 
> >	((char *)ip)+(ip->ihl<<2)
> 
> Is this only a problem on Alpha?  What problems does this cause, bogus
> filtering?  I'm setting up firewalling on 2.0.27 Intel box and the code
> is the same.  Should I apply your patch to it?

The problem will only show itself on systems where sizeof(long unsigned) 
!= 4. You should be safe on an intel platform.
The problem is that the person who wrote the code took advantage of the 
fact that a unsigned long was 4 bytes in size. This is not true on all 
platforms.

Alvin Starr                   ||   voice: (416)493-3325
Interlink Connectivity        ||   fax:   (416)493-7974
alvin@iplink.net              ||

--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

  reply	other threads:[~1997-04-10 15:43 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-10 14:24 Firewall bug in 2.0.27 kernel Anderson, Greg
1997-04-10 15:43 ` Alvin Starr [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-04-10 18:31 Anderson, Greg
     [not found] <Pine.OSF.3.91.970410113452.29178C-100000@caesar.iplink.net>
1997-04-10 16:30 ` Robert Drotar
1997-04-10 14:24 Anderson, Greg
1997-04-10 14:24 Anderson, Greg
1997-04-10  0:41 Alvin Starr
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox