From: kbuild test robot <lkp@intel.com>
To: Mario Limonciello <mario.limonciello@dell.com>
Cc: kbuild-all@01.org, dvhart@infradead.org,
Andy Shevchenko <andy.shevchenko@gmail.com>,
LKML <linux-kernel@vger.kernel.org>,
platform-driver-x86@vger.kernel.org,
Andy Lutomirski <luto@kernel.org>,
quasisec@google.com, pali.rohar@gmail.com, rjw@rjwysocki.net,
mjg59@google.com, hch@lst.de, Greg KH <greg@kroah.com>,
Alan Cox <gnomes@lxorguk.ukuu.org.uk>,
Mario Limonciello <mario.limonciello@dell.com>
Subject: Re: [PATCH v8 12/15] platform/x86: dell-smbios: Add filtering support
Date: Tue, 17 Oct 2017 12:11:42 +0800 [thread overview]
Message-ID: <201710171250.SCwL7nyp%fengguang.wu@intel.com> (raw)
In-Reply-To: <8f15da06172673db76adec86518304d2e54b2741.1507958847.git.mario.limonciello@dell.com>
[-- Attachment #1: Type: text/plain, Size: 3916 bytes --]
Hi Mario,
[auto build test ERROR on platform-drivers-x86/for-next]
[also build test ERROR on v4.14-rc5 next-20171016]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
url: https://github.com/0day-ci/linux/commits/Mario-Limonciello/Introduce-support-for-Dell-SMBIOS-over-WMI/20171017-103109
base: git://git.infradead.org/users/dvhart/linux-platform-drivers-x86.git for-next
config: x86_64-randconfig-x001-201742 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
>> drivers/platform/x86/dell-smbios.c:53:3: error: 'CAP_SYS_ADMIN' undeclared here (not in a function)
{CAP_SYS_ADMIN, CLASS_TOKEN_READ, SELECT_TOKEN_STD},
^~~~~~~~~~~~~
>> drivers/platform/x86/dell-smbios.c:88:3: error: initializer element is not constant
{CAP_SYS_ADMIN, CAPSULE_EN_TOKEN, CAPSULE_DIS_TOKEN},
^~~~~~~~~~~~~
drivers/platform/x86/dell-smbios.c:88:3: note: (near initialization for 'token_whitelist[0].need_capability')
drivers/platform/x86/dell-smbios.c: In function 'dell_smbios_call_filter':
drivers/platform/x86/dell-smbios.c:245:8: error: implicit declaration of function 'capable' [-Werror=implicit-function-declaration]
capable(token_whitelist[i].need_capability)) {
^~~~~~~
>> drivers/platform/x86/dell-smbios.c:271:14: error: 'CAP_SYS_RAWIO' undeclared (first use in this function)
if (capable(CAP_SYS_RAWIO)) {
^~~~~~~~~~~~~
drivers/platform/x86/dell-smbios.c:271:14: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
vim +/CAP_SYS_ADMIN +53 drivers/platform/x86/dell-smbios.c
47
48 /* calls that are whitelisted for given capabilities */
49 static struct smbios_call call_whitelist[] = {
50 /* generally tokens are allowed, but may be further filtered or
51 * restricted by token blacklist or whitelist
52 */
> 53 {CAP_SYS_ADMIN, CLASS_TOKEN_READ, SELECT_TOKEN_STD},
54 {CAP_SYS_ADMIN, CLASS_TOKEN_READ, SELECT_TOKEN_AC},
55 {CAP_SYS_ADMIN, CLASS_TOKEN_READ, SELECT_TOKEN_BAT},
56 {CAP_SYS_ADMIN, CLASS_TOKEN_WRITE, SELECT_TOKEN_STD},
57 {CAP_SYS_ADMIN, CLASS_TOKEN_WRITE, SELECT_TOKEN_AC},
58 {CAP_SYS_ADMIN, CLASS_TOKEN_WRITE, SELECT_TOKEN_BAT},
59 /* used by userspace: fwupdate */
60 {CAP_SYS_ADMIN, CLASS_ADMIN_PROP, SELECT_ADMIN_PROP},
61 /* used by userspace: fwupd */
62 {CAP_SYS_ADMIN, CLASS_INFO, SELECT_DOCK},
63 {CAP_SYS_ADMIN, CLASS_FLASH_INTERFACE, SELECT_FLASH_INTERFACE},
64 };
65
66 /* calls that are explicitly blacklisted */
67 static struct smbios_call call_blacklist[] = {
68 {0x0000, 01, 07}, /* manufacturing use */
69 {0x0000, 06, 05}, /* manufacturing use */
70 {0x0000, 11, 03}, /* write once */
71 {0x0000, 11, 07}, /* write once */
72 {0x0000, 11, 11}, /* write once */
73 {0x0000, 19, -1}, /* diagnostics */
74 /* handled by kernel: dell-laptop */
75 {0x0000, CLASS_INFO, SELECT_RFKILL},
76 {0x0000, CLASS_KBD_BACKLIGHT, SELECT_KBD_BACKLIGHT},
77 };
78
79 struct token_range {
80 u32 need_capability;
81 u16 min;
82 u16 max;
83 };
84
85 /* tokens that are whitelisted for given capabilities */
86 static struct token_range token_whitelist[] = {
87 /* used by userspace: fwupdate */
> 88 {CAP_SYS_ADMIN, CAPSULE_EN_TOKEN, CAPSULE_DIS_TOKEN},
89 /* can indicate to userspace that WMI is needed */
90 {0x0000, WSMT_EN_TOKEN, WSMT_DIS_TOKEN}
91 };
92
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 27290 bytes --]
next prev parent reply other threads:[~2017-10-17 4:12 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-14 5:32 [PATCH v8 00/15] Introduce support for Dell SMBIOS over WMI Mario Limonciello
2017-10-14 5:32 ` [PATCH v8 01/15] platform/x86: wmi: Add new method wmidev_evaluate_method Mario Limonciello
2017-10-14 5:32 ` [PATCH v8 02/15] platform/x86: dell-wmi: increase severity of some failures Mario Limonciello
2017-10-14 5:32 ` [PATCH v8 03/15] platform/x86: dell-wmi: clean up wmi descriptor check Mario Limonciello
2017-10-14 5:32 ` [PATCH v8 04/15] platform/x86: dell-wmi: allow 32k return size in the descriptor Mario Limonciello
2017-10-14 5:32 ` [PATCH v8 05/15] platform/x86: dell-wmi-descriptor: split WMI descriptor into it's own driver Mario Limonciello
2017-10-14 5:32 ` [PATCH v8 06/15] platform/x86: wmi: Don't allow drivers to get each other's GUIDs Mario Limonciello
2017-10-14 5:32 ` [PATCH v8 07/15] platform/x86: dell-smbios: only run if proper oem string is detected Mario Limonciello
2017-10-14 5:32 ` [PATCH v8 08/15] platform/x86: dell-smbios: Add a sysfs interface for SMBIOS tokens Mario Limonciello
2017-10-17 6:37 ` kbuild test robot
2017-10-14 5:32 ` [PATCH v8 09/15] platform/x86: dell-smbios: Introduce dispatcher for SMM calls Mario Limonciello
2017-10-17 3:49 ` kbuild test robot
2017-10-17 4:14 ` kbuild test robot
2017-10-17 4:14 ` [PATCH] platform/x86: dell-smbios: fix semicolon.cocci warnings kbuild test robot
2017-10-17 4:20 ` [PATCH v8 09/15] platform/x86: dell-smbios: Introduce dispatcher for SMM calls kbuild test robot
2017-10-14 5:32 ` [PATCH v8 10/15] platform/x86: dell-smbios-wmi: Add new WMI dispatcher driver Mario Limonciello
2017-10-14 5:32 ` [PATCH v8 11/15] platform/x86: dell-smbios-smm: test for WSMT Mario Limonciello
2017-10-14 5:32 ` [PATCH v8 12/15] platform/x86: dell-smbios: Add filtering support Mario Limonciello
2017-10-17 4:11 ` kbuild test robot [this message]
2017-10-14 5:32 ` [PATCH v8 13/15] platform/x86: wmi: Add sysfs attribute for required_buffer_size Mario Limonciello
2017-10-14 5:32 ` [PATCH v8 14/15] platform/x86: wmi: create userspace interface for drivers Mario Limonciello
2017-10-17 3:58 ` kbuild test robot
2017-10-14 5:32 ` [PATCH v8 15/15] platform/x86: dell-smbios-wmi: introduce userspace interface Mario Limonciello
2017-10-16 2:45 ` [PATCH v8 00/15] Introduce support for Dell SMBIOS over WMI Edward O'Callaghan
2017-10-16 7:33 ` Pali Rohár
2017-10-16 13:23 ` Mario.Limonciello
2017-10-16 13:37 ` Pali Rohár
2017-10-16 13:48 ` Mario.Limonciello
2017-10-16 21:56 ` Darren Hart
2017-10-17 14:22 ` Mario.Limonciello
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=201710171250.SCwL7nyp%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=andy.shevchenko@gmail.com \
--cc=dvhart@infradead.org \
--cc=gnomes@lxorguk.ukuu.org.uk \
--cc=greg@kroah.com \
--cc=hch@lst.de \
--cc=kbuild-all@01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=mario.limonciello@dell.com \
--cc=mjg59@google.com \
--cc=pali.rohar@gmail.com \
--cc=platform-driver-x86@vger.kernel.org \
--cc=quasisec@google.com \
--cc=rjw@rjwysocki.net \
/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
all inboxes | Powered by JetHome®