From: Sasha Levin <sasha.levin@oracle.com>
To: Kees Cook <keescook@chromium.org>, linux-kernel@vger.kernel.org
Cc: Ming Lei <ming.lei@canonical.com>,
"Luis R. Rodriguez" <mcgrof@suse.com>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
James Morris <james.l.morris@oracle.com>,
David Howells <dhowells@redhat.com>,
linux-doc@vger.kernel.org, linux-security-module@vger.kernel.org,
linux-firmware@kernel.org,
linux-wireless <linux-wireless@vger.kernel.org>,
Dave Jones <davej@redhat.com>
Subject: Re: [PATCH 2/7] test: add firmware_class loader test
Date: Wed, 17 Sep 2014 21:51:09 -0400 [thread overview]
Message-ID: <541A3A8D.9010908@oracle.com> (raw)
In-Reply-To: <1405373897-31671-3-git-send-email-keescook@chromium.org>
On 07/14/2014 05:38 PM, Kees Cook wrote:
> This provides a simple interface to trigger the firmware_class loader
> to test built-in, filesystem, and user helper modes. Additionally adds
> tests via the new interface to the selftests tree.
>
> Signed-off-by: Kees Cook <keescook@chromium.org>
Hi folks,
While fuzzing with trinity inside a KVM tools guest running the latest -next
kernel, I've stumbled on the following spew:
[ 413.999779] misc test_firmware: Falling back to user helper
[ 414.003728] WARNING: CPU: 25 PID: 9860 at lib/kobject.c:209 kobject_add_internal+0x3a3/0x450()
[ 414.006815] kobject: (ffff8807b4ef5dc8): attempted to be registered with empty name!
[ 414.009482] Modules linked in:
[ 414.010818] CPU: 25 PID: 9860 Comm: trinity-c662 Tainted: G W 3.17.0-rc5-next-20140917-sasha-00041-gd01267b #1198
[ 414.014626] 0000000000000009 ffff880236547a68 ffffffff9d56d655 0000000000000000
[ 414.017585] ffff880236547ab8 ffff880236547aa8 ffffffff9a15f3d1 00000000001e3540
[ 414.020733] ffff8807b4ef5dc8 00000000ffffffea ffff88043d114108 ffff8807b4ef5db8
[ 414.023345] Call Trace:
[ 414.024254] dump_stack (lib/dump_stack.c:52)
[ 414.026232] warn_slowpath_common (kernel/panic.c:432)
[ 414.028355] warn_slowpath_fmt (kernel/panic.c:446)
[ 414.030366] ? __raw_spin_lock_init (kernel/locking/spinlock_debug.c:24)
[ 414.032369] kobject_add_internal (lib/kobject.c:211 (discriminator 1))
[ 414.034313] ? __dynamic_pr_debug (lib/dynamic_debug.c:561)
[ 414.036254] kobject_add (lib/kobject.c:403)
[ 414.038017] ? device_private_init (drivers/base/core.c:929)
[ 414.040340] ? klist_init (lib/klist.c:90)
[ 414.044729] device_add (drivers/base/core.c:1010)
[ 414.049854] ? dev_set_name (drivers/base/core.c:876)
[ 414.060790] _request_firmware (drivers/base/firmware_class.c:892 drivers/base/firmware_class.c:957 drivers/base/firmware_class.c:1139)
[ 414.062814] request_firmware (drivers/base/firmware_class.c:1189)
[ 414.064796] trigger_request_store (lib/test_firmware.c:68)
[ 414.066774] dev_attr_store (drivers/base/core.c:138)
[ 414.068531] sysfs_kf_write (fs/sysfs/file.c:115)
[ 414.070826] kernfs_fop_write (fs/kernfs/file.c:308)
[ 414.074648] ? kernfs_vma_page_mkwrite (fs/kernfs/file.c:267)
[ 414.076864] do_loop_readv_writev (fs/read_write.c:710)
[ 414.078947] ? kernfs_vma_page_mkwrite (fs/kernfs/file.c:267)
[ 414.081269] do_readv_writev (fs/read_write.c:842)
[ 414.083281] ? preempt_count_sub (kernel/sched/core.c:2634)
[ 414.085380] ? mutex_lock_nested (./arch/x86/include/asm/preempt.h:98 kernel/locking/mutex.c:599 kernel/locking/mutex.c:616)
[ 414.087401] ? __fdget_pos (fs/file.c:714)
[ 414.089286] vfs_writev (fs/read_write.c:881)
[ 414.091243] SyS_writev (fs/read_write.c:914 fs/read_write.c:905)
[ 414.093053] tracesys_phase2 (arch/x86/kernel/entry_64.S:529)
Thanks,
Sasha
next prev parent reply other threads:[~2014-09-18 1:51 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-14 21:38 [PATCH 0/7] firmware validation Kees Cook
2014-07-14 21:38 ` [PATCH 1/7] doc: fix minor typos in firmware_class README Kees Cook
2014-07-20 2:20 ` Ming Lei
2014-07-14 21:38 ` [PATCH 2/7] test: add firmware_class loader test Kees Cook
2014-07-18 1:47 ` Greg Kroah-Hartman
2014-07-18 15:27 ` Kees Cook
2014-09-18 1:51 ` Sasha Levin [this message]
2014-09-18 16:56 ` Kees Cook
2014-07-14 21:38 ` [PATCH 3/7] security: introduce kernel_fw_from_file hook Kees Cook
2014-07-14 22:24 ` Luis R. Rodriguez
2014-07-14 22:31 ` Kees Cook
2014-07-22 19:39 ` Luis R. Rodriguez
2014-07-22 20:55 ` Kees Cook
2014-07-22 22:11 ` Luis R. Rodriguez
2014-07-22 22:20 ` Kees Cook
2014-07-22 22:25 ` Luis R. Rodriguez
2014-07-23 18:52 ` One Thousand Gnomes
2014-07-18 1:48 ` Greg Kroah-Hartman
2014-07-18 17:11 ` Mimi Zohar
2014-07-14 21:38 ` [PATCH 4/7] firmware_class: perform new LSM checks Kees Cook
2014-07-18 3:41 ` James Morris
2014-07-18 17:05 ` Kees Cook
2014-07-19 7:22 ` James Morris
2014-07-19 15:15 ` Kees Cook
2014-07-20 23:43 ` James Morris
2014-07-21 2:50 ` Mimi Zohar
2014-07-21 17:43 ` Greg Kroah-Hartman
2014-07-14 21:38 ` [PATCH 5/7] firmware_class: extract start loading logic Kees Cook
2014-07-20 3:06 ` Ming Lei
2014-07-14 21:38 ` [PATCH 6/7] firmware_class: add "fd" input file Kees Cook
2014-07-18 17:11 ` Mimi Zohar
2014-07-18 19:04 ` Kees Cook
2014-07-20 3:04 ` Ming Lei
2014-07-20 17:43 ` Kees Cook
2014-07-21 1:42 ` Ming Lei
2014-07-21 15:08 ` Kees Cook
2014-07-21 15:26 ` Greg Kroah-Hartman
2014-07-21 15:43 ` Kees Cook
2014-07-21 16:36 ` Greg Kroah-Hartman
2014-07-21 17:27 ` Kees Cook
2014-07-21 17:43 ` Greg Kroah-Hartman
2014-07-14 21:38 ` [PATCH 7/7] test: add "fd" firmware loading test to selftests Kees Cook
2014-07-18 1:49 ` [PATCH 0/7] firmware validation Greg Kroah-Hartman
2014-07-23 18:53 ` One Thousand Gnomes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=541A3A8D.9010908@oracle.com \
--to=sasha.levin@oracle.com \
--cc=davej@redhat.com \
--cc=dhowells@redhat.com \
--cc=gregkh@linuxfoundation.org \
--cc=james.l.morris@oracle.com \
--cc=keescook@chromium.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-firmware@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=linux-wireless@vger.kernel.org \
--cc=mcgrof@suse.com \
--cc=ming.lei@canonical.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).