Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908972 - sys-kernel/linux-next-9999: kernel oops RIP: 0010:__rb_erase_color+0x96/0x1cb
Summary: sys-kernel/linux-next-9999: kernel oops RIP: 0010:__rb_erase_color+0x96/0x1cb
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-21 19:20 UTC by Jeff Cliff
Modified: 2023-07-19 18:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge info, .config (kernelproblem,48.86 KB, text/plain)
2023-06-21 19:20 UTC, Jeff Cliff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Cliff 2023-06-21 19:20:03 UTC
immediately when trying to log in as root, first thing after booting, kernel oops

Jun 21 11:41:08 ambroisine kernel: RIP: 0010:__rb_erase_color+0x96/0x1cb

Reproducible: Always

Steps to Reproduce:
not sure what is reproducing it but for sure after logging in as root and cding  to /var/log , it has happened at least once or twice
Actual Results:  
Jun 21 11:41:06 ambroisine kernel: BUG: Bad rss-counter state mm:000000009d509d86 type:MM_FILEPAGES val:70
Jun 21 11:41:06 ambroisine kernel: BUG: Bad rss-counter state mm:000000009d509d86 type:MM_ANONPAGES val:14
Jun 21 11:41:08 ambroisine kernel: BUG: unable to handle page fault for address: 00007f228a710000
Jun 21 11:41:08 ambroisine kernel: #PF: supervisor write access in kernel mode
Jun 21 11:41:08 ambroisine kernel: #PF: error_code(0x0002) - not-present page
Jun 21 11:41:08 ambroisine kernel: PGD 0 P4D 0 
Jun 21 11:41:08 ambroisine kernel: Oops: 0002 [#1] PREEMPT SMP PTI
Jun 21 11:41:08 ambroisine kernel: CPU: 2 PID: 1682 Comm: (udev-worker) Not tainted 6.4.0-rc7-next-20230620libre-dirty #35
Jun 21 11:41:08 ambroisine kernel: Hardware name: TOSHIBA TECRA R940/TECRA R940, BIOS Version 6.50   11/26/2012
Jun 21 11:41:08 ambroisine kernel: RIP: 0010:__rb_erase_color+0x96/0x1cb
Jun 21 11:41:08 ambroisine kernel: Code: f6 0f 84 a2 00 00 00 41 f6 06 01 0f 85 98 00 00 00 49 8b 46 08 48 89 45 10 49 89 6e 08 4c 89 73 08 48 85 c0 74 07 48 8d 55 01 <48> 89 10 48 89 ef 4c 89 f6 2e e8 4c 87 01 00 48 89 e8 4c 89 f5 48
Jun 21 11:41:08 ambroisine kernel: RSP: 0018:ffffa3f5c06d3d08 EFLAGS: 00010206
Jun 21 11:41:08 ambroisine kernel: RAX: 00007f228a710000 RBX: ffff92c8867dc040 RCX: 000000008040002a
Jun 21 11:41:08 ambroisine kernel: RDX: ffff92c88a4f4a19 RSI: ffff92c881763d58 RDI: ffff92c8867dc040
Jun 21 11:41:08 ambroisine kernel: RBP: ffff92c88a4f4a18 R08: 000000008040002a R09: 000000008040002a
Jun 21 11:41:08 ambroisine kernel: R10: 0000000000000000 R11: 000000000002f280 R12: ffffffff8ada4821
Jun 21 11:41:08 ambroisine kernel: R13: ffff92c881763d58 R14: ffff92c88a4f4498 R15: ffff92c881fbbbd0
Jun 21 11:41:08 ambroisine kernel: FS:  0000000000000000(0000) GS:ffff92c8aa000000(0000) knlGS:0000000000000000
Jun 21 11:41:08 ambroisine kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Jun 21 11:41:08 ambroisine kernel: CR2: 00007f228a710000 CR3: 000000012062c006 CR4: 00000000001706e0
Jun 21 11:41:08 ambroisine kernel: Call Trace:
Jun 21 11:41:08 ambroisine kernel:  <TASK>
Jun 21 11:41:08 ambroisine kernel:  ? __die_body+0x1a/0x58
Jun 21 11:41:08 ambroisine kernel:  ? page_fault_oops+0x320/0x36d
Jun 21 11:41:08 ambroisine kernel:  ? fixup_exception+0x22/0x22f
Jun 21 11:41:08 ambroisine kernel:  ? exc_page_fault+0xeb/0xfd
Jun 21 11:41:08 ambroisine kernel:  ? asm_exc_page_fault+0x22/0x30
Jun 21 11:41:08 ambroisine kernel:  ? __pfx_vma_interval_tree_augment_rotate+0x10/0x10
Jun 21 11:41:08 ambroisine kernel:  ? __rb_erase_color+0x96/0x1cb
Jun 21 11:41:08 ambroisine kernel:  unlink_file_vma+0x37/0x48
Jun 21 11:41:08 ambroisine kernel:  free_pgtables+0xc3/0x10b
Jun 21 11:41:08 ambroisine kernel:  exit_mmap+0x176/0x265
Jun 21 11:41:08 ambroisine kernel:  __mmput+0x11/0xa8
Jun 21 11:41:08 ambroisine kernel:  do_exit+0x324/0x8e7
Jun 21 11:41:08 ambroisine kernel:  ? handle_mm_fault+0x133/0x1ba
Jun 21 11:41:08 ambroisine kernel:  do_group_exit+0x7a/0x7a
Jun 21 11:41:08 ambroisine kernel:  __x64_sys_exit_group+0x14/0x14
Jun 21 11:41:08 ambroisine kernel:  do_syscall_64+0x6b/0x81
Jun 21 11:41:08 ambroisine kernel:  entry_SYSCALL_64_after_hwframe+0x6e/0xd8
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-21 19:20:37 UTC
Yikes. You'll have to report this upstream, but we'd appreciate a link when you do.
Comment 2 Jeff Cliff 2023-06-21 19:20:59 UTC
Created attachment 864371 [details]
emerge info, .config
Comment 3 Jeff Cliff 2023-06-21 19:33:42 UTC
(i should clarify: rc6 does not do this, but rc7 does)
Comment 4 Mike Pagano gentoo-dev 2023-06-22 20:00:47 UTC
(In reply to Jeff Cliff from comment #3)
> (i should clarify: rc6 does not do this, but rc7 does)

While linux-next is for the brave, you could attempt a git bisect to help upstream.
Comment 5 Jeff Cliff 2023-06-23 20:02:18 UTC
i am willing to do a git bisect if someone can point me to where linux-next 's git repo is (and if it isn't github, which i do not have access to)
Comment 6 Greg Kubaryk 2023-06-23 20:12:09 UTC
(In reply to Jeff Cliff from comment #5)
> i am willing to do a git bisect if someone can point me to where linux-next
> 's git repo is (and if it isn't github, which i do not have access to)

https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
Comment 7 Jeff Cliff 2023-06-23 20:36:15 UTC
thank you i will get on that as soon as objdumping vmlinux  finishes(been at it for like 2 days now but still going)
Comment 8 Mike Pagano gentoo-dev 2023-07-02 15:04:27 UTC
Ok, good luck.  There's nothing for us to do here, as we don't patch linux-next.
Comment 9 Jeff Cliff 2023-07-18 06:50:15 UTC
i know y'all are 'not supported'ing this one but since Sam James asked:

https://lore.kernel.org/linux-next/20230619204309.GA13937@willie-the-truck/ appears that someone else reported this 'upstream' (does this qualify?) before i got there

( my git bisect resulted in the right commit - a merge that according to the above thread broke something 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/?id=70c94cc2eefd4f98d222834cbe7512804977c2d4 )
Comment 10 Mike Pagano gentoo-dev 2023-07-19 18:47:24 UTC
(In reply to Jeff Cliff from comment #9)
> i know y'all are 'not supported'ing this one but since Sam James asked:
> 
> https://lore.kernel.org/linux-next/20230619204309.GA13937@willie-the-truck/
> appears that someone else reported this 'upstream' (does this qualify?)
> before i got there
> 
> ( my git bisect resulted in the right commit - a merge that according to the
> above thread broke something 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/patch/
> ?id=70c94cc2eefd4f98d222834cbe7512804977c2d4 )

that counts. Thanks for letting us know