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: 11109797 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 48A44112C for ; Thu, 22 Aug 2019 18:40:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 288FE21743 for ; Thu, 22 Aug 2019 18:40:47 +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 S2388934AbfHVSkW (ORCPT ); Thu, 22 Aug 2019 14:40:22 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:35070 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730867AbfHVSkW (ORCPT ); Thu, 22 Aug 2019 14:40:22 -0400 Received: by mail-pl1-f195.google.com with SMTP id gn20so3950760plb.2 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=l3KH7N9YZgEaM1Q0PlD/6a+k1WpuwBAJybdwFCEiIAwJzyN3GkzW8bLNDmqUbnAX41 f6G4Yt0vgTVPSjEqaHgLqniYELaKEPSdK8G0T8gQcuQgC2nBbFBLseLmbkRc/d/V9ULk WRMc5lHw6yR2X5LsW5Jti8djAjyrVBfO4jpt0NtXOPsG4gSZsmzyJwuDpOoqW5i+vkxd e8qSAu0CgI4YDD5i8NxUT3wjyduMIsqN0ycfjaqthjGO5JpexprBCvw44ua+kaeSzJrq TUu06lw1RaT8daOxfc+6x3+fDGbpCSUmD3C0m0MZ1F2+drJbGmmph5zPNomfERBkkKvm sQsQ== X-Gm-Message-State: APjAAAWHg9YWFpHNeFFFYOO8wLARM6C3BgaRm5JMxgO6okB3agEPjlZo 4V8Zho7/QLkoRvBbOiYNDdixQA== 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-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@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(-)