Re: x25-selective-sub-address-matching-with.patch added to -mm tree

From: Alexey Dobriyan (adobriyan_at_gmail.com)
Date: 05/31/05

  • Next message: Gerd Knorr: "Re: Will __pa(vmalloc()) ever work?"
    To: spereira@tusc.com.au
    Date:	Tue, 31 May 2005 20:14:28 +0400
    
    

    On Tuesday 31 May 2005 13:32, akpm@osdl.org wrote:
    > x25: selective sub-address matching with call user data

    > --- 25/net/x25/af_x25.c~x25-selective-sub-address-matching-with
    > +++ 25-akpm/net/x25/af_x25.c

    > @@ -1325,6 +1331,23 @@ static int x25_ioctl(struct socket *sock

    > + case SIOCX25SCUDMATCHLEN: {
    > + struct x25_subaddr sub_addr;

    > + if (copy_from_user(&sub_addr, argp,
    > + sizeof(&sub_addr)))
                                                  ^^^

    You want sizeof(sub_addr) here. If other people won't NAKYAIOCTL.
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Gerd Knorr: "Re: Will __pa(vmalloc()) ever work?"

    Relevant Pages

    • Re: [2.6.16rc2] compile error
      ... To unsubscribe from this list: ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ... Copyright 2006 by Maurice Eugene Heskett, ...
      (Linux-Kernel)
    • Re: [patch 0/14] s3c2412/s3c2413 support
      ... implementations. ... To unsubscribe from this list: ... Please read the FAQ at http://www.tux.org/lkml/ ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
      (Linux-Kernel)
    • Re: Fwd: Registration Weakness in Linux Kernels Binary formats
      ... Subject: Registration Weakness in Linux Kernel's Binary formats To: ... To unsubscribe from this list: ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ - To unsubscribe ...
      (Linux-Kernel)
    • Re: Suspend to RAM generates oops and general protection fault
      ... he said it looked like a CPU hotplug ... To unsubscribe from this list: ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • Re: potential security issue
      ... Please provide me with a PGP key. ... To unsubscribe from this list: ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)