syzbot


general protection fault in debug_check_no_obj_freed (6)

Status: auto-closed as invalid on 2022/02/06 02:57
Subsystems: tomoyo
[Documentation on labels]
Reported-by: syzbot+aa20205998c87e967460@syzkaller.appspotmail.com
First crash: 1073d, last: 1072d
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in debug_check_no_obj_freed (2) mm 1 2179d 2177d 0/28 auto-closed as invalid on 2019/04/26 09:49
linux-4.19 general protection fault in debug_check_no_obj_freed (2) 2 1007d 1111d 0/1 auto-closed as invalid on 2022/05/11 17:22
upstream general protection fault in debug_check_no_obj_freed (7) fs batman 3 477d 524d 0/28 auto-obsoleted due to no activity on 2023/09/24 06:05
linux-4.19 general protection fault in debug_check_no_obj_freed 1 1497d 1497d 0/1 auto-closed as invalid on 2021/01/06 22:10
upstream general protection fault in debug_check_no_obj_freed (4) net 1 1269d 1263d 0/28 auto-closed as invalid on 2021/06/24 04:15
upstream general protection fault in debug_check_no_obj_freed (5) kvm 4 1165d 1185d 0/28 auto-closed as invalid on 2021/11/05 02:52
upstream general protection fault in debug_check_no_obj_freed (3) mm 7 1473d 1485d 0/28 auto-closed as invalid on 2021/01/30 14:32
upstream general protection fault in debug_check_no_obj_freed mm 2 2393d 2391d 0/28 closed as invalid on 2018/07/17 14:23
linux-4.19 BUG: unable to handle kernel paging request in debug_check_no_obj_freed 1 1332d 1332d 0/1 auto-closed as invalid on 2021/06/21 12:27
upstream BUG: unable to handle kernel paging request in debug_check_no_obj_freed (3) ntfs3 1 811d 807d 0/28 auto-obsoleted due to no activity on 2022/10/25 02:48

Sample crash report:
general protection fault, probably for non-canonical address 0xdffffc00e0e00000: 0000 [#1] PREEMPT SMP KASAN
KASAN: probably user-memory-access in range [0x0000000707000000-0x0000000707000007]
CPU: 1 PID: 2942 Comm: systemd-udevd Not tainted 5.15.0-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__debug_check_no_obj_freed lib/debugobjects.c:981 [inline]
RIP: 0010:debug_check_no_obj_freed+0x1d3/0x420 lib/debugobjects.c:1023
Code: 39 00 0f 85 0f 02 00 00 48 89 45 08 4d 89 30 4c 89 c7 4d 89 68 08 e8 7c d0 ff ff 48 85 ed 74 2c 49 89 e8 4c 89 c0 48 c1 e8 03 <42> 80 3c 38 00 0f 84 2e ff ff ff 4c 89 c7 4c 89 44 24 38 e8 15 a8
RSP: 0018:ffffc90001aff7b0 EFLAGS: 00010006
RAX: 00000000e0e00000 RBX: ffff88815d6e0000 RCX: ffffffff815d4b30
RDX: 1ffffffff20a3533 RSI: 0000000000000004 RDI: ffff888000102de0
RBP: 0000000707000000 R08: 0000000707000000 R09: ffff888146ca0030
R10: fffff5200035fee4 R11: 0000000000000000 R12: 0000000000000003
R13: dead000000000122 R14: dead000000000100 R15: dffffc0000000000
FS:  00007fd4afd608c0(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020002000 CR3: 0000000019fe5000 CR4: 00000000003506e0
Call Trace:
 <TASK>
 free_pages_prepare mm/page_alloc.c:1343 [inline]
 free_pcp_prepare+0x2ae/0x870 mm/page_alloc.c:1389
 free_unref_page_prepare mm/page_alloc.c:3309 [inline]
 free_unref_page+0x19/0x690 mm/page_alloc.c:3388
 __unfreeze_partials+0x343/0x360 mm/slub.c:2527
 qlink_free mm/kasan/quarantine.c:146 [inline]
 qlist_free_all+0x5a/0xc0 mm/kasan/quarantine.c:165
 kasan_quarantine_reduce+0x180/0x200 mm/kasan/quarantine.c:272
 __kasan_slab_alloc+0xa2/0xc0 mm/kasan/common.c:444
 kasan_slab_alloc include/linux/kasan.h:259 [inline]
 slab_post_alloc_hook mm/slab.h:519 [inline]
 slab_alloc_node mm/slub.c:3234 [inline]
 slab_alloc mm/slub.c:3242 [inline]
 __kmalloc+0x1e7/0x340 mm/slub.c:4419
 kmalloc include/linux/slab.h:595 [inline]
 tomoyo_realpath_from_path+0xc3/0x620 security/tomoyo/realpath.c:254
 tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
 tomoyo_path_perm+0x21b/0x400 security/tomoyo/file.c:822
 security_inode_getattr+0xcf/0x140 security/security.c:1334
 vfs_getattr fs/stat.c:157 [inline]
 vfs_statx+0x164/0x390 fs/stat.c:225
 vfs_fstatat fs/stat.c:243 [inline]
 vfs_lstat include/linux/fs.h:3357 [inline]
 __do_sys_newlstat+0x91/0x110 fs/stat.c:398
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7fd4aebd2335
Code: 69 db 2b 00 64 c7 00 16 00 00 00 b8 ff ff ff ff c3 0f 1f 40 00 83 ff 01 48 89 f0 77 30 48 89 c7 48 89 d6 b8 06 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 03 f3 c3 90 48 8b 15 31 db 2b 00 f7 d8 64 89
RSP: 002b:00007ffce1ef8978 EFLAGS: 00000246 ORIG_RAX: 0000000000000006
RAX: ffffffffffffffda RBX: 000055e8c19c5ad0 RCX: 00007fd4aebd2335
RDX: 00007ffce1ef89b0 RSI: 00007ffce1ef89b0 RDI: 000055e8c19c4ad0
RBP: 00007ffce1ef8a70 R08: 00007fd4aee91228 R09: 0000000000001010
R10: 00007fd4aee90b58 R11: 0000000000000246 R12: 000055e8c19c4ad0
R13: 000055e8c19c4adc R14: 000055e8c19d3ff5 R15: 000055e8c19d3ffc
 </TASK>
Modules linked in:
---[ end trace 5cd697440575c15d ]---
RIP: 0010:__debug_check_no_obj_freed lib/debugobjects.c:981 [inline]
RIP: 0010:debug_check_no_obj_freed+0x1d3/0x420 lib/debugobjects.c:1023
Code: 39 00 0f 85 0f 02 00 00 48 89 45 08 4d 89 30 4c 89 c7 4d 89 68 08 e8 7c d0 ff ff 48 85 ed 74 2c 49 89 e8 4c 89 c0 48 c1 e8 03 <42> 80 3c 38 00 0f 84 2e ff ff ff 4c 89 c7 4c 89 44 24 38 e8 15 a8
RSP: 0018:ffffc90001aff7b0 EFLAGS: 00010006
RAX: 00000000e0e00000 RBX: ffff88815d6e0000 RCX: ffffffff815d4b30
RDX: 1ffffffff20a3533 RSI: 0000000000000004 RDI: ffff888000102de0
RBP: 0000000707000000 R08: 0000000707000000 R09: ffff888146ca0030
R10: fffff5200035fee4 R11: 0000000000000000 R12: 0000000000000003
R13: dead000000000122 R14: dead000000000100 R15: dffffc0000000000
FS:  00007fd4afd608c0(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020002000 CR3: 0000000019fe5000 CR4: 00000000003506e0
----------------
Code disassembly (best guess):
   0:	39 00                	cmp    %eax,(%rax)
   2:	0f 85 0f 02 00 00    	jne    0x217
   8:	48 89 45 08          	mov    %rax,0x8(%rbp)
   c:	4d 89 30             	mov    %r14,(%r8)
   f:	4c 89 c7             	mov    %r8,%rdi
  12:	4d 89 68 08          	mov    %r13,0x8(%r8)
  16:	e8 7c d0 ff ff       	callq  0xffffd097
  1b:	48 85 ed             	test   %rbp,%rbp
  1e:	74 2c                	je     0x4c
  20:	49 89 e8             	mov    %rbp,%r8
  23:	4c 89 c0             	mov    %r8,%rax
  26:	48 c1 e8 03          	shr    $0x3,%rax
* 2a:	42 80 3c 38 00       	cmpb   $0x0,(%rax,%r15,1) <-- trapping instruction
  2f:	0f 84 2e ff ff ff    	je     0xffffff63
  35:	4c 89 c7             	mov    %r8,%rdi
  38:	4c 89 44 24 38       	mov    %r8,0x38(%rsp)
  3d:	e8                   	.byte 0xe8
  3e:	15                   	.byte 0x15
  3f:	a8                   	.byte 0xa8

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/11/08 02:56 upstream 6b75d88fa81b 4c1be0be .config console log report info ci-upstream-kasan-gce general protection fault in debug_check_no_obj_freed
2021/11/06 14:30 upstream d4439a1189f9 4c1be0be .config console log report info ci-upstream-kasan-gce-root general protection fault in debug_check_no_obj_freed
* Struck through repros no longer work on HEAD.