cvs commit: src/sys/compat/linux linux_ipc.c src/sys/kern sysv_msg.c src/sys/sys syscallsubr.h

Paul Saab ps at FreeBSD.org
Thu May 5 12:57:04 PDT 2005


ps          2005-05-05 19:57:04 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_5)
    sys/compat/linux     linux_ipc.c 
    sys/kern             sysv_msg.c 
    sys/sys              syscallsubr.h 
  Log:
  MFC:
  - Tweak kern_msgctl() to return a copy of the requested message queue id
    structure in the struct pointed to by the 3rd argument for IPC_STAT and
    get rid of the 4th argument.  The old way returned a pointer into the
    kernel array that the calling function would then access afterwards
    without holding the appropriate locks and doing non-lock-safe things like
    copyout() with the data anyways.  This change removes that unsafeness and
    resulting race conditions as well as simplifying the interface.
  
  Revision   Changes    Path
  1.39.2.4   +2 -3      src/sys/compat/linux/linux_ipc.c
  1.53.2.6   +5 -7      src/sys/kern/sysv_msg.c
  1.11.2.12  +1 -2      src/sys/sys/syscallsubr.h


More information about the cvs-src mailing list