summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDouya Le <ldy3087146292@gmail.com>2026-04-02 23:34:55 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2026-04-03 08:54:14 +0800
commit8eceab19eba9dcbfd2a0daec72e1bf48aa100170 (patch)
treeea0b8568d17a29d20cbe45573af4e1d8f9146dc5 /tools/perf/scripts/python
parente02494114ebf7c8b42777c6cd6982f113bfdbec7 (diff)
downloadkernel-8eceab19eba9dcbfd2a0daec72e1bf48aa100170.tar.gz
crypto: af_alg - limit RX SG extraction by receive buffer budget
Make af_alg_get_rsgl() limit each RX scatterlist extraction to the remaining receive buffer budget. af_alg_get_rsgl() currently uses af_alg_readable() only as a gate before extracting data into the RX scatterlist. Limit each extraction to the remaining af_alg_rcvbuf(sk) budget so that receive-side accounting matches the amount of data attached to the request. If skcipher cannot obtain enough RX space for at least one chunk while more data remains to be processed, reject the recvmsg call instead of rounding the request length down to zero. Fixes: e870456d8e7c8d57c059ea479b5aadbb55ff4c3a ("crypto: algif_skcipher - overhaul memory management") Reported-by: Yifan Wu <yifanwucs@gmail.com> Reported-by: Juefei Pu <tomapufckgml@gmail.com> Co-developed-by: Yuan Tan <yuantan098@gmail.com> Signed-off-by: Yuan Tan <yuantan098@gmail.com> Suggested-by: Xin Liu <bird@lzu.edu.cn> Signed-off-by: Douya Le <ldy3087146292@gmail.com> Signed-off-by: Ren Wei <n05ec@lzu.edu.cn> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
0700'>2019-07-08Merge branch 'for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cg...Linus Torvalds 2019-06-29block, documentation: Document discard_zeroes_data, fua, max_discard_segments...Bart Van Assche 2019-06-29block, documentation: Explain the word 'segments'Bart Van Assche 2019-06-29block, documentation: Sort queue sysfs attribute names alphabeticallyBart Van Assche 2019-06-29block, documentation: Fix wbt_lat_usec documentationBart Van Assche 2019-06-20block: rename CONFIG_DEBUG_BLK_CGROUP to CONFIG_BFQ_CGROUP_DEBUGChristoph Hellwig 2019-06-20block: remove the bi_phys_segments field in struct bioChristoph Hellwig 2019-06-14docs: cgroup-v1: convert docs to ReST and rename to *.rstMauro Carvalho Chehab 2019-06-13block/switching-sched.txt: Update to blk-mq schedulersAndreas Herrmann 2019-04-09block: null: Add documentation for "zone_nr_conv" paramMinwoo Im 2019-04-01doc, block, bfq: add information on bfq execution timePaolo Valente 2019-02-15block: document usage of bio iterator helpersMing Lei 2019-01-09block: doc: add slice_idle_us to bfq documentationJohn Pittman 2019-01-06null_blk: add zoned config support informationJohn Pittman 2019-01-04block: add documentation for io_timeoutWeiping Zhang 2018-12-16block: update sysfs documentationDamien Le Moal 2018-11-07block: remove legacy IO schedulersJens Axboe 2018-11-07block: remove legacy rq taggingJens Axboe 2018-09-09Drop all 00-INDEX files from Documentation/Henrik Austad 2018-07-18block: Track DISCARD statistics and output them in stat and diskstatMichael Callahan 2018-07-09null_blk: add zone supportMatias Bjørling 2018-06-15block: remov blk_queue_invalidate_tagsChristoph Hellwig 2018-06-04Merge tag 'docs-4.18' of git://git.lwn.net/linuxLinus Torvalds 2018-05-25null_blk: add blocking description and remove lightnvmLiu Bo 2018-05-08Documentation: block: cmdline-partition.txt fixes and additionsRandy Dunlap 2017-11-14block, bfq: move debug blkio stats behind CONFIG_DEBUG_BLK_CGROUPLuca Miccio 2017-11-14block, bfq: update blkio stats outside the scheduler lockPaolo Valente 2017-11-14doc, block, bfq: update max IOPS sustainable with BFQPaolo Valente 2017-11-10block: remove __bio_kmap_atomicChristoph Hellwig 2017-11-10block: kill bio_kmap/kunmap_irq()Jens Axboe 2017-11-07null_blk: add an usage for shared tags in documentationMinwoo Im 2017-11-07null_blk: fix default values in documentationMinwoo Im 2017-10-13null_blk: add usage hints for no_schedweiping zhang 2017-10-13null_blk: update usage hints for submit_queuesweiping zhang