/* * Shared async block cipher helpers */ #ifndef _CRYPTO_ABLK_HELPER_H #define _CRYPTO_ABLK_HELPER_H #include <linux/crypto.h> #include <linux/kernel.h> #include <crypto/cryptd.h> struct async_helper_ctx { struct cryptd_ablkcipher *cryptd_tfm; }; extern int ablk_set_key(struct crypto_ablkcipher *tfm, const u8 *key, unsigned int key_len); extern int __ablk_encrypt(struct ablkcipher_request *req); extern int ablk_encrypt(struct ablkcipher_request *req); extern int ablk_decrypt(struct ablkcipher_request *req); extern void ablk_exit(struct crypto_tfm *tfm); extern int ablk_init_common(struct crypto_tfm *tfm, const char *drv_name); extern int ablk_init(struct crypto_tfm *tfm); #endif /* _CRYPTO_ABLK_HELPER_H */ go'/></a></td> <td class='main'><a href='/cgit.cgi/'>index</a> : <a href='/cgit.cgi/linux/net-next.git/'>net-next.git</a></td><td class='form'><form method='get'> <input type='hidden' name='id' value='d7426c69a1942b2b9b709bf66b944ff09f561484'/><select name='h' onchange='this.form.submit();'> <option value='emaclite-cleanup'>emaclite-cleanup</option> <option value='master'>master</option> <option value='nds-private-remove' selected='selected'>nds-private-remove</option> <option value='packet-loop-back'>packet-loop-back</option> <option value='packet-rx-pump-back'>packet-rx-pump-back</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table> <table class='tabs'><tr><td> <a href='/cgit.cgi/linux/net-next.git/?h=nds-private-remove'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?h=nds-private-remove&id=d7426c69a1942b2b9b709bf66b944ff09f561484'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/include/xen/interface/nmi.h?h=nds-private-remove'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/include/xen/interface/nmi.h?h=nds-private-remove&id=d7426c69a1942b2b9b709bf66b944ff09f561484'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/include/xen/interface/nmi.h?h=nds-private-remove&id=d7426c69a1942b2b9b709bf66b944ff09f561484'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/include/xen/interface/nmi.h?h=nds-private-remove&id=d7426c69a1942b2b9b709bf66b944ff09f561484'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/include/xen/interface/nmi.h'> <input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='d7426c69a1942b2b9b709bf66b944ff09f561484'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?h=nds-private-remove&id=d7426c69a1942b2b9b709bf66b944ff09f561484'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/include?h=nds-private-remove&id=d7426c69a1942b2b9b709bf66b944ff09f561484'>include</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/xen?h=nds-private-remove&id=d7426c69a1942b2b9b709bf66b944ff09f561484'>xen</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/xen/interface?h=nds-private-remove&id=d7426c69a1942b2b9b709bf66b944ff09f561484'>interface</a>/<a href='/cgit.cgi/linux/net-next.git/log/include/xen/interface/nmi.h?h=nds-private-remove&id=d7426c69a1942b2b9b709bf66b944ff09f561484'>nmi.h</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/include/xen/interface/nmi.h?h=nds-private-remove&id=d7426c69a1942b2b9b709bf66b944ff09f561484&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr> '6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'> <tr><th>author</th><td>Christoph Hellwig <hch@lst.de></td><td class='right'>2017-01-24 14:50:19 +0100</td></tr> <tr><th>committer</th><td>Jens Axboe <axboe@fb.com></td><td class='right'>2017-01-24 07:55:53 -0700</td></tr> <tr><th>commit</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/net/sched/act_api.c?h=nds-private-remove&id=690e5325b8c7d5db05fc569c0f7b888bb4248272'>690e5325b8c7d5db05fc569c0f7b888bb4248272</a> (<a href='/cgit.cgi/linux/net-next.git/patch/net/sched/act_api.c?id=690e5325b8c7d5db05fc569c0f7b888bb4248272'>patch</a>)</td></tr> <tr><th>tree</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/tree/?h=nds-private-remove&id=690e5325b8c7d5db05fc569c0f7b888bb4248272'>b9c39916a4397b1eb628e07e4fc6aff91219e393</a> /<a href='/cgit.cgi/linux/net-next.git/tree/net/sched/act_api.c?h=nds-private-remove&id=690e5325b8c7d5db05fc569c0f7b888bb4248272'>net/sched/act_api.c</a></td></tr> <tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/net/sched/act_api.c?h=nds-private-remove&id=a4685d2f58e2230d4e27fb2ee581d7ea35e5d046'>a4685d2f58e2230d4e27fb2ee581d7ea35e5d046</a> (<a href='/cgit.cgi/linux/net-next.git/diff/net/sched/act_api.c?h=nds-private-remove&id=690e5325b8c7d5db05fc569c0f7b888bb4248272&id2=a4685d2f58e2230d4e27fb2ee581d7ea35e5d046'>diff</a>)</td></tr></table> <div class='commit-subject'>block: fix use after free in __blkdev_direct_IO</div><div class='commit-msg'>We can't dereference the dio structure after submitting the last bio for this request, as I/O completion might have happened before the code is run. Introduce a local is_sync variable instead. Fixes: 542ff7bf ("block: new direct I/O implementation") Signed-off-by: Christoph Hellwig <hch@lst.de> Reported-by: Matias Bjørling <m@bjorling.me> Tested-by: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@fb.com> </div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?h=nds-private-remove&id=690e5325b8c7d5db05fc569c0f7b888bb4248272'>Diffstat</a> (limited to 'net/sched/act_api.c')</div><table summary='diffstat' class='diffstat'>