<feed xmlns='http://www.w3.org/2005/Atom'>
<title>gocryptfs/internal/contentenc, branch v2.0-beta2</title>
<subtitle>Mirror of gocryptfs source code on Github</subtitle>
<id>http://nuetzlich.net/cgit/gocryptfs/atom?h=v2.0-beta2</id>
<link rel='self' href='http://nuetzlich.net/cgit/gocryptfs/atom?h=v2.0-beta2'/>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/'/>
<updated>2020-05-17T12:23:47+00:00</updated>
<entry>
<title>Update go-fuse import path to github.com/hanwen/go-fuse/v2</title>
<updated>2020-05-17T12:23:47+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2020-05-17T12:18:23+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=ec74d1d2f4217a9a337d1db9902f32ae2aecaf33'/>
<id>urn:sha1:ec74d1d2f4217a9a337d1db9902f32ae2aecaf33</id>
<content type='text'>
We need
https://github.com/hanwen/go-fuse/commit/fd7328faf9fdf75709f7ba7df7072aaf4eeb18b3
to fix a crash reported in https://github.com/rfjakob/gocryptfs/issues/430 :

  2019/10/30 17:14:16 Unknown opcode 2016
  panic: runtime error: invalid memory address or nil pointer dereference
  [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x508d38]

This patch is only in the v2.x.x branch. Upgrade to v2, as the
old API is also supported there.

Running

  git grep hanwen/go-fuse | grep -v hanwen/go-fuse/v2

to check for forgotten references comes back clean.
</content>
</entry>
<entry>
<title>contentenc: encryptBlocksParallel: explain why last part runs in new goroutine</title>
<updated>2020-02-15T20:28:12+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2020-02-15T20:28:12+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=abc59fa96802f1b79fc92ba3a4ae78b58b905535'/>
<id>urn:sha1:abc59fa96802f1b79fc92ba3a4ae78b58b905535</id>
<content type='text'>
The result is counter-intuitive, so explain it here.
</content>
</entry>
<entry>
<title>contentenc: move parallel encryption into encryptBlocksParallel</title>
<updated>2020-02-15T14:49:12+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2020-02-15T14:49:12+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=9aeb2a3df68539ad3a44283b9b94e1b28f011941'/>
<id>urn:sha1:9aeb2a3df68539ad3a44283b9b94e1b28f011941</id>
<content type='text'>
Make the logic self-contained in the new helper function.
</content>
</entry>
<entry>
<title>contentenc: add explicit test for all-zero header</title>
<updated>2019-10-06T17:37:51+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2019-10-06T17:34:32+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=b3c88f573f4c1b269e78dd7d1dbd6de73d477694'/>
<id>urn:sha1:b3c88f573f4c1b269e78dd7d1dbd6de73d477694</id>
<content type='text'>
https://github.com/rfjakob/gocryptfs/issues/363
</content>
</entry>
<entry>
<title>ParseHeader: print hexdump on error</title>
<updated>2019-02-17T16:13:20+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2019-02-17T16:13:20+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=179471b6486b2cb3e6e24eed1d9f86f2e880e334'/>
<id>urn:sha1:179471b6486b2cb3e6e24eed1d9f86f2e880e334</id>
<content type='text'>
Should help debugging https://github.com/rfjakob/gocryptfs/issues/363
</content>
</entry>
<entry>
<title>configfile: Explicitly wipe scrypt derived key after decrypting/encrypting master key.</title>
<updated>2018-12-27T17:47:14+00:00</updated>
<author>
<name>Sebastian Lackner</name>
</author>
<published>2018-12-26T20:17:54+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=07c486603c42af00c81d9e76e3b0731aa986e881'/>
<id>urn:sha1:07c486603c42af00c81d9e76e3b0731aa986e881</id>
<content type='text'>
Further raises the bar for recovering keys from memory.
</content>
</entry>
<entry>
<title>Assorted spelling fixes.</title>
<updated>2018-12-27T14:19:55+00:00</updated>
<author>
<name>Sebastian Lackner</name>
</author>
<published>2018-12-27T11:03:00+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=874eaf9734cc10940e08f7b043652449e1e220b5'/>
<id>urn:sha1:874eaf9734cc10940e08f7b043652449e1e220b5</id>
<content type='text'>
Mostly detected with the 'codespell' utility, but also includes some
manual grammar fixes.
</content>
</entry>
<entry>
<title>contentenc: reserve one extra block in pool plaintext buffers</title>
<updated>2018-07-15T09:39:19+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2018-07-15T09:39:07+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=bcca323cb778d3ab9bf3b16e041ede5e67b18ff8'/>
<id>urn:sha1:bcca323cb778d3ab9bf3b16e041ede5e67b18ff8</id>
<content type='text'>
File holes and -fsck can cause unaligned read accesses, which means
we have to decrypt one extra plaintext block.

xfstests generic/083 manage to crash -fsck like this:

generic/083	2018/07/14 15:25:21 wrong len=266240, want=131072
panic: wrong len=266240, want=131072

goroutine 1 [running]:
log.Panicf(0x67fc00, 0x15, 0xc4204fec90, 0x2, 0x2)
	/usr/local/go/src/log/log.go:333 +0xda
github.com/rfjakob/gocryptfs/internal/contentenc.(*bPool).Put(0xc4200d4800, 0xc4202f2000, 0x21000, 0x41000)
	/home/jakob/go/src/github.com/rfjakob/gocryptfs/internal/contentenc/bpool.go:27 +0x15d
github.com/rfjakob/gocryptfs/internal/fusefrontend.(*File).doRead(0xc4200b4500, 0xc42019e000, 0x0, 0x20000, 0x28400, 0x20000, 0xc42019e000, 0xc4204ff008, 0x435164, 0xc420000180)
	/home/jakob/go/src/github.com/rfjakob/gocryptfs/internal/fusefrontend/file.go:227 +0xba9
github.com/rfjakob/gocryptfs/internal/fusefrontend.(*File).Read(0xc4200b4500, 0xc42019e000, 0x20000, 0x20000, 0x28400, 0x0, 0x0, 0x0)
	/home/jakob/go/src/github.com/rfjakob/gocryptfs/internal/fusefrontend/file.go:246 +0x23e
main.(*fsckObj).file(0xc420069320, 0xc42001a630, 0x21)
	/home/jakob/go/src/github.com/rfjakob/gocryptfs/fsck.go:126 +0x21f
main.(*fsckObj).dir(0xc420069320, 0xc420014dc0, 0x1d)
	/home/jakob/go/src/github.com/rfjakob/gocryptfs/fsck.go:76 +0x387
main.(*fsckObj).dir(0xc420069320, 0xc42021dae0, 0x19)
	/home/jakob/go/src/github.com/rfjakob/gocryptfs/fsck.go:74 +0x347
</content>
</entry>
<entry>
<title>fsck: clean up log output</title>
<updated>2018-04-02T16:32:30+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2018-04-02T16:32:30+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=b6c8960b01f9e5366814b0dada57a0b1e6a031d9'/>
<id>urn:sha1:b6c8960b01f9e5366814b0dada57a0b1e6a031d9</id>
<content type='text'>
Make sure we get only 1 warning output per
problem.

Also, add new corruption types to broken_fs_v1.4.
</content>
</entry>
<entry>
<title>fusefrontend: add xattr support</title>
<updated>2018-03-25T19:06:10+00:00</updated>
<author>
<name>Jakob Unterwurzacher</name>
</author>
<published>2018-03-18T16:43:38+00:00</published>
<link rel='alternate' type='text/html' href='http://nuetzlich.net/cgit/gocryptfs/commit/?id=1ed3d51df1750d5472b1349222c352171f1e8d64'/>
<id>urn:sha1:1ed3d51df1750d5472b1349222c352171f1e8d64</id>
<content type='text'>
At the moment, only for reverse mode.

https://github.com/rfjakob/gocryptfs/issues/217
</content>
</entry>
</feed>
