Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Sep 2010 11:32:17 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/compat/linprocfs linprocfs.c
Message-ID:  <201009281132.o8SBWZSh011116@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kib         2010-09-28 11:32:17 UTC

  FreeBSD src repository

  Modified files:
    sys/compat/linprocfs linprocfs.c 
  Log:
  SVN rev 213246 on 2010-09-28 11:32:17Z by kib
  
  In linprocfs_doargv():
  - handle compat32 processes;
  - remove the checks for copied in addresses to belong into valid
    usermode range, proc_rwmem() does this;
  - simplify loop reading single string, limit the total amount of strings
    collected by ARG_MAX bytes;
  - correctly add '\0' at the end of each copied string;
  - fix style.
  
  In linprocfs_doprocenviron():
  - unlock the process before calling copyin code [1]. The process is held
    by pseudofs.
  
  In linprocfs_doproccmdline:
  - use linprocfs_doargv() to handle !curproc case for which p_args is not cached.
  
  Reported by:            plulnet [1]
  Tested by:              pluknet
  Approved by:            des (linprocfs maintainer, previous
                                  version of the patch)
  MFC after:              3 weeks
  
  Revision  Changes    Path
  1.153     +117 -97   src/sys/compat/linprocfs/linprocfs.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009281132.o8SBWZSh011116>