[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20171127213001.GA12537@codemonkey.org.uk>
Date: Mon, 27 Nov 2017 16:30:01 -0500
From: Dave Jones <davej@...emonkey.org.uk>
To: Fengguang Wu <fengguang.wu@...el.com>
Cc: linux-pci@...r.kernel.org, Bjorn Helgaas <bhelgaas@...gle.com>,
David Woodhouse <dwmw@...zon.co.uk>,
Wong Vee Khee <vee.khee.wong@...com>,
Bodong Wang <bodong@...lanox.com>,
Emil Tantilov <emil.s.tantilov@...el.com>,
Arvind Yadav <arvind.yadav.cs@...il.com>,
linux-kernel@...r.kernel.org, lkp@...org
Subject: Re: [trinity] WARNING: CPU: 0 PID: 515 at
drivers/pci/pci-sysfs.c:1224 pci_mmap_resource+0xd6/0x10e
On Fri, Nov 24, 2017 at 08:11:39AM +0800, Fengguang Wu wrote:
> Hello,
>
> FYI this happens in mainline kernel 4.14.0-12995-g0c86a6b.
> It at least dates back to v4.9 .
>
> I wonder where can we avoid this warning, by improving trinity (or how
> we use it), or the pci subsystem?
>
> [main] Added 42 filenames from /dev
> [main] Added 13651 filenames from /proc
> [main] Added 11163 filenames from /sys
> [ 19.452176] ------------[ cut here ]------------
> [ 19.452938] process "trinity-main" tried to map 0x00004000 bytes at page 0x00000001 on 0000:00:06.0 BAR 4 (start 0x fe008000, size 0x 4000)
> [ 19.454804] WARNING: CPU: 0 PID: 515 at drivers/pci/pci-sysfs.c:1224 pci_mmap_resource+0xd6/0x10e
That's a root-only operation, where we allow the user to shoot
themselves in the foot afaik. What you could do now that you're
running an up to date trinity in 0day, is pass the --dropprivs flag
to setuid to nobody in the child processes.
Dave
Powered by blists - more mailing lists