[syzbot] [cgroups?] [mm?] general protection fault in __memcg_kmem_charge_page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

syzbot found the following issue on:

HEAD commit:    e9b8ffafd20a Merge tag 'usb-6.13-rc4' of git://git.kernel...
git tree:       upstream
console output: https://syzkaller.appspot.com/x/log.txt?x=1788dcf8580000
kernel config:  https://syzkaller.appspot.com/x/.config?x=c22efbd20f8da769
dashboard link: https://syzkaller.appspot.com/bug?extid=6c87d9f0b4ba556c9d83
compiler:       gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/1e4fdb0e4f25/disk-e9b8ffaf.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/0d81695cd1d6/vmlinux-e9b8ffaf.xz
kernel image: https://storage.googleapis.com/syzbot-assets/976c7fc4c5da/bzImage-e9b8ffaf.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+6c87d9f0b4ba556c9d83@xxxxxxxxxxxxxxxxxxxxxxxxx

Oops: general protection fault, probably for non-canonical address 0xdffffc0000000007: 0000 [#1] PREEMPT SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000038-0x000000000000003f]
CPU: 0 UID: 0 PID: 9346 Comm: syz.4.804 Not tainted 6.13.0-rc3-syzkaller-00193-ge9b8ffafd20a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:__memcg_kmem_charge_page+0x1c5/0x2b0 mm/memcontrol.c:2676
Code: ad 00 00 00 4c 89 e7 be 01 00 00 00 49 83 cc 02 e8 60 1c ff ff 48 8d 7b 38 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 cf 00 00 00 4c 89 63 38 e9 5f ff ff ff 48 3b 2d
RSP: 0018:ffffc900195afa80 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc900195afa00
RDX: 0000000000000007 RSI: ffffffff8b4cd480 RDI: 0000000000000038
RBP: ffff888028d10000 R08: 0000000000000000 R09: fffffbfff2039c72
R10: ffffffff901ce397 R11: 0000000000000000 R12: ffff888031d4df82
R13: 0000000000000001 R14: 0000000000000cc0 R15: dffffc0000000000
FS:  00005555870d9500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe63461cd58 CR3: 00000000250b4000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 memcg_kmem_charge_page include/linux/memcontrol.h:1697 [inline]
 memcg_charge_kernel_stack kernel/fork.c:265 [inline]
 memcg_charge_kernel_stack+0xc3/0x1f0 kernel/fork.c:256
 alloc_thread_stack_node kernel/fork.c:299 [inline]
 dup_task_struct kernel/fork.c:1121 [inline]
 copy_process+0x5a3/0x6f20 kernel/fork.c:2225
 kernel_clone+0xfd/0x960 kernel/fork.c:2807
 __do_sys_clone3+0x1f9/0x270 kernel/fork.c:3111
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe6337ba589
Code: 1b 08 00 48 8d 3d 9c 1b 08 00 e8 12 29 f6 ff 66 90 b8 ea ff ff ff 48 85 ff 74 2c 48 85 d2 74 27 49 89 c8 b8 b3 01 00 00 0f 05 <48> 85 c0 7c 18 74 01 c3 31 ed 48 83 e4 f0 4c 89 c7 ff d2 48 89 c7
RSP: 002b:00007ffc6268d038 EFLAGS: 00000206 ORIG_RAX: 00000000000001b3
RAX: ffffffffffffffda RBX: 00007fe63373c9a0 RCX: 00007fe6337ba589
RDX: 00007fe63373c9a0 RSI: 0000000000000058 RDI: 00007ffc6268d080
RBP: 00007fe63461c6c0 R08: 00007fe63461c6c0 R09: 00007ffc6268d167
R10: 0000000000000008 R11: 0000000000000206 R12: ffffffffffffffa8
R13: 000000000000006e R14: 00007ffc6268d080 R15: 00007ffc6268d168
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__memcg_kmem_charge_page+0x1c5/0x2b0 mm/memcontrol.c:2676
Code: ad 00 00 00 4c 89 e7 be 01 00 00 00 49 83 cc 02 e8 60 1c ff ff 48 8d 7b 38 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 cf 00 00 00 4c 89 63 38 e9 5f ff ff ff 48 3b 2d
RSP: 0018:ffffc900195afa80 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc900195afa00
RDX: 0000000000000007 RSI: ffffffff8b4cd480 RDI: 0000000000000038
RBP: ffff888028d10000 R08: 0000000000000000 R09: fffffbfff2039c72
R10: ffffffff901ce397 R11: 0000000000000000 R12: ffff888031d4df82
R13: 0000000000000001 R14: 0000000000000cc0 R15: dffffc0000000000
FS:  00005555870d9500(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f4aaa7452d8 CR3: 00000000250b4000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	ad                   	lods   %ds:(%rsi),%eax
   1:	00 00                	add    %al,(%rax)
   3:	00 4c 89 e7          	add    %cl,-0x19(%rcx,%rcx,4)
   7:	be 01 00 00 00       	mov    $0x1,%esi
   c:	49 83 cc 02          	or     $0x2,%r12
  10:	e8 60 1c ff ff       	call   0xffff1c75
  15:	48 8d 7b 38          	lea    0x38(%rbx),%rdi
  19:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  20:	fc ff df
  23:	48 89 fa             	mov    %rdi,%rdx
  26:	48 c1 ea 03          	shr    $0x3,%rdx
* 2a:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1) <-- trapping instruction
  2e:	0f 85 cf 00 00 00    	jne    0x103
  34:	4c 89 63 38          	mov    %r12,0x38(%rbx)
  38:	e9 5f ff ff ff       	jmp    0xffffff9c
  3d:	48                   	rex.W
  3e:	3b                   	.byte 0x3b
  3f:	2d                   	.byte 0x2d


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzkaller@xxxxxxxxxxxxxxxx.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux