Re: jail2 patchset 12



On Sunday 17 September 2006 18:08, Alex Lyashkov wrote:
Thanks for you report. I really more test new jail2 API then old :(
Please apply this patch.

# p4 diff -du kern_jail.c
==== //depot/projects/jail2/sys/kern/kern_jail.c#4 -
/root/jail2/sys/kern/kern_jail.c ====
@@ -316,6 +316,7 @@
if (error)
return (error);

+ mtx_lock(&allprison_mtx);
pr = prison_find(uap->jid);
if (pr == NULL) {
return (ESRCH);

Does this leak the lock in the ESRCH case now?

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



Relevant Pages

  • Re: <SOLEVD> Rocketport uPCI ioaddr mapping failed under FreeBSD-5.3&CURRENT
    ... John Baldwin wrote: ... >> I've been tested and works failled after patched your diff! ... >Oh, I see the bug. ... Can you try this patch instead? ...
    (freebsd-current)
  • Success! was Re: tvtime audio vs pcHDTV-3000 card and pvHDTV-1.6 software
    ... On Wednesday 16 March 2005 20:15, Gene Heskett wrote: ... > that a diff actually outputs only the src code differences, ... nor in that simple little 10 line patch that ... >Unforch, the 2.6.11 plain tree has not, in this case been built yet ...
    (Linux-Kernel)
  • Re: how to compile and install a new driver
    ... Warren Block wrote: ... but you'd better include enough info so that they could make FreeBSD-stype diffs: diff has the unfortunate default of making an output that is compatible with ed. ... This supplies extremely little information to use, in case the file you're trying to patch with that diff has changed, and is also damned hard for mere humans to understand. ... then you can compile. ...
    (freebsd-questions)
  • [PATCH][CFT] mm swapping improvements
    ... Nikita's patches and one of my own, and backs out the RSS limit patch ... diff -puN include/linux/mmzone.h~rollup include/linux/mmzone.h ... -int FASTCALL); ...
    (Linux-Kernel)
  • Re: Reading and applying patches
    ... It's worth mentioning that patch is pretty forgiving. ... text up to the actual patch data (the output of a diff command, ... often the "old" tree will be inside ... Commands like "cvs diff" will generate diff output, ...
    (Fedora)