public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] problems with ppp/pppd: put_user/copy_to_user
@ 2001-05-23 18:56 Bill Nottingham
  2001-05-23 20:06 ` Luck, Tony
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Bill Nottingham @ 2001-05-23 18:56 UTC (permalink / raw)
  To: linux-ia64

We've got a report of ppp not working; what happens is that it
puts in the log:
    Couldn't get channel number: bad address

when it sends the PPPIOCGCHAN ioctl.

However, if we replace the calls to put_user for
PPPIOCGCHAN & PPPIOCGFLAGS ioctls with copy_to_user,
it works fine. Shouldn't this not make any difference?

Bill


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

* RE: [Linux-ia64] problems with ppp/pppd: put_user/copy_to_user
  2001-05-23 18:56 [Linux-ia64] problems with ppp/pppd: put_user/copy_to_user Bill Nottingham
@ 2001-05-23 20:06 ` Luck, Tony
  2001-05-23 20:07 ` Bill Nottingham
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Luck, Tony @ 2001-05-23 20:06 UTC (permalink / raw)
  To: linux-ia64

Do you have "ppp" compiled as a module?  There is a problem
with exception handling for modules ... I'm working on a
patch now.

-----Original Message-----
From: Bill Nottingham [mailto:notting@redhat.com]
Sent: Wednesday, May 23, 2001 11:57 AM
To: linux-ia64@linuxia64.org
Subject: [Linux-ia64] problems with ppp/pppd: put_user/copy_to_user


We've got a report of ppp not working; what happens is that it
puts in the log:
    Couldn't get channel number: bad address

when it sends the PPPIOCGCHAN ioctl.

However, if we replace the calls to put_user for
PPPIOCGCHAN & PPPIOCGFLAGS ioctls with copy_to_user,
it works fine. Shouldn't this not make any difference?

Bill

_______________________________________________
Linux-IA64 mailing list
Linux-IA64@linuxia64.org
http://lists.linuxia64.org/lists/listinfo/linux-ia64



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

* Re: [Linux-ia64] problems with ppp/pppd: put_user/copy_to_user
  2001-05-23 18:56 [Linux-ia64] problems with ppp/pppd: put_user/copy_to_user Bill Nottingham
  2001-05-23 20:06 ` Luck, Tony
@ 2001-05-23 20:07 ` Bill Nottingham
  2001-05-23 20:15 ` David Mosberger
  2001-05-23 20:18 ` Bill Nottingham
  3 siblings, 0 replies; 5+ messages in thread
From: Bill Nottingham @ 2001-05-23 20:07 UTC (permalink / raw)
  To: linux-ia64

Luck, Tony (tony.luck@intel.com) said: 
> Do you have "ppp" compiled as a module?  There is a problem
> with exception handling for modules ... I'm working on a
> patch now.

Yes, but why would that make a difference?

Bill


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

* Re: [Linux-ia64] problems with ppp/pppd: put_user/copy_to_user
  2001-05-23 18:56 [Linux-ia64] problems with ppp/pppd: put_user/copy_to_user Bill Nottingham
  2001-05-23 20:06 ` Luck, Tony
  2001-05-23 20:07 ` Bill Nottingham
@ 2001-05-23 20:15 ` David Mosberger
  2001-05-23 20:18 ` Bill Nottingham
  3 siblings, 0 replies; 5+ messages in thread
From: David Mosberger @ 2001-05-23 20:15 UTC (permalink / raw)
  To: linux-ia64

>>>>> On Wed, 23 May 2001 14:56:43 -0400, Bill Nottingham <notting@redhat.com> said:

  Bill> We've got a report of ppp not working; what happens is that it
  Bill> puts in the log: Couldn't get channel number: bad address

  Bill> when it sends the PPPIOCGCHAN ioctl.

  Bill> However, if we replace the calls to put_user for PPPIOCGCHAN &
  Bill> PPPIOCGFLAGS ioctls with copy_to_user, it works
  Bill> fine. Shouldn't this not make any difference?

It should not make a difference.  Is there an easy test case that
reproduces the problem?

	--daivd


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

* Re: [Linux-ia64] problems with ppp/pppd: put_user/copy_to_user
  2001-05-23 18:56 [Linux-ia64] problems with ppp/pppd: put_user/copy_to_user Bill Nottingham
                   ` (2 preceding siblings ...)
  2001-05-23 20:15 ` David Mosberger
@ 2001-05-23 20:18 ` Bill Nottingham
  3 siblings, 0 replies; 5+ messages in thread
From: Bill Nottingham @ 2001-05-23 20:18 UTC (permalink / raw)
  To: linux-ia64

David Mosberger (davidm@hpl.hp.com) said: 
>   Bill> However, if we replace the calls to put_user for PPPIOCGCHAN &
>   Bill> PPPIOCGFLAGS ioctls with copy_to_user, it works
>   Bill> fine. Shouldn't this not make any difference?
> 
> It should not make a difference.  Is there an easy test case that
> reproduces the problem?

Hm, not sure if there's something simpler than having two machines talk
ppp over a serial cable. I'll poke around.

Bill


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

end of thread, other threads:[~2001-05-23 20:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-23 18:56 [Linux-ia64] problems with ppp/pppd: put_user/copy_to_user Bill Nottingham
2001-05-23 20:06 ` Luck, Tony
2001-05-23 20:07 ` Bill Nottingham
2001-05-23 20:15 ` David Mosberger
2001-05-23 20:18 ` Bill Nottingham

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