BUG: Bad rss-counter state mm:000000007cc45a25 type:MM_FILEPAGES val:33 BUG: Bad rss-counter state mm:000000007cc45a25 type:MM_ANONPAGES val:22 BUG: Bad rss-counter state mm:0000000092ed8eee type:MM_FILEPAGES val:33 BUG: Bad rss-counter state mm:0000000092ed8eee type:MM_ANONPAGES val:22 BUG: Bad rss-counter state mm:00000000d7ee9e9d type:MM_FILEPAGES val:33 BUG: Bad rss-counter state mm:00000000d7ee9e9d type:MM_ANONPAGES val:22 kmemleak: Automatic memory scanning thread ended cgroup: Unknown subsys name 'net' cgroup: Unknown subsys name 'rlimit' general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f] CPU: 1 PID: 204 Comm: sshd Tainted: G B 6.4.0-rc7-next-20230620 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 RIP: 0010:__rb_insert_augmented+0x78/0x8b0 Code: ea 48 c1 ea 03 42 80 3c 2a 00 0f 85 65 05 00 00 4c 8b 65 00 41 f6 c4 01 0f 85 18 05 00 00 4d 8d 44 24 08 4c 89 c2 48 c1 ea 03 <42> 80 3c 2a 00 0f 85 55 05 00 00 4d 8b 74 24 08 49 39 ee 0f 84 77 RSP: 0018:ffff888009f47948 EFLAGS: 00010212 RAX: ffff888019ae5ef8 RBX: ffff888019d32ec0 RCX: 1ffff110033a65d8 RDX: 0000000000000001 RSI: ffff888019ae5ef8 RDI: ffff888019d32ec0 RBP: ffff88800fea2950 R08: 0000000000000008 R09: 0000000000000000 R10: 000000000000000d R11: 00000000000b6a61 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff888019ae5f08 R15: ffffffff816e6340 FS: 00007f6acf165900(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005640ba9f1e40 CR3: 000000000f638000 CR4: 0000000000350ee0 Call Trace: dup_mmap+0xc45/0x1770 copy_process+0x3e68/0x7320 kernel_clone+0xeb/0x7d0 __do_sys_clone+0xba/0x100 do_syscall_64+0x3f/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 RIP: 0033:0x7f6acf6244bb Code: ed 0f 85 f8 00 00 00 64 4c 8b 0c 25 10 00 00 00 45 31 c0 4d 8d 91 d0 02 00 00 31 d2 31 f6 bf 11 00 20 01 b8 38 00 00 00 0f 05 <48> 3d 00 f0 ff ff 0f 87 91 00 00 00 41 89 c5 85 c0 0f 85 9e 00 00 RSP: 002b:00007ffec5a4a290 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f6acf6244bb RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 RBP: 0000000000000000 R08: 0000000000000000 R09: 00007f6acf165900 R10: 00007f6acf165bd0 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 0000000000000005 R15: 0000000000000000 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__rb_insert_augmented+0x78/0x8b0 Code: ea 48 c1 ea 03 42 80 3c 2a 00 0f 85 65 05 00 00 4c 8b 65 00 41 f6 c4 01 0f 85 18 05 00 00 4d 8d 44 24 08 4c 89 c2 48 c1 ea 03 <42> 80 3c 2a 00 0f 85 55 05 00 00 4d 8b 74 24 08 49 39 ee 0f 84 77 RSP: 0018:ffff888009f47948 EFLAGS: 00010212 RAX: ffff888019ae5ef8 RBX: ffff888019d32ec0 RCX: 1ffff110033a65d8 RDX: 0000000000000001 RSI: ffff888019ae5ef8 RDI: ffff888019d32ec0 RBP: ffff88800fea2950 R08: 0000000000000008 R09: 0000000000000000 R10: 000000000000000d R11: 00000000000b6a61 R12: 0000000000000000 R13: dffffc0000000000 R14: ffff888019ae5f08 R15: ffffffff816e6340 FS: 00007f6acf165900(0000) GS:ffff88806cf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005640ba9f1e40 CR3: 000000000f638000 CR4: 0000000000350ee0 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 48 c1 ea 03 shr $0x3,%rdx 4: 42 80 3c 2a 00 cmpb $0x0,(%rdx,%r13,1) 9: 0f 85 65 05 00 00 jne 0x574 f: 4c 8b 65 00 mov 0x0(%rbp),%r12 13: 41 f6 c4 01 test $0x1,%r12b 17: 0f 85 18 05 00 00 jne 0x535 1d: 4d 8d 44 24 08 lea 0x8(%r12),%r8 22: 4c 89 c2 mov %r8,%rdx 25: 48 c1 ea 03 shr $0x3,%rdx * 29: 42 80 3c 2a 00 cmpb $0x0,(%rdx,%r13,1) <-- trapping instruction 2e: 0f 85 55 05 00 00 jne 0x589 34: 4d 8b 74 24 08 mov 0x8(%r12),%r14 39: 49 39 ee cmp %rbp,%r14 3c: 0f .byte 0xf 3d: 84 .byte 0x84 3e: 77 .byte 0x77