syzbot


BUG: unable to handle kernel paging request in diFree

Status: fixed on 2021/08/17 00:59
Reported-by: syzbot+e42ea4e350166ff30e9e@syzkaller.appspotmail.com
Fix commit: aff8d95b6905 jfs: fix GPF in diFree
First crash: 1492d, last: 1201d
Fix bisection: fixed by (bisect log) :
commit aff8d95b69051d0cf4acc3d91f22299fdbb9dfb3
Author: Pavel Skripkin <paskripkin@gmail.com>
Date: Sun Jun 6 14:24:05 2021 +0000

  jfs: fix GPF in diFree

  
Similar bugs (11)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in diFree jfs C done 13 1222d 1493d 20/28 fixed on 2021/11/10 00:50
linux-4.19 KASAN: use-after-free Read in diFree jfs C error 21 640d 1478d 0/1 upstream: reported C repro on 2020/10/13 01:51
linux-4.14 BUG: unable to handle kernel paging request in diFree C 5 618d 1498d 0/1 upstream: reported C repro on 2020/09/23 16:53
upstream KASAN: use-after-free Read in diFree jfs C inconclusive unreliable 110 305d 953d 0/28 auto-obsoleted due to no activity on 2024/03/22 04:27
linux-6.1 KASAN: use-after-free Read in diFree origin:lts-only C done 7 398d 559d 3/3 fixed on 2023/10/30 11:46
linux-4.14 general protection fault in diFree 1 1371d 1371d 0/1 auto-closed as invalid on 2021/05/28 19:31
linux-4.14 general protection fault in diFree (2) C 2 611d 1016d 0/1 upstream: reported C repro on 2022/01/18 19:31
linux-5.15 KASAN: use-after-free Read in diFree C error 5 499d 571d 0/3 auto-obsoleted due to no activity on 2023/10/07 20:25
linux-5.15 UBSAN: array-index-out-of-bounds in diFree origin:upstream missing-backport C done 13 76d 122d 3/3 fixed on 2024/09/19 18:24
upstream UBSAN: array-index-out-of-bounds in diFree jfs C inconclusive 226 79d 189d 27/28 fixed on 2024/08/14 03:44
linux-4.14 KASAN: use-after-free Read in diFree jfs C error 3 618d 1491d 0/1 upstream: reported C repro on 2020/09/30 00:31
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2021/08/16 20:44 3h55m bisect fix linux-4.19.y OK (1) job log
2021/06/26 19:57 32m bisect fix linux-4.19.y OK (0) job log log
2021/02/24 23:42 24m bisect fix linux-4.19.y OK (0) job log log
2020/12/25 00:00 25m bisect fix linux-4.19.y OK (0) job log log
2020/11/24 23:35 25m bisect fix linux-4.19.y OK (0) job log log

Sample crash report:
audit: type=1400 audit(1602770252.284:8): avc:  denied  { execmem } for  pid=6494 comm="syz-executor012" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1
ERROR: (device loop0): xtSearch: XT_GETPAGE: xtree page corrupt
BUG: unable to handle kernel paging request at ffffffffffffff80
PGD 9470067 P4D 9470067 PUD 9472067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 6494 Comm: syz-executor012 Not tainted 4.19.150-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:diFree+0x15b/0x24b0 fs/jfs/jfs_imap.c:866
Code: 28 48 8d 78 80 48 89 44 24 18 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 38 1e 00 00 48 8b 44 24 18 <48> 8b 68 80 4c 89 e8 48 c1 e8 0c 48 89 04 24 48 b8 00 00 00 00 00
RSP: 0018:ffff88808953f8b8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff88809ec6bcc0 RCX: ffffffff828b6da5
RDX: 1ffffffffffffff0 RSI: ffffffff828d9e15 RDI: ffffffffffffff80
RBP: ffff888082f1c468 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffff888082f1c538
R13: 0000000000000001 R14: ffffffff883a6040 R15: ffff888082f1c468
FS:  00000000025c4880(0000) GS:ffff8880ae300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffff80 CR3: 00000000a917c000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 jfs_evict_inode+0x126/0x170 fs/jfs/inode.c:164
 evict+0x2ed/0x780 fs/inode.c:559
 iput_final fs/inode.c:1555 [inline]
 iput+0x511/0x890 fs/inode.c:1581
 diFreeSpecial fs/jfs/jfs_imap.c:563 [inline]
 diFreeSpecial+0x63/0x80 fs/jfs/jfs_imap.c:555
 jfs_mount+0x23f/0x3d0 fs/jfs/jfs_mount.c:222
 jfs_fill_super+0x55c/0xb50 fs/jfs/super.c:589
 mount_bdev+0x2fc/0x3b0 fs/super.c:1158
 mount_fs+0xa3/0x318 fs/super.c:1261
 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2469 [inline]
 do_mount+0x51c/0x2f10 fs/namespace.c:2799
 ksys_mount+0xcf/0x130 fs/namespace.c:3015
 __do_sys_mount fs/namespace.c:3029 [inline]
 __se_sys_mount fs/namespace.c:3026 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3026
 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x446dea
Code: b8 08 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fd ad fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da ad fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007ffdcf911f98 EFLAGS: 00000283 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffdcf911fe0 RCX: 0000000000446dea
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffdcf911fa0
RBP: 00007ffdcf911fa0 R08: 00007ffdcf911fe0 R09: 6f6f6c2f7665642f
R10: 0000000000008001 R11: 0000000000000283 R12: 0000000000000004
R13: 0000000000000003 R14: 0000000000000003 R15: 0000000000000006
Modules linked in:
CR2: ffffffffffffff80
---[ end trace e3f5838396f0d1e6 ]---
RIP: 0010:diFree+0x15b/0x24b0 fs/jfs/jfs_imap.c:866
Code: 28 48 8d 78 80 48 89 44 24 18 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 38 1e 00 00 48 8b 44 24 18 <48> 8b 68 80 4c 89 e8 48 c1 e8 0c 48 89 04 24 48 b8 00 00 00 00 00
RSP: 0018:ffff88808953f8b8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffff88809ec6bcc0 RCX: ffffffff828b6da5
RDX: 1ffffffffffffff0 RSI: ffffffff828d9e15 RDI: ffffffffffffff80
RBP: ffff888082f1c468 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: ffff888082f1c538
R13: 0000000000000001 R14: ffffffff883a6040 R15: ffff888082f1c468
FS:  00000000025c4880(0000) GS:ffff8880ae300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: ffffffffffffff80 CR3: 00000000a917c000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (18):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/10/15 13:59 linux-4.19.y a1b977b49b66 63869021 .config console log report syz C ci2-linux-4-19
2020/10/14 05:50 linux-4.19.y a1b977b49b66 fc7735a2 .config console log report syz C ci2-linux-4-19
2020/09/29 04:02 linux-4.19.y 10ad6cfd5736 1b88c6d5 .config console log report syz C ci2-linux-4-19
2021/07/17 20:43 linux-4.19.y fcfbdfe9626e f115ae98 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel paging request in diFree
2021/07/16 15:10 linux-4.19.y fcfbdfe9626e f115ae98 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel paging request in diFree
2021/07/05 13:58 linux-4.19.y 9f84340f012e 55aa55c2 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel paging request in diFree
2021/07/04 19:14 linux-4.19.y 9f84340f012e 55aa55c2 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel paging request in diFree
2021/05/27 19:57 linux-4.19.y 6b7b0056defc 858ea628 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel paging request in diFree
2021/05/15 23:36 linux-4.19.y 3c8c23092588 93f844de .config console log report info ci2-linux-4-19 BUG: unable to handle kernel paging request in diFree
2021/05/12 04:44 linux-4.19.y 3c8c23092588 b3c3bb8e .config console log report info ci2-linux-4-19 BUG: unable to handle kernel paging request in diFree
2021/04/19 17:05 linux-4.19.y 2965db2e004c 50f523d7 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel paging request in diFree
2021/04/09 01:10 linux-4.19.y b4454811f122 6a81331a .config console log report info ci2-linux-4-19 BUG: unable to handle kernel paging request in diFree
2021/03/31 14:36 linux-4.19.y 2034d6f0838e 6a81331a .config console log report info ci2-linux-4-19 BUG: unable to handle kernel paging request in diFree
2021/03/09 09:45 linux-4.19.y 2cae3e25b706 09fbf400 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel paging request in diFree
2021/01/25 23:17 linux-4.19.y 2263955bf7e7 52e37319 .config console log report info ci2-linux-4-19 BUG: unable to handle kernel paging request in diFree
2021/01/12 11:19 linux-4.19.y 610bdbf6a174 2c1f2513 .config console log report info ci2-linux-4-19
2021/01/03 01:56 linux-4.19.y 3207316b3bee 79264ae3 .config console log report info ci2-linux-4-19
2020/10/25 23:35 linux-4.19.y ad326970d25c a1839e81 .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.