From patchwork Thu Aug 22 18:40:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Branden X-Patchwork-Id: 11109799 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B23351395 for ; Thu, 22 Aug 2019 18:40:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 913722173E for ; Thu, 22 Aug 2019 18:40:48 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="ex7I0HZM" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731699AbfHVSkW (ORCPT ); Thu, 22 Aug 2019 14:40:22 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:44845 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732618AbfHVSkW (ORCPT ); Thu, 22 Aug 2019 14:40:22 -0400 Received: by mail-pl1-f196.google.com with SMTP id t14so3930662plr.11 for ; Thu, 22 Aug 2019 11:40:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=l3f7J9dLXFEkkPEpHoZfCHDBojT5vl2BXru+bCQWM9k=; b=ex7I0HZM1XZ6nwcwJqKZFzWwvGvKmcP9p6rxpsVI/+xYBxClCbtueXcVx0JxcT5oID JXpkwA/Bhug+LEiV8vtZANPVM3IxNyQ+W/6m3o6LQa+FPXzahsdNpQXLz2q9/iBg5cf9 Q81XzJ2UHw+Xu2lkdOP+AvS2qPMEACeupEn/k= 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; bh=l3f7J9dLXFEkkPEpHoZfCHDBojT5vl2BXru+bCQWM9k=; b=n/IKy5LhK1ePNsaivco5LFfmPzob4XoRGGKYJtHrVATW5SULE6DI8HmbKC3iMK4S/m wYWcPMM4G6wWj0QkvqZhngRUzzwk3AOnZqZ7h6eKg1qWmPgrZt07SL2WhobBitMtxdAG sm+6VhP1NcAEqVn4r9hsLAYfGpacDOzzAZcHTmBnH4VAU5nyY48CTEme9pjuf81fUN6n 6lbiN0h3JbkXv07dGB7oLaRCXrvipM9d6bLJsVj+SVPG0ze3JCkjdxp/XOFHyx/gkN4q EOf+S0l6LVxDdbEfslTNIsV9hDkWnCOS0hnGEMYddZcAoqwXI0QsNAz3qkrKfDgJVUzT 1zaA== X-Gm-Message-State: APjAAAXAwySaMzIG4nOR07AOvymCNV2SkqgQCZguo6NyDDgDpURRbXKO WMvtgqCP6KnCQT3JeYnq+FuTow== X-Google-Smtp-Source: APXvYqxPQ9aH3jF39LKTjf20cbeWadPkB+uuUPl7/RjqxCo7ecZeQNFkTtcAcpXBrjBObejQFr9TmQ== X-Received: by 2002:a17:902:a8:: with SMTP id a37mr226321pla.316.1566499220955; Thu, 22 Aug 2019 11:40:20 -0700 (PDT) Received: from lbrmn-lnxub113.broadcom.net ([192.19.228.250]) by smtp.gmail.com with ESMTPSA id z19sm51056pgv.35.2019.08.22.11.40.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2019 11:40:20 -0700 (PDT) From: Scott Branden To: Luis Chamberlain , Greg Kroah-Hartman , David Brown , Alexander Viro , Shuah Khan , bjorn.andersson@linaro.org Cc: "Rafael J . Wysocki" , linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-fsdevel@vger.kernel.org, BCM Kernel Feedback , Olof Johansson , Andrew Morton , Dan Carpenter , Colin Ian King , Kees Cook , Takashi Iwai , linux-kselftest@vger.kernel.org, Scott Branden Subject: [PATCH v2 0/2] firmware: selftest for request_firmware_into_buf Date: Thu, 22 Aug 2019 11:40:03 -0700 Message-Id: <20190822184005.901-1-scott.branden@broadcom.com> X-Mailer: git-send-email 2.17.1 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This patch series adds kernel selftest of request_firmware_into_buf. The API was added to the kernel previously untested. Changes from v1: - Dropped demonstration patch for a race condition discovered while testing request_firmare_into_buf. The new test exposes a kernel opps with the firmware fallback mechanism that may be fixed separate from these tests. - minor whitespace formatting in patch - added Ack's - added "s" in commit message (changed selftest: to selftests:) Scott Branden (2): test_firmware: add support for request_firmware_into_buf selftests: firmware: Add request_firmware_into_buf tests lib/test_firmware.c | 50 +++++++++++++++- .../selftests/firmware/fw_filesystem.sh | 57 ++++++++++++++++++- tools/testing/selftests/firmware/fw_lib.sh | 11 ++++ 3 files changed, 114 insertions(+), 4 deletions(-)