Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp278454ybl; Fri, 23 Aug 2019 00:21:28 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5CL4e6JcQHfjkIbRSbnxj2NzEXfM7sObiV8n5HwTOFRNHwqMtDqfXYouT2lrKUItbXY8r X-Received: by 2002:a63:5a4d:: with SMTP id k13mr2667729pgm.174.1566544888153; Fri, 23 Aug 2019 00:21:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566544888; cv=none; d=google.com; s=arc-20160816; b=vI1U5JGuiRkm6IWD6HRD+RosSQc4iTLVHc8CJj939KQVHEN02sCx3H9B03QzhCm7Q3 ELWX+YiOL2u31yAq5xtxm32A46hgz2/OqOdvlXxL8nqHWswHiY43JuaXIipAsy/znYco 1je7pUMdHSUsm6zwZPejTccYy38GFsibOLz4VqXSWUv4bRaIKPbgJkCgX9z91EFeCsu1 aJpKBVvB7+Vg2uRzxiMIsDjEj5Ns5DT2HiBkVneU/jJn/YYCZk0oH+7w6TH1I7iltM1k r73RhZKTPXpACEpeyoJsBsRd7I5MNXa7RnaryBEzg8XPeogAOh696JLZPx5eJRrF346A Fd8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=l3f7J9dLXFEkkPEpHoZfCHDBojT5vl2BXru+bCQWM9k=; b=aJNgKlcK+/TpNuHhu9mm+VvJ4+9JEmN9589pN3KGh5DQVR6cFc1x134qOasJkbL6Gy r9O0ws+x3IXZeiqT4233hI7f6tYf0uRi4HVJR6mtEurxqYRqY41mmO6sNqoSrlntAFa1 hu8B/SYhHXsK+ZyDKTyd+2WylZtZrAu2gIGGKK4NwrN+lL3kcriusKU4jdBY8pVGDUcP hcbwrYdlfmSDmfjRGnbs2WNkT6A/DDSCyPecp2cqjt6XP7EcwmLrWmzIk1pfE46gfXvH mvQBXQta6I4W5lyky170rXsLCctTUh5odS9s+YMPR/6sY9oG8Koss7jsU7qxz6rX0r4O vxmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=ex7I0HZM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a4si1622434pls.185.2019.08.23.00.21.13; Fri, 23 Aug 2019 00:21:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=ex7I0HZM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390840AbfHVSkW (ORCPT + 99 others); Thu, 22 Aug 2019 14:40:22 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:41319 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731282AbfHVSkW (ORCPT ); Thu, 22 Aug 2019 14:40:22 -0400 Received: by mail-pl1-f195.google.com with SMTP id m9so3936572pls.8 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=Q8dZl7cwUSaCZaf1dJXEvdcSRI8seNE8Ba1yV9hWz+tyQ4HThUP3alHSpXVZzmyEL5 qNPRGCkdACdif2zlgy6zxD/l0ggRY2lWzorGVsmGyNlDM6LmUXhClLhItgQJqZ12ABk6 UMJWtTSQkuTuRHA8Y/sRdUEyCQQTcxnddCjQ/4Lfv/uRO4elFbMmInoNIQii5nRn090L fimlTkINpy2z8ETnhP2EyTqDdDp1xRqLOEOw3BBadILAtqvGA/mhkBKf+15Tr2tJFOOV rowSFTCrwzrk5v5dKBdEyElCQFFU2piTukwrNQFlf1pXLi8gKt1CPSfP9zJS9WWcwMO+ O7dA== X-Gm-Message-State: APjAAAWlbJdNNcVPfeS2XfZq1OIAOPUBeJpt61l0kYn7igRTyM/kErmY UZlz46iHNq8MpLzes3fGcnFuHg== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) -- 2.17.1