svn commit: r326107 - in head/sys: kern sys

Shawn Webb shawn.webb at hardenedbsd.org
Thu Nov 23 03:17:44 UTC 2017


On Wed, Nov 22, 2017 at 10:04:04PM +0000, Mateusz Guzik wrote:
> Author: mjg
> Date: Wed Nov 22 22:04:04 2017
> New Revision: 326107
> URL: https://svnweb.freebsd.org/changeset/base/326107
> 
> Log:
>   locks: pass the found lock value to unlock slow path
>   
>   This avoids an explicit read later.
>   
>   While here whack the cheaply obtainable 'tid' argument.
> 
> Modified:
>   head/sys/kern/kern_mutex.c
>   head/sys/kern/kern_rwlock.c
>   head/sys/kern/kern_sx.c
>   head/sys/sys/mutex.h
>   head/sys/sys/rwlock.h
>   head/sys/sys/sx.h

This breaks ZFS:
https://gist.github.com/lattera/93faa9c47ccc985ebda039ab31641c2c

Thanks,

-- 
Shawn Webb
Cofounder and Security Engineer
HardenedBSD

GPG Key ID:          0x6A84658F52456EEE
GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89  3D9E 6A84 658F 5245 6EEE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20171122/9b22e0eb/attachment.sig>


More information about the svn-src-head mailing list