Date: Fri, 12 Jan 2001 13:44:22 -0600 From: "Jason Smethers" <jsmethers@pdq.net> To: "John Baldwin" <jhb@FreeBSD.org> Cc: <hackers@FreeBSD.org> Subject: Re: Mutexs: checking for initialization Message-ID: <006601c07cd0$1063ed80$edcf1f40@pdq.net> References: <XFMail.010112100223.jhb@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
From: "John Baldwin" <jhb@FreeBSD.org> > Umm, well, you could write a function that walked the all_mtx list and checked > if the mutex was in that list. However, I think that you are using the wrong > tool for your problem here. :) I'm not sure validating mutexes is the way to > validate all the data you are receiving. We'll, I'm not validating ALL the data with the mutic, just the mutic itself. Anyway, after sleep and a shower I come back and have a 'Duh' moment. What am I trying to do and what am I doing? If I can't trust the data being passed, how can I trust the memory it's in. Time to change the model to a one time memory copy hit. =) Thanks - Jason To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?006601c07cd0$1063ed80$edcf1f40>