syzbot


WARNING in untrack_pfn

Status: upstream: reported C repro on 2023/07/19 07:05
Bug presence: origin:lts-only
[Documentation on labels]
Reported-by: syzbot+e68f8778d06d8e37ebbb@syzkaller.appspotmail.com
First crash: 360d, last: 218d
Fix commit to backport (bisect log) :
tree: upstream
commit d155df53f31068c3340733d586eb9b3ddfd70fc5
Author: Ma Wupeng <mawupeng1@huawei.com>
Date: Fri Feb 17 02:56:15 2023 +0000

  x86/mm/pat: clear VM_PAT if copy_p4d_range failed

  
Fix bisection: the issue occurs on the latest tested release (bisect log)
Crash: WARNING in untrack_pfn (log)
Repro: C syz .config
  
Bug presence (2)
Date Name Commit Repro Result
2023/07/20 linux-5.15.y (ToT) d54cfc420586 C [report] WARNING in untrack_pfn
2023/07/20 upstream (ToT) bfa3037d8280 C Didn't crash
Similar bugs (9)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in untrack_pfn kernel C done error 128 110d 2182d 0/27 auto-obsoleted due to no activity on 2024/07/03 15:42
android-49 WARNING in untrack_pfn syz 35 1683d 1917d 0/3 public: reported syz repro on 2019/04/14 09:28
linux-4.19 WARNING in untrack_pfn C error 24 542d 1804d 0/1 upstream: reported C repro on 2019/08/05 09:38
linux-4.14 WARNING in untrack_pfn C inconclusive 27 535d 1796d 0/1 upstream: reported C repro on 2019/08/13 08:40
android-44 WARNING in untrack_pfn C 211 1949d 2323d 0/2 closed as invalid on 2019/03/16 01:21
android-414 WARNING in untrack_pfn syz 1 2029d 1918d 0/1 public: reported syz repro on 2019/04/13 00:01
linux-6.1 WARNING in untrack_pfn (2) origin:lts-only C done 4 190d 313d 0/3 upstream: reported C repro on 2023/09/04 06:46
linux-6.1 WARNING in untrack_pfn 2 447d 455d 0/3 auto-obsoleted due to no activity on 2023/08/21 02:48
android-44 WARNING in untrack_pfn (2) C 71 1683d 1920d 0/2 public: reported C repro on 2019/04/11 08:44
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2023/11/22 14:51 5h34m fix candidate upstream OK (1) job log
2023/10/31 02:53 1h04m bisect fix linux-5.15.y OK (0) job log log
2023/09/27 03:00 52m bisect fix linux-5.15.y OK (0) job log log

Sample crash report:
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007efd33fe5b89
RDX: 00007ffd55691100 RSI: 0000000000000058 RDI: 00007ffd55691100
RBP: 0000000000000002 R08: 00007ffd55690e86 R09: 0000000000003234
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd55691224 R14: 00007ffd55691240 R15: 00007ffd55691230
 </TASK>
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3543 at arch/x86/mm/pat/memtype.c:1099 untrack_pfn+0x30e/0x490
Modules linked in:
CPU: 1 PID: 3543 Comm: syz-executor346 Not tainted 5.15.138-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
RIP: 0010:untrack_pfn+0x30e/0x490 arch/x86/mm/pat/memtype.c:1099
Code: 8d 8c 24 a0 00 00 00 49 89 d8 e8 5d db 7e 00 49 89 dd 89 c3 31 ff 89 c6 e8 af ac 45 00 85 db 0f 84 b2 00 00 00 e8 42 a9 45 00 <0f> 0b 48 bb 00 00 00 00 00 fc ff df eb 4f 48 b8 00 00 00 00 00 fc
RSP: 0018:ffffc90002e5f480 EFLAGS: 00010293
RAX: ffffffff813a790e RBX: 00000000ffffffea RCX: ffff8880159e5940
RDX: 0000000000000000 RSI: 00000000ffffffea RDI: 0000000000000000
RBP: ffffc90002e5f588 R08: ffffffff813a7901 R09: ffffc90002e5f400
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1100363418c
R13: ffffc90002e5f500 R14: dffffc0000000000 R15: ffff88801b1a0c60
FS:  0000555555c43480(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555555c43da8 CR3: 000000001a2f5000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 unmap_single_vma+0x1d8/0x2d0 mm/memory.c:1589
 unmap_vmas+0x1f8/0x390 mm/memory.c:1642
 exit_mmap+0x3b6/0x670 mm/mmap.c:3186
 __mmput+0x112/0x3b0 kernel/fork.c:1126
 mmput kernel/fork.c:1147 [inline]
 dup_mm kernel/fork.c:1481 [inline]
 copy_mm+0x100d/0x1370 kernel/fork.c:1517
 copy_process+0x1816/0x3ef0 kernel/fork.c:2206
 kernel_clone+0x210/0x960 kernel/fork.c:2604
 __do_sys_clone3 kernel/fork.c:2879 [inline]
 __se_sys_clone3+0x3e1/0x430 kernel/fork.c:2863
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7efd33fe5b89
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 21 18 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd556910e8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b3
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007efd33fe5b89
RDX: 00007ffd55691100 RSI: 0000000000000058 RDI: 00007ffd55691100
RBP: 0000000000000002 R08: 00007ffd55690e86 R09: 0000000000003234
R10: 0000000000000002 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd55691224 R14: 00007ffd55691240 R15: 00007ffd55691230
 </TASK>

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/18 22:07 linux-5.15.y 80529b4968a8 cb976f63 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in untrack_pfn
2023/07/19 07:05 linux-5.15.y d54cfc420586 022df2bb .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in untrack_pfn
2023/12/08 12:46 linux-5.15.y 8a1d809b0545 28b24332 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in untrack_pfn
2023/11/27 20:04 linux-5.15.y 2a910f4af54d 7ec6c044 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in untrack_pfn
2023/11/18 19:12 linux-5.15.y 80529b4968a8 cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in untrack_pfn
2023/11/01 01:03 linux-5.15.y 12952a23a5da 58499c95 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in untrack_pfn
2023/09/29 23:32 linux-5.15.y b911329317b4 8e26a358 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in untrack_pfn
* Struck through repros no longer work on HEAD.