syzbot


general protection fault in lru_gen_test_recent

Status: moderation: reported on 2025/04/29 03:20
Subsystems: mm
[Documentation on labels]
Reported-by: syzbot+28e82dfd6e6399c0e620@syzkaller.appspotmail.com
First crash: 17d, last: 1d10h

Sample crash report:
netlink: 1 bytes leftover after parsing attributes in process `syz.1.42'.
Oops: general protection fault, probably for non-canonical address 0xdffffc00000009c0: 0000 [#1] SMP KASAN PTI
KASAN: probably user-memory-access in range [0x0000000000004e00-0x0000000000004e07]
CPU: 1 UID: 0 PID: 6099 Comm: syz.1.42 Not tainted 6.15.0-rc5-syzkaller-00207-g1a33418a69cc #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:mem_cgroup_lruvec include/linux/memcontrol.h:699 [inline]
RIP: 0010:lru_gen_test_recent+0xee/0x320 mm/workingset.c:275
Code: a8 8a b8 ff 48 85 db 0f 84 79 01 00 00 e8 9a 8a b8 ff 49 8d bd 00 4e 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e a3 01 00 00 4d 63 b5 00 4e 00
RSP: 0018:ffffc9000ba07878 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff888140494000 RCX: ffffc9000bd79000
RDX: 00000000000009c0 RSI: ffffffff82021246 RDI: 0000000000004e00
RBP: ffffc9000ba07918 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffffc9000ba07938
R13: 0000000000000000 R14: ffffc9000ba07908 R15: 0000000000000015
FS:  00007fe99745a6c0(0000) GS:ffff888124aec000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b300e7ff8 CR3: 0000000033010000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 lru_gen_refault mm/workingset.c:296 [inline]
 workingset_refault+0x24f/0xee0 mm/workingset.c:546
 filemap_add_folio+0x1ae/0x220 mm/filemap.c:984
 do_read_cache_folio+0x239/0x5c0 mm/filemap.c:3852
 freader_get_folio+0x337/0x8e0 lib/buildid.c:77
 freader_fetch+0xc2/0x5e0 lib/buildid.c:120
 __build_id_parse.isra.0+0xec/0x7a0 lib/buildid.c:305
 do_procmap_query+0xd96/0x1090 fs/proc/task_mmu.c:534
 procfs_procmap_ioctl+0x7d/0xb0 fs/proc/task_mmu.c:613
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:906 [inline]
 __se_sys_ioctl fs/ioctl.c:892 [inline]
 __x64_sys_ioctl+0x190/0x200 fs/ioctl.c:892
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xcd/0x230 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fe99658e969
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe99745a038 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007fe9967b5fa0 RCX: 00007fe99658e969
RDX: 0000200000000080 RSI: 00000000c0686611 RDI: 0000000000000005
RBP: 00007fe996610ab1 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe9967b5fa0 R15: 00007fff15c19368
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:mem_cgroup_lruvec include/linux/memcontrol.h:699 [inline]
RIP: 0010:lru_gen_test_recent+0xee/0x320 mm/workingset.c:275
Code: a8 8a b8 ff 48 85 db 0f 84 79 01 00 00 e8 9a 8a b8 ff 49 8d bd 00 4e 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 <0f> b6 04 02 84 c0 74 08 3c 03 0f 8e a3 01 00 00 4d 63 b5 00 4e 00
RSP: 0018:ffffc9000ba07878 EFLAGS: 00010206
RAX: dffffc0000000000 RBX: ffff888140494000 RCX: ffffc9000bd79000
RDX: 00000000000009c0 RSI: ffffffff82021246 RDI: 0000000000004e00
RBP: ffffc9000ba07918 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffffc9000ba07938
R13: 0000000000000000 R14: ffffc9000ba07908 R15: 0000000000000015
FS:  00007fe99745a6c0(0000) GS:ffff8881249ec000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b301aaff8 CR3: 0000000033010000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
   0:	a8 8a                	test   $0x8a,%al
   2:	b8 ff 48 85 db       	mov    $0xdb8548ff,%eax
   7:	0f 84 79 01 00 00    	je     0x186
   d:	e8 9a 8a b8 ff       	call   0xffb88aac
  12:	49 8d bd 00 4e 00 00 	lea    0x4e00(%r13),%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:	0f b6 04 02          	movzbl (%rdx,%rax,1),%eax <-- trapping instruction
  2e:	84 c0                	test   %al,%al
  30:	74 08                	je     0x3a
  32:	3c 03                	cmp    $0x3,%al
  34:	0f 8e a3 01 00 00    	jle    0x1dd
  3a:	4d                   	rex.WRB
  3b:	63                   	.byte 0x63
  3c:	b5 00                	mov    $0x0,%ch
  3e:	4e                   	rex.WRX

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/05/10 18:44 upstream 1a33418a69cc 77908e5f .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in lru_gen_test_recent
2025/04/25 03:08 upstream e72e9e693307 e3715315 .config console log report info [disk image] [vmlinux] [kernel image] ci-qemu-gce-upstream-auto general protection fault in lru_gen_test_recent
* Struck through repros no longer work on HEAD.