Re: [PATCH v7 00/14] HWPOISON: soft offline rework

2020-09-23 Thread Aristeu Rozanski
ux-mm/20190826104144.GA7849@linux/T/#u FWIW, tested again with these patches in the ppc64 box and they work. I see that you added my Tested-by in the last patch but in any case: Tested-by: Aristeu Rozanski -- Aristeu

Re: [PATCH v4 2/7] mm,hwpoison: Do not set hugepage_or_freepage unconditionally

2020-09-18 Thread Aristeu Rozanski
On Thu, Sep 17, 2020 at 10:10:44AM +0200, Oscar Salvador wrote: > Aristeu Rozanski reported that some hwpoison tests > were returning -EBUSY while before the rework they succeed [1] [2]. > > The root case is that during a rebase, the call to page_handle_poison was > setting hugep

Re: [PATCH v4 3/7] mm,hwpoison: Try to narrow window race for free pages

2020-09-18 Thread Aristeu Rozanski
On Thu, Sep 17, 2020 at 10:10:45AM +0200, Oscar Salvador wrote: > Aristeu Rozanski reported that a customer test case started > to report -EBUSY after the hwpoison report patchset. > > There is a race window between spotting a free page and taking it off > its buddy freelist, so i

Re: [PATCH v3 0/5] HWpoison: further fixes and cleanups

2020-09-16 Thread Aristeu Rozanski
Hi Oscar, On Wed, Sep 16, 2020 at 09:27:02AM +0200, Oscar Salvador wrote: > Could you please re-run the tests with the below patch applied, and > attached then the logs here? here it is: (removed previous dump_page() calls for other pages that didn't fail) [ 109.709342] Soft offlining pfn 0x3fb

Re: [PATCH v3 0/5] HWpoison: further fixes and cleanups

2020-09-16 Thread Aristeu Rozanski
Hi Oscar, On Wed, Sep 16, 2020 at 04:09:30PM +0200, Oscar Salvador wrote: > On Wed, Sep 16, 2020 at 09:53:58AM -0400, Aristeu Rozanski wrote: > Can you try the other patch I posted in response to Naoya? Same thing: [ 369.195056] Soft offlining pfn 0x3fb5bf at process virtual a

Re: [PATCH v3 0/5] HWpoison: further fixes and cleanups

2020-09-16 Thread Aristeu Rozanski
On Wed, Sep 16, 2020 at 06:34:52PM +0200, osalva...@suse.de wrote: > Fat fingers, sorry: > > Ok, this is something different. > The race you saw previously is kinda normal as there is a race window > between spotting a freepage and taking it off the buddy freelists. > The retry patch should help

Re: [PATCH v3 0/5] HWpoison: further fixes and cleanups

2020-09-15 Thread Aristeu Rozanski
Hi Oscar, Naoya, On Mon, Sep 14, 2020 at 12:15:54PM +0200, Oscar Salvador wrote: > The important bit of this patchset is patch#1, which is a fix to take off > HWPoison pages off a buddy freelist since it can lead us to having HWPoison > pages back in the game without no one noticing it. > So fix i

Re: [PATCH] EDAC/ie31200: fallback if host bridge device is already initialized

2020-08-13 Thread Aristeu Rozanski
On Thu, Aug 13, 2020 at 04:55:50PM +0300, Boris Petkov wrote: > On August 13, 2020 4:44:06 PM GMT+03:00, Aristeu Rozanski > wrote: > >We tested this inside in machines having this issue and it works. > >Patch looks good to me. > > > >Acked-by: Aristeu Rozanski &g

Re: [PATCH] EDAC/ie31200: fallback if host bridge device is already initialized

2020-08-13 Thread Aristeu Rozanski
edac_dbg(0, "ie31200 init fail\n"); > + pci_rc = -ENODEV; > + goto fail1; > + } > + } > + return 0; > + > +fail1: > + pci_unregister_driver(&ie31200_driver); > +fail0: > + pci_dev_put(mci_pdev); > + > + return pci_rc; > } > > static void __exit ie31200_exit(void) > { > edac_dbg(3, "MC:\n"); > pci_unregister_driver(&ie31200_driver); > + if (!ie31200_registered) > + ie31200_remove_one(mci_pdev); > } > > module_init(ie31200_init); We tested this inside in machines having this issue and it works. Patch looks good to me. Acked-by: Aristeu Rozanski -- Aristeu

Re: [PATCH] Raise maximum number of memory controllers

2018-09-26 Thread Aristeu Rozanski
On Tue, Sep 25, 2018 at 09:34:49AM -0500, Justin Ernst wrote: > We observe an oops in the skx_edac module during boot. That's happening also on sb_edac too and the oops comes from memory corruption after trying to load the module several times during boot. -- Aristeu

[PATCH] sysctl: do not allow a 64bit value write in a 32bit knob

2018-08-27 Thread Aristeu Rozanski
fixes it. Signed-off-by: Aristeu Rozanski Cc: "Luis R. Rodriguez" Cc: Kees Cook diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 4ac9b9a..243f277 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -2486,7 +2486,8 @@ static int do_proc_dointvec_minmax_conv(bool *negp, un

Re: [PATCH 3/3] ghes_edac: add platform check to enable ghes_edac

2017-07-19 Thread Aristeu Rozanski
On Wed, Jul 19, 2017 at 06:22:04PM +0200, Borislav Petkov wrote: > On Wed, Jul 19, 2017 at 04:10:07PM +, Kani, Toshimitsu wrote: > > I do prefer to avoid any white / black listing. But I do not see how > > it solves the buggy DMI/SMBIOS info as an example of firmware bugs we > > may have to de

Re: [PATCH] EDAC, sb_edac: Fixed logic error in sb_edac driver

2016-03-07 Thread Aristeu Rozanski
participants[channel] = 1; > break; I can confirm this fixes the issues I've seen with the upstream driver. Acked-by: Aristeu Rozanski -- Aristeu

Re: [PATCH] oom_kill: add option to disable dump_stack()

2015-10-27 Thread Aristeu Rozanski
Hi Michal, On Tue, Oct 27, 2015 at 05:20:47PM +0100, Michal Hocko wrote: > Yes this is a mess. But I think it is worth cleaning up. > dump_stack_print_info (arch independent) has a log level parameter. > show_stack_log_lvl (x86) has a loglevel parameter which is unused. > > I haven't checked other

Re: [PATCH] oom_kill: add option to disable dump_stack()

2015-10-27 Thread Aristeu Rozanski
Hi Michal, On Tue, Oct 27, 2015 at 09:09:21AM +0100, Michal Hocko wrote: > On Mon 26-10-15 13:40:49, Aristeu Rozanski wrote: > > Hi Michal, > > On Mon, Oct 26, 2015 at 06:20:12PM +0100, Michal Hocko wrote: > [...] > > > Would it make more sense to distinguish

Re: [PATCH] oom_kill: add option to disable dump_stack()

2015-10-26 Thread Aristeu Rozanski
On Mon, Oct 26, 2015 at 12:01:11PM -0400, Johannes Weiner wrote: > I think this makes sense. > > The high volume log output is not just annoying, we have also had > reports from people whose machines locked up as they tried to log > hundreds of containers through a low-bandwidth serial console. >

Re: [PATCH] oom_kill: add option to disable dump_stack()

2015-10-26 Thread Aristeu Rozanski
Hi Michal, On Mon, Oct 26, 2015 at 06:20:12PM +0100, Michal Hocko wrote: > I can see why you want to reduce the amount of information, I guess you > have tried to reduce the loglevel but this hasn't helped because > dump_stack uses default log level which is too low to be usable, right? > Or are th

[PATCH] oom_kill: add option to disable dump_stack()

2015-10-23 Thread Aristeu Rozanski
log output for each situation is useful. This patch adds a sysctl to allow disabling dump_stack() during an OOM while keeping the default to behave the same way it behaves today. Cc: Greg Thelen Cc: Johannes Weiner Cc: linux...@kvack.org Cc: cgro...@vger.kernel.org Signed-off-by: Ariste

Re: [PATCH] ipc,sem: fix use after free on IPC_RMID after a task using same semaphore set exits

2015-08-07 Thread Aristeu Rozanski
+ * IPC_RMID as we hold sma->sem_perm.lock */ > list_del_rcu(&un->list_proc); > - spin_unlock(&ulp->lock); > > /* perform adjustments registered in un */ > for (i = 0; i < sma->sem_nsems; i++) {

Re: [PATCH] sb_edac: fix TAD presence check for sbridge_mci_bind_devs()

2015-08-05 Thread Aristeu Rozanski
module sbridge_edac.c controller Sandy Bridge > Socket#0: DEV :3f:0e.0 (POLLED) > EDAC MC1: Giving out device to module sbridge_edac.c controller Sandy Bridge > Socket#1: DEV :7f:0e.0 (POLLED) Acked-by: Aristeu Rozanski > > Signed-off-by: Seth Jennings > --

Re: [PATCH 2/3] sb_edac: virtualize several hard-coded functions

2015-06-12 Thread Aristeu Rozanski
Hi Jim, Lukasz, On Tue, Jun 09, 2015 at 01:43:11PM +0200, lukasz.anaczkow...@intel.com wrote: > @@ -273,6 +270,10 @@ struct sbridge_info { > u64 (*get_tolm)(struct sbridge_pvt *pvt); > u64 (*get_tohm)(struct sbridge_pvt *pvt); > u64 (*rir_limit)

Re: [PATCH V6 05/10] audit: log creation and deletion of namespace instances

2015-05-05 Thread Aristeu Rozanski
Hi Steve, On Tue, May 05, 2015 at 10:22:32AM -0400, Steve Grubb wrote: > The requirements for auditing of containers should be derived from VPP. In > it, > it asks for selectable auditing, selective audit, and selective audit review. > What this means is that we need the container and all its ch

Re: [PATCH] n_tty_read: check for hanging tty while waiting for input

2015-02-18 Thread Aristeu Rozanski
Hi Peter, On Wed, Feb 18, 2015 at 10:40:10AM -0500, Peter Hurley wrote: > The child is not receiving SIGHUP because /dev/ttyS0 was not set as the > controlling terminal by ioctl(TIOCSCTTY), which is failing (probably > with errno == EPERM). You need to check the return value and errno. > > To set

Re: [PATCH] n_tty_read: check for hanging tty while waiting for input

2015-02-18 Thread Aristeu Rozanski
Hi Peter, On Tue, Feb 17, 2015 at 05:35:10PM -0500, Peter Hurley wrote: > I realize that. But hanging up the tty that is /dev/console only affects > open descriptors that are not /dev/console. > > So readers using the /dev/ttyS0 file descriptor will see a hungup fops, > but readers using /dev/cons

Re: [PATCH] n_tty_read: check for hanging tty while waiting for input

2015-02-17 Thread Aristeu Rozanski
Hi Peter, On Tue, Feb 17, 2015 at 04:28:30PM -0500, Peter Hurley wrote: > On 02/17/2015 04:06 PM, Aristeu Rozanski wrote: > > If the console has a canonical reader and the respective tty hangs up, > > it'll waste a wake up and will never release the last ldisc reference so &g

[PATCH] n_tty_read: check for hanging tty while waiting for input

2015-02-17 Thread Aristeu Rozanski
[ 240.450543] [] SyS_ioctl+0x81/0xa0 [ 240.450921] [] system_call_fastpath+0x16/0x1b Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: Peter Hurley Signed-off-by: Aristeu Rozanski diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c index 0f74945..4fb909d 100644

Re: [PATCH] sb_edac: Fix detection on SNB machines

2015-02-09 Thread Aristeu Rozanski
7 @@ static int sbridge_probe(struct pci_dev *pdev, const > struct pci_device_id *id) > goto fail1; > } > > - sbridge_printk(KERN_INFO, "Driver loaded.\n"); > + sbridge_printk(KERN_INFO, "%s\n", SBRIDGE_REVISION); >

[PATCH] scripts/bloat-o-meter: include .rodata section comparison

2015-01-12 Thread Aristeu Rozanski
This patch adds section .rodata comparison in order to detect string constant changes. Cc: Josh Triplett Signed-off-by: Aristeu Rozanski diff --git a/scripts/bloat-o-meter b/scripts/bloat-o-meter index 23e78dc..cee812a 100755 --- a/scripts/bloat-o-meter +++ b/scripts/bloat-o-meter @@ -26,40

Re: [LKP] [sb_edac] 50d1bb93672: EDAC sbridge: ECC is disabled. Aborting

2015-01-07 Thread Aristeu Rozanski
On Wed, Jan 07, 2015 at 03:43:06PM +0800, Huang Ying wrote: > Do not find memory modules' part number in EFI menu. Some information > about memory is: > > 2133MT/s Micron DRx8 8GB UDIMM Based on a quick search it doesn't look it's ECC memory :( If/when you have a chance to open this box, could y

Re: [LKP] [sb_edac] 50d1bb93672: EDAC sbridge: ECC is disabled. Aborting

2015-01-05 Thread Aristeu Rozanski
Hi, On Fri, Dec 19, 2014 at 01:26:59PM +0800, Huang Ying wrote: > In fact, I am not complaining :-), just FYI. As I said, this may be a > expected behavior because this is a Haswell machine and the Haswell > support was added in this patch. > > > From the above, what looks weird, from EDAC driver

Re: [PATCH] sb_edac: Fix typo computing number of banks

2014-12-02 Thread Aristeu Rozanski
On Tue, Dec 02, 2014 at 09:41:58AM -0800, Tony Luck wrote: > Code will always think there are 16 banks because of a typo > > Reported-by: Misha > Signed-off-by: Tony Luck > --- > > Not sure if Misha is shy, or just busy. But my attempt to get > them to post their own patch didn't work > > driv

Re: [PATCH] sb_edac: Add support for Broadwell-DE processor

2014-11-21 Thread Aristeu Rozanski
ELL_IMC_HA0_TAD2, 1) }, > + { PCI_DESCR(PCI_DEVICE_ID_INTEL_BROADWELL_IMC_HA0_TAD3, 1) }, You are marking TAD2 and TAD3 as optional here, but > + for (i = 0; i < NUM_CHANNELS; i++) { > + if (!pvt->pci_tad[i]) > + goto enodev; > + } It'

Re: [PATCH] lib/flex_array: make build optional

2014-11-06 Thread Aristeu Rozanski
On Thu, Nov 06, 2014 at 01:44:54PM -0800, Dave Hansen wrote: > On 11/06/2014 01:33 PM, Dave Hansen wrote: > > On 11/06/2014 01:27 PM, Aristeu Rozanski wrote: > >> +config FLEX_ARRAY > >> + bool "Flexible array" > >> + default n > >> +

Re: [PATCH] lib/halfmd4: make build optional

2014-11-06 Thread Aristeu Rozanski
On Thu, Nov 06, 2014 at 01:32:03PM -0800, Joe Perches wrote: > why not default n ? (and in the other patch) As I see, stuff in lib/ can be available by default unless you specifically ask to disable it. It doesn't really matter in these patches since most of the time the options will be selected i

[PATCH] lib/rhashtable: make build optional

2014-11-06 Thread Aristeu Rozanski
From: Aristeu Rozanski rhashtable currently is built unconditionally: textdata bss dec hex filename 915820085264 16430402e lib/rhashtable.o 915820085264 16430402e (TOTALS) and it's used by netlink (which currently can

[PATCH] lib/halfmd4: make build optional

2014-11-06 Thread Aristeu Rozanski
From: Aristeu Rozanski halfmd4 currently is built unconditionally: textdata bss dec hex filename 801 176 8 985 3d9 lib/halfmd4.o 801 176 8 985 3d9 (TOTALS) and it's used by ext3 and ext4. This patch is usefu

[PATCH] lib/flex_array: make build optional

2014-11-06 Thread Aristeu Rozanski
From: Aristeu Rozanski flex_array currently is built unconditionally: textdata bss dec hex filename 22941008156848701306 lib/flex_array.o 22941008156848701306 (TOTALS) and it's used by procfs, selinux and openvswitch.

Re: [PATCH 3.18] tiny: rename ENABLE_DEV_COREDUMP to ALLOW_DEV_COREDUMP

2014-10-30 Thread Aristeu Rozanski
e it to ALLOW_DEV_COREDUMP to better capture its semantics. Sounds much better! Acked-by: Aristeu Rozanski > > Signed-off-by: Johannes Berg > --- > drivers/base/Kconfig | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/base/Kcon

[PATCH] tiny: reverse logic for DISABLE_DEV_COREDUMP

2014-10-16 Thread Aristeu Rozanski
x27;n' (as in allnconfig or tinyconfig) will effectively disable device coredump. Cc: Greg Kroah-Hartman Cc: Josh Triplett Cc: Johannes Berg Reviewed-by: Josh Triplett Signed-off-by: Aristeu Rozanski --- drivers/base/Kconfig | 19 +++ 1 file changed, 11 insertions(+), 8 del

[PATCH] tiny: reverse logic for DISABLE_DEV_COREDUMP

2014-10-16 Thread Aristeu Rozanski
option to ENABLE_DEV_COREDUMP and setting it to 'n' (as in allnconfig or tinyconfig) will effectively disable device coredump. Cc: Greg Kroah-Hartman Cc: Josh Triplett Cc: Johannes Berg Reviewed-by: Josh Triplett Signed-off-by: Aristeu Rozanski diff --git a/drivers/base/Kconfig b/drivers/base/K

Re: [PATCH] tiny: reverse logic for DISABLE_DEV_COREDUMP

2014-10-16 Thread Aristeu Rozanski
On Thu, Oct 16, 2014 at 12:24:05PM +0200, Josh Triplett wrote: > I agree; I'm just saying blame me rather than Aristeu. :) Thanks Josh, but I should have used my brain and realized it's just the Kconfig. Will resubmit it shortly. -- Aristeu -- To unsubscribe from this list: send the line "unsub

[PATCH] tiny: reverse logic for DISABLE_DEV_COREDUMP

2014-10-15 Thread Aristeu Rozanski
x27;n' (as in allnconfig or tinyconfig) will effectively disable device coredump. Cc: Greg Kroah-Hartman Cc: Josh Triplett Reviewed-by: Josh Triplett Signed-off-by: Aristeu Rozanski diff --git a/drivers/base/Kconfig b/drivers/base/Kconfig index 134f763..63a5702 100644 --- a/drivers/bas

Re: [RESEND][PATCH] userns: use marco instead of magic number for max userns level

2014-09-11 Thread Aristeu Rozanski
On Thu, Sep 11, 2014 at 05:51:31PM +0800, Chen Hanxiao wrote: > Use marco instead of magic number > for max user namespace level. patch is ok, but you might want to do s/marco/macro/ -- Aristeu -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message t

Re: [PATCH] sb_edac: avoid INTERNAL ERROR message in EDAC with unspecified channel

2014-09-08 Thread Aristeu Rozanski
nnel is not specified. edac_mc_handle_error() sets the channel to -1 > internally after the error message anyway, so this commit should have no > effect other than avoiding the INTERNAL ERROR message when the channel > is not specified. > > Signed-off-by: Seth Jennings > Cc: A

Re: [PATCH 2/2] sb_edac: Claim a different PCI device

2014-09-08 Thread Aristeu Rozanski
i_device_id sbridge_pci_tbl[] = { > - {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_TA)}, > + {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_HA0)}, > {PCI_DEVICE(PCI_VENDOR_ID_INTEL, > PCI_DEVICE_ID_INTEL_IBRIDGE_IMC_HA0_TA)}, > {0,}

Re: [PATCH 1/2] Move Intel SNB device ids from sb_edac to pci_ids.h

2014-09-08 Thread Aristeu Rozanski
C_TAD3 0x3cad /* 15.5 */ > +#define PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_DDRIO0x3cb8 /* 17.0 */ > #define PCI_DEVICE_ID_INTEL_JAKETOWN_UBOX0x3ce0 > +#define PCI_DEVICE_ID_INTEL_SBRIDGE_SAD0 0x3cf4 /* 12.6 */ > +#define PCI_DEVICE_ID_INTEL_SBRIDGE_BR 0x3cf5 /* 13.6 */ >

Re: [PATCH V4 0/8] namespaces: log namespaces per task

2014-08-21 Thread Aristeu Rozanski
Hi Richard, On Wed, Aug 20, 2014 at 09:09:33PM -0400, Richard Guy Briggs wrote: > Is there a way to link serial numbers of namespaces involved in migration of a > container to another kernel? It sounds like what is needed is a part of a > mangement application that is able to pull the audit record

Re: [PATCH] Revert "Input: wacom - testing result shows get_report is unnecessary."

2014-06-13 Thread Aristeu Rozanski
sing track of this and didn't send earlier. Signed-off-by: Aristeu Rozanski > drivers/input/tablet/wacom_sys.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/input/tablet/wacom_sys.c > b/drivers/input/tablet/wacom_sys.c > index 7087b33..319a3ff 1006

Re: [PATCH 13/14] device_cgroup: use css_has_online_children() instead of has_children()

2014-05-13 Thread Aristeu Rozanski
f-by: Tejun Heo > Cc: Aristeu Rozanski > Cc: Serge Hallyn > --- > security/device_cgroup.c | 19 ++- > 1 file changed, 2 insertions(+), 17 deletions(-) > > diff --git a/security/device_cgroup.c b/security/device_cgroup.c > index 75b4b18..22de334 100644 &

Re: [PATCH 04/14] device_cgroup: remove direct access to cgroup->children

2014-05-13 Thread Aristeu Rozanski
> only care about children which are visible to userland. > > This patch converts has_children() to use css_next_child() instead. > The subtle incorrectness is noted and will be dealt with later. > > Signed-off-by: Tejun Heo > Cc: Aristeu Rozanski > Cc: Serge Hally

Re: [PATCH 2/5] cgroup: replace cftype->write_string() with cftype->write()

2014-05-06 Thread Aristeu Rozanski
_BUFFER_SIZE in cgroup_freezer.c. > > This patch doesn't introduce any visible behavior changes. > > Signed-off-by: Tejun Heo > Cc: Vivek Goyal > Cc: Jens Axboe > Cc: Li Zefan > Cc: Johannes Weiner > Cc: Michal Hocko > Cc: Aristeu Rozanski

Re: [PATCH 3/3] ie31200_edac: Add driver

2014-04-09 Thread Aristeu Rozanski
On Wed, Apr 09, 2014 at 01:35:52PM +0200, Borislav Petkov wrote: > Btw, remind me again why this isn't part of the sb_edac? AFAICT, the > e3-12xx thing is a Sandybridge, right? > > Why not put it into sb_edac - it is small enough and if you're lucky, > you might even share functionality? By quick

Re: [PATCH] sb_edac: degrade log level for "EDAC sbridge: Seeking for: dev 1d.3 PCI ID xxxx"

2014-02-17 Thread Aristeu Rozanski
On Mon, Feb 17, 2014 at 01:10:23PM +0800, Jiang Liu wrote: > On a system with four Intel processor, it generates too many messages > "EDAC sbridge: Seeking for: dev 1d.3 PCI ID ". And it doesn't > give many useful information for normal users, so change log level > from INFO to DEBUG. > > Sign

Re: [PATCH 3/6] cgroup: clean up cgroup_subsys names and initialization

2014-01-29 Thread Aristeu Rozanski
> --- a/security/device_cgroup.c > +++ b/security/device_cgroup.c > @@ -58,11 +58,9 @@ static inline struct dev_cgroup *css_to_devcgroup(struct > cgroup_subsys_state *s) > > static inline struct dev_cgroup *task_devcgroup(struct task_struct *task) > { > - return css_to_devcgroup(task_css(t

Re: [PATCH 01/12] sb_edac: move PCI IDs to pci_ids.h

2013-10-30 Thread Aristeu Rozanski
On Wed, Oct 30, 2013 at 11:21:49AM -0600, Bjorn Helgaas wrote: > On Wed, Oct 30, 2013 at 11:19 AM, Mauro Carvalho Chehab > wrote: > > Em Wed, 30 Oct 2013 17:40:20 +0100 > > Borislav Petkov escreveu: > > > >> On Wed, Oct 30, 2013 at 12:26:55PM -0400, Aristeu Ro

[PATCH 06/12] sb_edac: allow different dram_rule arrays

2013-10-30 Thread Aristeu Rozanski
This is in preparation for Ivy Bridge support Signed-off-by: Aristeu Rozanski --- drivers/edac/sb_edac.c | 25 ++--- 1 files changed, 14 insertions(+), 11 deletions(-) diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c index fcd9c66..0bafe0a 100644 --- a/drivers

[PATCH 08/12] sb_edac: rework sad_pkg

2013-10-30 Thread Aristeu Rozanski
This is in preparation for Ivy Bridge support Signed-off-by: Aristeu Rozanski --- drivers/edac/sb_edac.c | 66 +-- 1 files changed, 30 insertions(+), 36 deletions(-) diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c index dbd99d3

[PATCH 09/12] sb_edac: enable multiple PCI id tables to be used

2013-10-30 Thread Aristeu Rozanski
This is needed to allow separated PCI id tables for Sandy Bridge and Ivy Bridge. Signed-off-by: Aristeu Rozanski --- drivers/edac/sb_edac.c | 22 +- 1 files changed, 13 insertions(+), 9 deletions(-) diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c index

[PATCH 11/12] sb_edac: avoid decoding the same error multiple times

2013-10-30 Thread Aristeu Rozanski
Whenever the extended error reporting is active, multiple MCEs will be generated for the same event, which will lead to multiple repeated errors to be reported. So check ADDRV and only decode the error if the MCE address is valid. Signed-off-by: Aristeu Rozanski --- drivers/edac/sb_edac.c

[PATCH 02/12] sb_edac: make RANK_CFG_A value part of sbridge_info

2013-10-30 Thread Aristeu Rozanski
This is in preparation of Ivy Bridge support. Signed-off-by: Aristeu Rozanski --- drivers/edac/sb_edac.c |8 ++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c index 4cdd948..466c313 100644 --- a/drivers/edac/sb_edac.c

[PATCH 07/12] sb_edac: allow different interleave lists

2013-10-30 Thread Aristeu Rozanski
This is in preparation for Ivy Bridge support Signed-off-by: Aristeu Rozanski --- drivers/edac/sb_edac.c | 13 - 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c index 0bafe0a..dbd99d3 100644 --- a/drivers/edac

[PATCH 04/12] sb_edac: rename pci_br

2013-10-30 Thread Aristeu Rozanski
Ivy Bridge has more than one, so rename pci_br to pci_br0 Signed-off-by: Aristeu Rozanski --- drivers/edac/sb_edac.c |8 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c index 3e4837f..eb6c9d4 100644 --- a/drivers/edac

[PATCH 12/12] sb_edac: add support for Ivy Bridge

2013-10-30 Thread Aristeu Rozanski
Since Ivy Bridge memory controller is very similar to Sandy Bridge, it's wiser to modify sb_edac to support both instead of creating another driver. Signed-off-by: Aristeu Rozanski --- drivers/edac/sb_edac.c | 447 1 files changed

[PATCH 10/12] sb_edac: rename mci_bind_devs()

2013-10-30 Thread Aristeu Rozanski
This is in preparation for Ivy Bridge support Signed-off-by: Aristeu Rozanski --- drivers/edac/sb_edac.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c index 3e07c28..2e977b9 100644 --- a/drivers/edac/sb_edac.c +++ b

[PATCH 05/12] sb_edac: isolate TOHM retrieval

2013-10-30 Thread Aristeu Rozanski
This is preparation of Ivy Bridge support. Signed-off-by: Aristeu Rozanski --- drivers/edac/sb_edac.c | 14 +++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c index eb6c9d4..fcd9c66 100644 --- a/drivers/edac/sb_edac.c

[PATCH 01/12] sb_edac: move PCI IDs to pci_ids.h

2013-10-30 Thread Aristeu Rozanski
According to the comment, it should be done before submitting upstream. Signed-off-by: Aristeu Rozanski --- drivers/edac/sb_edac.c | 21 ++--- include/linux/pci_ids.h | 11 +++ 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/drivers/edac/sb_edac.c b

[PATCH 03/12] sb_edac: isolate TOLM retrieval

2013-10-30 Thread Aristeu Rozanski
This is in preparation for the Ivy Bridge support. Signed-off-by: Aristeu Rozanski --- drivers/edac/sb_edac.c | 17 + 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c index 466c313..3e4837f 100644 --- a/drivers

Re: [PATCH cgroup/for-3.12] cgroup: make css_for_each_descendant() and friends include the origin css in the iteration

2013-08-05 Thread Aristeu Rozanski
dling before or after, it's moved inside the > iteration. If not, if (pos == origin) continue; is added. Some > conversions add extra reference get/put around origin handling by > consolidating origin handling and the rest. While the extra ref > operations aren't strictly

Re: [PATCH 15/23] cgroup: make hierarchy iterators deal with cgroup_subsys_state instead of cgroup

2013-08-05 Thread Aristeu Rozanski
ed. > > * devices: cgroup_to_devcgroup() is no longer used. Removed. Acked-by: Aristeu Rozanski -- Aristeu -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 12/23] cgroup: pass around cgroup_subsys_state instead of cgroup in file methods

2013-08-05 Thread Aristeu Rozanski
any user left. Removed. > > * hugetlb: hugetlb_cgroup_form_cgroup() doesn't have any user left. > Removed. > > * net_cls: cgrp_cls_state() doesn't have any user left. Removed. Also looks good on devcg part Acked-by: Aristeu Rozanski -- Aristeu -- To unsubscrib

Re: [PATCH 08/23] cgroup: pass around cgroup_subsys_state instead of cgroup in subsystem methods

2013-08-05 Thread Aristeu Rozanski
nel/cgroup.c::offline_css(), unnecessary open coded css > dereference is replaced with local variable access. > > This patch shouldn't cause any behavior differences. looks fine on device_cgroup.c bit Acked-by: Aristeu Rozanski -- Aristeu -- To unsubscribe from this list: send the l

Re: [Part1 PATCH 00/22] Add namespace support for audit

2013-06-24 Thread Aristeu Rozanski
On Thu, Jun 20, 2013 at 03:01:09PM -0700, Eric W. Biederman wrote: > Gao feng writes: > > > On 06/20/2013 11:02 AM, Gao feng wrote: > >> If we don't tie audit to user namespace, there is still one problem. > > > > One more problem. some audit messages are generated by some net subsystem > > such

Re: [Part1 PATCH 00/22] Add namespace support for audit

2013-06-19 Thread Aristeu Rozanski
On Wed, Jun 19, 2013 at 09:53:32AM +0800, Gao feng wrote: > This patchset is first part of namespace support for audit. > in this patchset, the mainly resources of audit system have > been isolated. the audit filter, rules havn't been isolated > now. It will be implemented in Part2. We finished the

Re: [PATCH 0/4] Rebase device_cgroup v2 patchset

2013-05-14 Thread Aristeu Rozanski
On Tue, May 14, 2013 at 10:05:39AM -0500, Serge Hallyn wrote: > so now that the device cgroup properly respects hierarchy, not allowing > a cgroup to be given greater permission than its parent, should we consider > relaxing the capability checks? > > There are two capable(CAP_SYS_ADMIN) checks in

Re: [PATCH RFC 09/48] Audit: make audit_enabled per user namespace

2013-05-07 Thread Aristeu Rozanski
On Tue, May 07, 2013 at 10:20:30AM +0800, Gao feng wrote: > diff --git a/include/linux/audit.h b/include/linux/audit.h > index 684599b..33e6584 100644 > --- a/include/linux/audit.h > +++ b/include/linux/audit.h > @@ -441,7 +441,8 @@ extern int audit_filter_type(int type); > extern int audit_recei

Re: [PATCH] devcg: remove parent_cgroup.

2013-04-16 Thread Aristeu Rozanski
On Tue, Apr 16, 2013 at 04:07:25PM -0500, Serge Hallyn wrote: > Quoting Aristeu Rozanski (a...@redhat.com): > > On Tue, Apr 16, 2013 at 11:24:55PM +0300, Rami Rosen wrote: > > > In devcgroup_css_alloc(), there is no longer need for parent_cgroup. > > > bd2953ebbb(&quo

Re: [PATCH] devcg: remove parent_cgroup.

2013-04-16 Thread Aristeu Rozanski
On Tue, Apr 16, 2013 at 11:24:55PM +0300, Rami Rosen wrote: > In devcgroup_css_alloc(), there is no longer need for parent_cgroup. > bd2953ebbb("devcg: propagate local changes down the hierarchy") made > the variable parent_cgroup redundant. This patch removes parent_cgroup > from devcgroup_css_all

Re: [PATCH cgroup/for-3.10] devcg: remove broken_hierarchy tag

2013-04-08 Thread Aristeu Rozanski
ted proper hierarchy support. Remove the broken tag. > > Signed-off-by: Tejun Heo > Cc: Aristeu Rozanski > --- > Applying to cgroup/for-3.10. looks good, thanks Tejun Acked-by: Aristeu Rozanski -- Aristeu -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH v5 4/4] devcg: propagate local changes down the hierarchy

2013-03-13 Thread Aristeu Rozanski
Hi Tejun, On Tue, Feb 19, 2013 at 04:20:16PM -0500, Aristeu Rozanski wrote: > On Tue, Feb 19, 2013 at 09:12:08PM +, Serge E. Hallyn wrote: > > Quoting Aristeu Rozanski (a...@redhat.com): > > > + } else { > > > + /* > > > +

Re: [PATCH v5 4/4] devcg: propagate local changes down the hierarchy

2013-02-19 Thread Aristeu Rozanski
On Tue, Feb 19, 2013 at 09:12:08PM +, Serge E. Hallyn wrote: > Quoting Aristeu Rozanski (a...@redhat.com): > > + } else { > > + /* > > +* in the other possible cases: > > +* root'

[PATCH v5 3/4] devcg: use css_online and css_offline

2013-02-15 Thread Aristeu Rozanski
take devcgroup_mutex before walking the tree while walking the tree itself is protected by rcu lock. Acked-by: Tejun Heo Acked-by: Serge Hallyn Cc: Tejun Heo Cc: Serge Hallyn Signed-off-by: Aristeu Rozanski --- security/device_cgroup.c | 59 +-- 1

[PATCH v5 1/4] devcg: expand may_access() logic

2013-02-15 Thread Aristeu Rozanski
In order to make the next patch more clear, expand may_access() logic. v2: may_access() returns bool now Acked-by: Tejun Heo Acked-by: Serge Hallyn Cc: Tejun Heo Cc: Serge Hallyn Signed-off-by: Aristeu Rozanski --- security/device_cgroup.c | 21 - 1 file changed, 12

[PATCH v5 4/4] devcg: propagate local changes down the hierarchy

2013-02-15 Thread Aristeu Rozanski
d by Tejun Heo - instead of keeping the local settings that won't apply anymore, remove them Cc: Tejun Heo Cc: Serge Hallyn Signed-off-by: Aristeu Rozanski --- Documentation/cgroups/devices.txt | 70 ++- security/device_cgroup.c | 139 +++

[PATCH v5 2/4] devcg: prepare may_access() for hierarchy support

2013-02-15 Thread Aristeu Rozanski
patch description - rebased on top of a new patch to expand the may_access() logic to make it more clear - fixed argument description order in may_access() Acked-by: Tejun Heo Acked-by: Serge Hallyn Cc: Tejun Heo Cc: Serge Hallyn Signed-off-by: Aristeu Rozanski --- security/device_cgroup.c |

[PATCH v5 0/4] devcg: introduce proper hierarchy support

2013-02-15 Thread Aristeu Rozanski
em around. Cc: Tejun Heo Cc: Serge Hallyn Signed-off-by: Aristeu Rozanski -- Aristeu -- To unsubscribe from

Re: [PATCH v6 9/9] devcg: propagate local changes down the hierarchy

2013-02-11 Thread Aristeu Rozanski
On Mon, Feb 11, 2013 at 06:52:39PM +, Serge E. Hallyn wrote: > > getting rid of local settings would buy more simplicity > > (Not sure which you mean here by 'getting rid of local settings') no local.{behavior,exceptions}, which still would allow behavior propagation, but simply wouldn't keep

Re: [PATCH v6 9/9] devcg: propagate local changes down the hierarchy

2013-02-11 Thread Aristeu Rozanski
On Mon, Feb 11, 2013 at 05:42:59PM +, Serge E. Hallyn wrote: > Note I said only forbid behavior changes - not exception changes - to > cgroups with children. that won't do much. behavior change is the simplest: if you change a behavior, you wipe the local exceptions unless the special (deny, d

Re: [PATCH v6 9/9] devcg: propagate local changes down the hierarchy

2013-02-11 Thread Aristeu Rozanski
On Sat, Feb 09, 2013 at 03:53:57AM +, Serge E. Hallyn wrote: > Quoting Aristeu Rozanski (a...@redhat.com): > > Thanks, Aristeu. I'm sorry it feels like I'm just trying to give you a > hard time, I'm really not :) no worries on that, it's important this is

Re: [PATCH v6 9/9] devcg: propagate local changes down the hierarchy

2013-02-11 Thread Aristeu Rozanski
On Sat, Feb 09, 2013 at 04:04:02AM +, Serge E. Hallyn wrote: > Quoting Aristeu Rozanski (a...@redhat.com): > > devcg: propagate local changes down the hierarchy > > > > This patch makes all changes propagate down in hierarchy respecting when > > po

[PATCH v6 9/9] devcg: propagate local changes down the hierarchy

2013-02-05 Thread Aristeu Rozanski
by Tejun Heo - instead of keeping the local settings that won't apply anymore, remove them Acked-by: Tejun Heo Cc: Tejun Heo Cc: Serge Hallyn Signed-off-by: Aristeu Rozanski --- Documentation/cgroups/devices.txt | 67 +++ security/device_cgroup.c | 228 +

Re: [PATCH v5 9/9] devcg: propagate local changes down the hierarchy

2013-02-04 Thread Aristeu Rozanski
On Sat, Feb 02, 2013 at 04:20:52PM +, Serge E. Hallyn wrote: > Quoting Aristeu Rozanski (a...@redhat.com): > > +static int propagate_exception(struct dev_cgroup *devcg_root) > > +{ > > + struct cgroup *root = devcg_root->css.cgroup; > > + struct de

Re: [PATCH v5 9/9] devcg: propagate local changes down the hierarchy

2013-02-04 Thread Aristeu Rozanski
On Sat, Feb 02, 2013 at 04:13:41PM +, Serge E. Hallyn wrote: > Quoting Aristeu Rozanski (a...@redhat.com): > > +static int propagate_behavior(struct dev_cgroup *devcg_root) > > +{ > > + struct cgroup *root = devcg_root->css.cgroup; > > + struct dev_cgroup *par

[PATCH v5 9/9] devcg: propagate local changes down the hierarchy

2013-02-01 Thread Aristeu Rozanski
online/css_offline changes to a new patch - use cgroup_for_each_descendant_pre() instead of own descendant walk - move exception_copy rework to a separared patch - move exception_clean rework to a separated patch v2: - instead of keeping the local settings that won't apply anymore, remo

Re: [PATCH v4 9/9] devcg: propagate local changes down the hierarchy

2013-01-31 Thread Aristeu Rozanski
Hi Serge, On Thu, Jan 31, 2013 at 04:38:39AM +, Serge E. Hallyn wrote: > > @@ -610,9 +770,14 @@case '\0': > > */ > > if (devcgroup->behavior == DEVCG_DEFAULT_ALLOW) { > > dev_exception_rm(devcgroup, &ex); > > - retur

Re: [PATCH v4 9/9] devcg: propagate local changes down the hierarchy

2013-01-31 Thread Aristeu Rozanski
On Thu, Jan 31, 2013 at 04:19:32AM +, Serge E. Hallyn wrote: > Quoting a...@redhat.com (a...@redhat.com): > > +/** > > + * propagate_behavior - propagates a change in the behavior down in > > hierarchy > > + * @devcg_root: device cgroup that changed behavior > > + * > > + * returns: 0 in case

Re: [PATCH v4 8/9] devcg: refactor dev_exception_clean()

2013-01-31 Thread Aristeu Rozanski
On Wed, Jan 30, 2013 at 12:50:38PM -0800, Tejun Heo wrote: > On Wed, Jan 30, 2013 at 12:49 PM, Aristeu Rozanski > that's not > intentional. thanks for catching this > > > > Tejun, you want me to resubmit the whole series or just the next patch > > (where I was suppo

Re: [PATCH v4 8/9] devcg: refactor dev_exception_clean()

2013-01-30 Thread Aristeu Rozanski
On Wed, Jan 30, 2013 at 08:47:30PM +, Serge E. Hallyn wrote: > Quoting a...@redhat.com (a...@redhat.com): > > - > > - if (rc) > > - return rc; > > Was this intentional? > > I see that you next add > > rc = propagate_behavior(devcgroup); > >

Re: [PATCH v3 1/9] device_cgroup: prepare exception list handling functions for two lists

2013-01-30 Thread Aristeu Rozanski
On Wed, Jan 30, 2013 at 05:41:40PM +, Serge E. Hallyn wrote: > Quoting a...@redhat.com (a...@redhat.com): > > In the following patches, device_cgroup structure will have two sets of > > behavior and exceptions list (actual one, another with the local settings) > > so rework the functions to use

Re: [PATCH v3 9/9] devcg: propagate local changes down the hierarchy

2013-01-29 Thread Aristeu Rozanski
On Tue, Jan 29, 2013 at 12:35:00PM -0800, Tejun Heo wrote: > Generally looks good to me although I haven't really delved into the > behavior (you're gonna be there for the fallouts, right?). Just some > minor comments. yes, I'll. > > +static int propagate_behavior(struct dev_cgroup *devcg_root)

Re: [PATCH v3 1/9] device_cgroup: prepare exception list handling functions for two lists

2013-01-29 Thread Aristeu Rozanski
t; > so rework the functions to use exception list, not a device_cgroup. > > > > Cc: Tejun Heo > > Cc: Serge Hallyn > > Signed-off-by: Aristeu Rozanski > > Acked-by: Tejun Heo > > Can you please keep acks across postings? That makes it a bit easier >

  1   2   >