aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/proc.py
diff options
context:
space:
mode:
authorMiklos Szeredi <[email protected]>2021-06-22 09:15:35 +0200
committerMiklos Szeredi <[email protected]>2021-06-22 09:15:35 +0200
commit80ef08670d4c28a06a3de954bd350368780bcfef (patch)
treec7a400ebf29badaec23e1a585e9ff3785f507803 /scripts/gdb/linux/proc.py
parentb89ecd60d38ec042d63bdb376c722a16f92bcb88 (diff)
fuse: check connected before queueing on fpq->io
A request could end up on the fpq->io list after fuse_abort_conn() has reset fpq->connected and aborted requests on that list: Thread-1 Thread-2 ======== ======== ->fuse_simple_request() ->shutdown ->__fuse_request_send() ->queue_request() ->fuse_abort_conn() ->fuse_dev_do_read() ->acquire(fpq->lock) ->wait_for(fpq->lock) ->set err to all req's in fpq->io ->release(fpq->lock) ->acquire(fpq->lock) ->add req to fpq->io After the userspace copy is done the request will be ended, but req->out.h.error will remain uninitialized. Also the copy might block despite being already aborted. Fix both issues by not allowing the request to be queued on the fpq->io list after fuse_abort_conn() has processed this list. Reported-by: Pradeep P V K <[email protected]> Fixes: fd22d62ed0c3 ("fuse: no fc->lock for iqueue parts") Cc: <[email protected]> # v4.2 Signed-off-by: Miklos Szeredi <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions