lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Tue, 7 Jul 2020 19:49:12 +0800
From:   kernel test robot <lkp@...el.com>
To:     Rajat Jain <rajatja@...gle.com>,
        David Woodhouse <dwmw2@...radead.org>,
        Lu Baolu <baolu.lu@...ux.intel.com>,
        Joerg Roedel <joro@...tes.org>,
        Bjorn Helgaas <helgaas@...nel.org>,
        "Rafael J. Wysocki" <rjw@...ysocki.net>,
        Len Brown <lenb@...nel.org>, iommu@...ts.linux-foundation.org,
        linux-kernel@...r.kernel.org, linux-pci@...r.kernel.org,
        linux-acpi@...r.kernel.org
Cc:     kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com
Subject: Re: [PATCH v3 4/4] PCI/ACS: Enable PCI_ACS_TB for
 untrusted/external-facing devices

Hi Rajat,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on pci/next]
[also build test WARNING on iommu/next pm/linux-next v5.8-rc4 next-20200707]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use  as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/0day-ci/linux/commits/Rajat-Jain/PCI-Move-pci_enable_acs-and-its-dependencies-up-in-pci-c/20200707-125604
base:   https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git next
config: arm-randconfig-r012-20200707 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 02946de3802d3bc65bc9f2eb9b8d4969b5a7add8)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All warnings (new ones prefixed by >>):

>> drivers/pci/pci.c:883:3: warning: add explicit braces to avoid dangling else [-Wdangling-else]
                   else
                   ^
   1 warning generated.
--
>> drivers/pci/quirks.c:4987:3: warning: add explicit braces to avoid dangling else [-Wdangling-else]
                   else
                   ^
   1 warning generated.

vim +883 drivers/pci/pci.c

   849	
   850	/**
   851	 * pci_std_enable_acs - enable ACS on devices using standard ACS capabilities
   852	 * @dev: the PCI device
   853	 */
   854	static void pci_std_enable_acs(struct pci_dev *dev)
   855	{
   856		int pos;
   857		u16 cap;
   858		u16 ctrl;
   859	
   860		pos = dev->acs_cap;
   861		if (!pos)
   862			return;
   863	
   864		pci_read_config_word(dev, pos + PCI_ACS_CAP, &cap);
   865		pci_read_config_word(dev, pos + PCI_ACS_CTRL, &ctrl);
   866	
   867		/* Source Validation */
   868		ctrl |= (cap & PCI_ACS_SV);
   869	
   870		/* P2P Request Redirect */
   871		ctrl |= (cap & PCI_ACS_RR);
   872	
   873		/* P2P Completion Redirect */
   874		ctrl |= (cap & PCI_ACS_CR);
   875	
   876		/* Upstream Forwarding */
   877		ctrl |= (cap & PCI_ACS_UF);
   878	
   879		/* Enable Translation Blocking for external devices */
   880		if (dev->external_facing || dev->untrusted)
   881			if (cap & PCI_ACS_TB)
   882				ctrl |= PCI_ACS_TB;
 > 883			else
   884				pci_warn(dev, "ACS: No Trans Blocking on ext dev\n");
   885	
   886		pci_write_config_word(dev, pos + PCI_ACS_CTRL, ctrl);
   887	}
   888	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (29197 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ