Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1620764

Re: [PATCH] acpi: drop support for force_remove

From "Rafael J. Wysocki" <rjw@rjwysocki.net>
Newsgroups linux.kernel
Subject Re: [PATCH] acpi: drop support for force_remove
Date 2017-04-11 00:30 +0200
Message-ID <tuPYS-6Qk-9@gated-at.bofh.it> (permalink)
References <ts4Up-3Uo-7@gated-at.bofh.it> <tuL8U-3IQ-73@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Monday, April 10, 2017 07:13:44 PM Michal Hocko wrote:
> On Mon 03-04-17 09:40:23, Michal Hocko wrote:
> > From: Michal Hocko <mhocko@suse.com>
> > 
> > /sys/firmware/acpi/hotplug/force_remove was presumably added to support
> > auto offlining in the past. This is, however, inherently dangerous for
> > some hotplugable resources like memory. The memory offlining fails when
> > the memory is still in use and cannot be dropped or migrated. If we
> > ignore the failure we are basically allowing for subtle memory
> > corruption or a crash.
> > 
> > We have actually noticed the later while hitting BUG() during the memory
> > hotremove (remove_memory):
> > 	ret = walk_memory_range(PFN_DOWN(start), PFN_UP(start + size - 1), NULL,
> > 			check_memblock_offlined_cb);
> > 	if (ret)
> > 		BUG();
> > 
> > it took us quite non-trivial time realize that the customer had
> > force_remove enabled. Even if the BUG was removed here and we could
> > propagate the error up the call chain it wouldn't help at all because
> > then we would hit a crash or a memory corruption later and harder to
> > debug. So force_remove is unfixable for the memory hotremove. We haven't
> > checked other hotplugable resources to be prone to a similar problems.
> > 
> > Remove the force_remove functionality because it is not fixable currently.
> > Keep the sysfs file and report an error if somebody tries to enable it.
> > Encourage users to report about the missing functionality and work with
> > them with an alternative solution.
> > 
> > Reviewed-by: Lee, Chun-Yi <jlee@suse.com>
> > Signed-off-by: Michal Hocko <mhocko@suse.com>
> 
> ping on this?

/shrug/

I'll apply it if nobody has any problems with it.

Thanks,
Rafael

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: [PATCH] acpi: drop support for force_remove Michal Hocko <mhocko@kernel.org> - 2017-04-10 19:20 +0200
  Re: [PATCH] acpi: drop support for force_remove "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2017-04-11 00:30 +0200
    Re: [PATCH] acpi: drop support for force_remove Michal Hocko <mhocko@kernel.org> - 2017-04-11 14:30 +0200
      Re: [PATCH] acpi: drop support for force_remove "Rafael J. Wysocki" <rafael@kernel.org> - 2017-04-11 15:50 +0200
        Re: [PATCH] acpi: drop support for force_remove "Rafael J. Wysocki" <rafael@kernel.org> - 2017-04-11 16:00 +0200
          Re: [PATCH] acpi: drop support for force_remove "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2017-04-15 00:40 +0200
        Re: [PATCH] acpi: drop support for force_remove Michal Hocko <mhocko@kernel.org> - 2017-04-11 16:00 +0200

csiph-web