public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Module section warning
@ 2001-01-05 20:06 J . A . Magallon
  2001-01-05 20:51 ` Alan Cox
  0 siblings, 1 reply; 3+ messages in thread
From: J . A . Magallon @ 2001-01-05 20:06 UTC (permalink / raw)
  To: linux-kernel

Hi everyone.

As linux-2.4.0/Documentation/canges says, you need:

o  binutils               2.9.1.0.25              # ld -v
o  modutils               2.4.0                   # insmod -V

and 2.4 uses gas instead of as86 for real mode.

Are not that versions enough to delete the

__asm__(".section .modinfo\n\t.previous");

in module.h ?

--

J.A. Magallon                                         $> cd pub
mailto:jamagallon@able.es                             $> more beer

Linux werewolf 2.2.19-pre6 #1 SMP Wed Jan 3 21:28:10 CET 2001 i686

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Module section warning
  2001-01-05 20:06 Module section warning J . A . Magallon
@ 2001-01-05 20:51 ` Alan Cox
  2001-01-06  7:53   ` Keith Owens
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Cox @ 2001-01-05 20:51 UTC (permalink / raw)
  To: J . A . Magallon; +Cc: linux-kernel

> o  binutils               2.9.1.0.25              # ld -v
> o  modutils               2.4.0                   # insmod -V
> 
> and 2.4 uses gas instead of as86 for real mode.
> 
> Are not that versions enough to delete the
> __asm__(".section .modinfo\n\t.previous");
> in module.h ?

Firstly they are guidelines for x86. Secondly certain configs need the updates
so its pretty invasive to force it yet - 2.5.0 yes

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Module section warning
  2001-01-05 20:51 ` Alan Cox
@ 2001-01-06  7:53   ` Keith Owens
  0 siblings, 0 replies; 3+ messages in thread
From: Keith Owens @ 2001-01-06  7:53 UTC (permalink / raw)
  To: Alan Cox; +Cc: J . A . Magallon, linux-kernel

On Fri, 5 Jan 2001 20:51:46 +0000 (GMT), 
Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
>> o  binutils               2.9.1.0.25              # ld -v
>> o  modutils               2.4.0                   # insmod -V
>> 
>> and 2.4 uses gas instead of as86 for real mode.
>> 
>> Are not that versions enough to delete the
>> __asm__(".section .modinfo\n\t.previous");
>> in module.h ?
>
>Firstly they are guidelines for x86. Secondly certain configs need the updates
>so its pretty invasive to force it yet - 2.5.0 yes

Any modutils >= 2.3.19 automatically treats .modinfo as no load,
irrespective of what the kernel says.  Since modutils 2.3.21 fixes the
local root exploit on modprobe, nobody on kernel 2.4 should be running
modutils < 2.3.21.  I am tempted to put a check in modules_install to
detect insecure modutils and bitch.

Modutils 2.4 is backwards compatible down to 2.0 kernels.  I have no
qualms about removing __asm__(".section .modinfo\n\t.previous"); from
module.h in 2.4 kernels and will be sending in patches to do that,
along with other changes to module.h.  Worst case when omitting that
line and still using old modutils is a slightly larger module in
memory.

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-01-06  7:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-05 20:06 Module section warning J . A . Magallon
2001-01-05 20:51 ` Alan Cox
2001-01-06  7:53   ` Keith Owens

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