Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1298012 > unrolled thread
| Started by | Jeremiah Mahler <jmmahler@gmail.com> |
|---|---|
| First post | 2015-12-24 18:20 +0100 |
| Last post | 2015-12-30 23:40 +0100 |
| Articles | 5 — 4 participants |
Back to article view | Back to linux.kernel
BUG: Bad rss-counter state mm:ffff8800c5a96000 idx:3 val:3894 Jeremiah Mahler <jmmahler@gmail.com> - 2015-12-24 18:20 +0100
Re: BUG: Bad rss-counter state mm:ffff8800c5a96000 idx:3 val:3894 Michal Hocko <mhocko@kernel.org> - 2015-12-29 17:30 +0100
Re: BUG: Bad rss-counter state mm:ffff8800c5a96000 idx:3 val:3894 Andrew Morton <akpm@linux-foundation.org> - 2015-12-29 19:40 +0100
Re: BUG: Bad rss-counter state mm:ffff8800c5a96000 idx:3 val:3894 Jeremiah Mahler <jmmahler@gmail.com> - 2015-12-29 20:00 +0100
Re: BUG: Bad rss-counter state mm:ffff8800c5a96000 idx:3 val:3894 Stephen Rothwell <sfr@canb.auug.org.au> - 2015-12-30 23:40 +0100
| From | Jeremiah Mahler <jmmahler@gmail.com> |
|---|---|
| Date | 2015-12-24 18:20 +0100 |
| Subject | BUG: Bad rss-counter state mm:ffff8800c5a96000 idx:3 val:3894 |
| Message-ID | <qJhIt-167-3@gated-at.bofh.it> |
all, I have started seeing a "Bad rss-counter" message in the logs with the latest linux-next 20151222+. [ 458.282192] BUG: Bad rss-counter state mm:ffff8800c5a96000 idx:3 val:3894 I can test patches if anyone has any ideas. -- - Jeremiah Mahler -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Michal Hocko <mhocko@kernel.org> |
|---|---|
| Date | 2015-12-29 17:30 +0100 |
| Message-ID | <qL5jP-2Vk-1@gated-at.bofh.it> |
| In reply to | #1298012 |
[CCing Andrew] On Thu 24-12-15 09:12:53, Jeremiah Mahler wrote: > all, > > I have started seeing a "Bad rss-counter" message in the logs with > the latest linux-next 20151222+. > > [ 458.282192] BUG: Bad rss-counter state mm:ffff8800c5a96000 idx:3 val:3894 This is MM_SHMEMPAGES so an "unamapped" shmem memory. One possible reason might be an unitialized zap_details used from unmap_mapping_range during truncate introduced by "mm, oom: introduce oom reaper" from the mmotm tree. There is a fix for this which is still pending http://lkml.kernel.org/r/1450487091-7822-1-git-send-email-sasha.levin%40oracle.com -- Michal Hocko SUSE Labs -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Andrew Morton <akpm@linux-foundation.org> |
|---|---|
| Date | 2015-12-29 19:40 +0100 |
| Message-ID | <qL7lE-49U-25@gated-at.bofh.it> |
| In reply to | #1299045 |
On Tue, 29 Dec 2015 17:23:47 +0100 Michal Hocko <mhocko@kernel.org> wrote:
> [CCing Andrew]
>
> On Thu 24-12-15 09:12:53, Jeremiah Mahler wrote:
> > all,
> >
> > I have started seeing a "Bad rss-counter" message in the logs with
> > the latest linux-next 20151222+.
> >
> > [ 458.282192] BUG: Bad rss-counter state mm:ffff8800c5a96000 idx:3 val:3894
>
> This is MM_SHMEMPAGES so an "unamapped" shmem memory. One possible
> reason might be an unitialized zap_details used from unmap_mapping_range
> during truncate introduced by "mm, oom: introduce oom reaper" from the
> mmotm tree. There is a fix for this which is still pending
> http://lkml.kernel.org/r/1450487091-7822-1-git-send-email-sasha.levin%40oracle.com
That won't be getting fixed until linux-next returns from holidays.
This:
--- a/mm/memory.c~mm-oom-introduce-oom-reaper-fix-5-fix
+++ a/mm/memory.c
@@ -2415,7 +2415,7 @@ static inline void unmap_mapping_range_t
void unmap_mapping_range(struct address_space *mapping,
loff_t const holebegin, loff_t const holelen, int even_cows)
{
- struct zap_details details;
+ struct zap_details details = { };
pgoff_t hba = holebegin >> PAGE_SHIFT;
pgoff_t hlen = (holelen + PAGE_SIZE - 1) >> PAGE_SHIFT;
_
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Jeremiah Mahler <jmmahler@gmail.com> |
|---|---|
| Date | 2015-12-29 20:00 +0100 |
| Message-ID | <qL7EZ-4gU-5@gated-at.bofh.it> |
| In reply to | #1299077 |
Andrew, Michal,
On Tue, Dec 29, 2015 at 10:30:37AM -0800, Andrew Morton wrote:
> On Tue, 29 Dec 2015 17:23:47 +0100 Michal Hocko <mhocko@kernel.org> wrote:
>
> > [CCing Andrew]
> >
> > On Thu 24-12-15 09:12:53, Jeremiah Mahler wrote:
> > > all,
> > >
> > > I have started seeing a "Bad rss-counter" message in the logs with
> > > the latest linux-next 20151222+.
> > >
> > > [ 458.282192] BUG: Bad rss-counter state mm:ffff8800c5a96000 idx:3 val:3894
> >
> > This is MM_SHMEMPAGES so an "unamapped" shmem memory. One possible
> > reason might be an unitialized zap_details used from unmap_mapping_range
> > during truncate introduced by "mm, oom: introduce oom reaper" from the
> > mmotm tree. There is a fix for this which is still pending
> > http://lkml.kernel.org/r/1450487091-7822-1-git-send-email-sasha.levin%40oracle.com
>
> That won't be getting fixed until linux-next returns from holidays.
>
> This:
>
> --- a/mm/memory.c~mm-oom-introduce-oom-reaper-fix-5-fix
> +++ a/mm/memory.c
> @@ -2415,7 +2415,7 @@ static inline void unmap_mapping_range_t
> void unmap_mapping_range(struct address_space *mapping,
> loff_t const holebegin, loff_t const holelen, int even_cows)
> {
> - struct zap_details details;
> + struct zap_details details = { };
> pgoff_t hba = holebegin >> PAGE_SHIFT;
> pgoff_t hlen = (holelen + PAGE_SIZE - 1) >> PAGE_SHIFT;
>
> _
>
I tested both the patch that Michal mentioned as well as the change that
Andrew provided. The both appear to fix the problem on my machine.
Thanks for the help :-)
--
- Jeremiah Mahler
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Stephen Rothwell <sfr@canb.auug.org.au> |
|---|---|
| Date | 2015-12-30 23:40 +0100 |
| Message-ID | <qLxzs-48X-5@gated-at.bofh.it> |
| In reply to | #1299077 |
Hi Andrew,
On Tue, 29 Dec 2015 10:30:37 -0800 Andrew Morton <akpm@linux-foundation.org> wrote:
>
> On Tue, 29 Dec 2015 17:23:47 +0100 Michal Hocko <mhocko@kernel.org> wrote:
>
> > [CCing Andrew]
> >
> > On Thu 24-12-15 09:12:53, Jeremiah Mahler wrote:
> > > all,
> > >
> > > I have started seeing a "Bad rss-counter" message in the logs with
> > > the latest linux-next 20151222+.
> > >
> > > [ 458.282192] BUG: Bad rss-counter state mm:ffff8800c5a96000 idx:3 val:3894
> >
> > This is MM_SHMEMPAGES so an "unamapped" shmem memory. One possible
> > reason might be an unitialized zap_details used from unmap_mapping_range
> > during truncate introduced by "mm, oom: introduce oom reaper" from the
> > mmotm tree. There is a fix for this which is still pending
> > http://lkml.kernel.org/r/1450487091-7822-1-git-send-email-sasha.levin%40oracle.com
>
> That won't be getting fixed until linux-next returns from holidays.
>
> This:
>
> --- a/mm/memory.c~mm-oom-introduce-oom-reaper-fix-5-fix
> +++ a/mm/memory.c
> @@ -2415,7 +2415,7 @@ static inline void unmap_mapping_range_t
> void unmap_mapping_range(struct address_space *mapping,
> loff_t const holebegin, loff_t const holelen, int even_cows)
> {
> - struct zap_details details;
> + struct zap_details details = { };
> pgoff_t hba = holebegin >> PAGE_SHIFT;
> pgoff_t hlen = (holelen + PAGE_SIZE - 1) >> PAGE_SHIFT;
>
OK, I have added the following from mmots to linux-next today (though I
may not get a release done):
mm-oom-introduce-oom-reaper-fix-4-fix.patch
mm-oom-introduce-oom-reaper-fix-4.patch
mm-oom-introduce-oom-reaper-fix-5-fix.patch
mm-oom-introduce-oom-reaper-fix-5.patch
mm-oom-introduce-oom-reaper-fix-6.patch
mmoom-exclude-tif_memdie-processes-from-candidates.patch
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web