Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1638178

Re: [PATCH BUGFIX] block, bfq: use pointer entity->sched_data only if set

From Jens Axboe <axboe@kernel.dk>
Newsgroups linux.kernel
Subject Re: [PATCH BUGFIX] block, bfq: use pointer entity->sched_data only if set
Date 2017-05-09 17:00 +0200
Message-ID <tFeMi-37Z-13@gated-at.bofh.it> (permalink)
References <tF9MC-8jT-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 05/09/2017 03:37 AM, Paolo Valente wrote:
> In the function __bfq_deactivate_entity, the pointer
> entity->sched_data could happen to be used before being properly
> initialized. This led to a NULL pointer dereference. This commit fixes
> this bug by just using this pointer only where it is safe to do so.

Added, thanks.

-- 
Jens Axboe

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH BUGFIX] block, bfq: use pointer entity->sched_data only if set Paolo Valente <paolo.valente@linaro.org> - 2017-05-09 11:40 +0200
  Re: [PATCH BUGFIX] block, bfq: use pointer entity->sched_data only if  set Jens Axboe <axboe@kernel.dk> - 2017-05-09 17:00 +0200

csiph-web