Re: [PATCH 1/7] bio-integrity: Do not allocate integrity context for bio w/o data

2017-04-04 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

[PATCH 1/7] bio-integrity: Do not allocate integrity context for bio w/o data

2017-04-03 Thread Dmitry Monakhov
If bio has no data, such as ones from blkdev_issue_flush(), then we have nothing to protect. This patch prevent bugon like follows: kfree_debugcheck: out of range ptr ac1fa1d106742a5ah kernel BUG at mm/slab.c:2773! invalid opcode: [#1] SMP Modules linked in: bcache CPU: 0 PID: 4428 Comm: