Unverified Commit 8fbcff00 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14233 block, bfq: fix possible UAF for bfqq->bic with merge chain

parents dda59452 696c137e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -5210,7 +5210,8 @@ static struct bfq_queue *bfq_init_rq(struct request *rq)
	 * addition, if the queue has also just been split, we have to
	 * resume its state.
	 */
	if (likely(bfqq != &bfqd->oom_bfqq) && bfqq_process_refs(bfqq) == 1) {
	if (likely(bfqq != &bfqd->oom_bfqq) && !bfqq->new_bfqq &&
	    bfqq_process_refs(bfqq) == 1) {
		bfqq->bic = bic;
		if (split) {
			/*