Re: Another 4.x ABI question; uidinfo

From: Robert Watson (rwatson_at_freebsd.org)
Date: 08/02/03

  • Next message: Robert Watson: "Re: headsup: swap_pager.c"
    Date: Sat, 2 Aug 2003 10:45:29 -0400 (EDT)
    To: Mike Silbersack <silby@silby.com>
    
    

    On Sat, 2 Aug 2003, Mike Silbersack wrote:

    > Ok, so I took another at the uidinfo ui_ref field being only a u_short
    > in 4.x. As I recall, the reason this was not changed to a u_int was
    > binary compatibility... however, as I look around the source tree, it
    > appears that the only places uidinfos are used are within kern/, and
    > then generally only by things touching procs. Thirdly, it appears that
    > the refcount is only modified within three functions in kern_resource.c,
    > and that ui_ref is the last member in that structure.
    >
    > So, is there _really_ a problem in promoting ui_ref to an int from a
    > short? As far as I can tell, any network or sound driver should be
    > completely insulated from such a change; do we have any other class of
    > binary modules to worry about?

    I'm guessing it would be fine, then -- if nothing is accessing it using
    libkvm, it shouldn't be a problem. Changing the last field in the
    structure won't change dereferences from other compiled kernel modules --
    the only thing I think you'd need to worry about are reference count
    changes in other modules (possibly, but unlikely), or statically allocated
    uidinfo storage (unlikely).

    Robert N M Watson FreeBSD Core Team, TrustedBSD Projects
    robert@fledge.watson.org Network Associates Laboratories

    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"


  • Next message: Robert Watson: "Re: headsup: swap_pager.c"

    Relevant Pages

    • Re: dlopen() performance on Mac OS X?
      ... Consider that strlenprobably resides in a dynamic ... no reason to worry more about mySharedLibraryFunctionthan ... about any of these -- so I suggest you worry about none. ... The extreme cases remain as a source ...
      (comp.unix.programmer)
    • Re: Command line options: using an [option: parameter] without a parameter passed to it
      ... > As for efficiency, parameter evaluation is no place to worry about that, ... > and program development in general is not the time to worry about it. ... The reason it doesn't behave the way I ...
      (comp.lang.perl.misc)
    • Re: Command line options: using an [option: parameter] without a parameter passed to it
      ... >> and program development in general is not the time to worry about it. ... The reason it doesn't behave the way I ... I was explicitly asking *if* it was possible to do ... "Reply" at the bottom of the article headers. ...
      (comp.lang.perl.misc)
    • Re: fedora-list Digest, Vol 57, Issue 42
      ... It just means Firefox didn't recognize the site certificate. ... I would worry if it was your bank. ... separate from /usr/sbin for that specific reason. ... NEVER post a reply to a digest. ...
      (Fedora)
    • Re: Pagano needs....
      ... I don't disagree, but I've left a number of embarassed atheists in my ... Perhaps you should worry less about those who do not address you ... presenting the reason they are considered transitional in nature, ...
      (talk.origins)