From patchwork Wed Aug 7 14:17:52 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Valente X-Patchwork-Id: 11082245 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F19F31399 for ; Wed, 7 Aug 2019 14:18:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF98328A62 for ; Wed, 7 Aug 2019 14:18:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DD12028A1B; Wed, 7 Aug 2019 14:18:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6318828A57 for ; Wed, 7 Aug 2019 14:18:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729968AbfHGOSI (ORCPT ); Wed, 7 Aug 2019 10:18:08 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:37700 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729814AbfHGOSI (ORCPT ); Wed, 7 Aug 2019 10:18:08 -0400 Received: by mail-wm1-f67.google.com with SMTP id f17so227148wme.2 for ; Wed, 07 Aug 2019 07:18:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mc2ZlcblJhTCc+59eGdVPsvblxllT8VyGaJItyjpB/U=; b=gtISrsFZCjjXtWqiQNCjpzLIWGuM/+IhT7JFDnhj4FBJVznjoG0Is51Mmg7bMKRuwS 7P623IAy53MkhCtdn95Pe1EnLV2dFZM14VG8dWPOHT6cgY4IHbS00vx44K6/GMIt5XyG PiCc+ZLpZ7yr1VX455Vx9gxFNpuF6yCEvU0FvyeFnpy85m9nOInvipRC6BaAwQK0sfDl WngxOlh8MvEdYCrLXGhwUCcKs9tnLUlGDJTpAxSSrZHDImTfQqbN29U8m7d3EAQAnKpE D/SUjGmqxFVyAutxLzHrOLDFNlU7QwAsRLSQixa5pNkgKymPgHXYo9tt9m0+LBnjLmMb i+8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=mc2ZlcblJhTCc+59eGdVPsvblxllT8VyGaJItyjpB/U=; b=IeGv1pomzGhEe6kQsKB2XvIFXPglRnUMvIRA2ZifdgSnud2UqS0rPP4QQCzrm+8d8i MlXtkXrcb1rq6mqJZ+v76IGBNwRBArduocU40MBdKQJPN48t0fcCoshG45gB+HhATEL9 iqRS22o4nO2bVdb+ioNzvJzxCPB3PIRQLKzscqFB2rsXWirW2D9El3JTtRlQ9R4Z49BK yaVyhwgaFWbjz4/nwpOit8DQt/CtlEvsOBj/x/MjxLqcXLgNF4EJf6oEfYAEvQ5QPx1K MPzCprB0UkG2BRJkmcaVC0CvQJNmI3TJC3FKyxRyY3C0wbJPtwp8JeayR8bClhN1Ooh9 XGtA== X-Gm-Message-State: APjAAAUzv7dgHJr/09bbJqvO/SpHtYlKFkzzjsbU2M4RN1JlAt765BUF D9rO7BZIVMTsvDiFG2bBnFoi3w== X-Google-Smtp-Source: APXvYqzYG4CIe1Bwnxo9d1jeqnUkHMU8b8dTEy2YSl2PeEsHYLWqmOdJv6c80SkEm7W9JOgag1f1mg== X-Received: by 2002:a7b:c40c:: with SMTP id k12mr211035wmi.122.1565187486831; Wed, 07 Aug 2019 07:18:06 -0700 (PDT) Received: from localhost.localdomain (88-147-66-140.dyn.eolo.it. [88.147.66.140]) by smtp.gmail.com with ESMTPSA id o7sm83472wmc.36.2019.08.07.07.18.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Aug 2019 07:18:05 -0700 (PDT) From: Paolo Valente To: Jens Axboe Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, ulf.hansson@linaro.org, linus.walleij@linaro.org, bfq-iosched@googlegroups.com, oleksandr@natalenko.name, pavel@denx.de, Paolo Valente Subject: [PATCH BUGFIX 0/2] block, bfq: fix user after free Date: Wed, 7 Aug 2019 16:17:52 +0200 Message-Id: <20190807141754.3567-1-paolo.valente@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Jens, this series contains a pair of fixes for the UAF reported in [1]. These patches are the result of the testing described in this Chrome OS issue [2] since Comment 57. Thanks, Paolo [1] https://lkml.org/lkml/2019/7/27/254 [2] https://bugs.chromium.org/p/chromium/issues/detail?id=931295#c57 Paolo Valente (2): block, bfq: reset last_completed_rq_bfqq if the pointed queue is freed block, bfq: move update of waker and woken list to queue freeing block/bfq-iosched.c | 54 ++++++++++++++++++++++++++++++--------------- 1 file changed, 36 insertions(+), 18 deletions(-) --- 2.20.1