syzbot


BUG: unable to handle kernel paging request in hfsplus_bnode_put

Status: upstream: reported C repro on 2022/12/09 08:14
Subsystems: hfsplus
[Documentation on labels]
Reported-by: syzbot+4faca4961578d3968579@syzkaller.appspotmail.com
First crash: 495d, last: 408d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: slab-use-after-free Read in hfsplus_bnode_put hfs 1 354d 350d 0/26 auto-obsoleted due to no activity on 2023/08/23 09:02

Sample crash report:
======================================================
WARNING: the mand mount option is being deprecated and
         will be removed in v5.15!
======================================================
BUG: unable to handle kernel paging request at fffffffffffffffb
IP: hfsplus_bnode_put+0x43/0x3e0 fs/hfsplus/bnode.c:629
PGD 8e6b067 P4D 8e6b067 PUD 8e6d067 PMD 0 
Oops: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 7974 Comm: syz-executor506 Not tainted 4.14.301-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
task: ffff8880ae7ee2c0 task.stack: ffff8880a3600000
RIP: 0010:hfsplus_bnode_put+0x43/0x3e0 fs/hfsplus/bnode.c:629
RSP: 0018:ffff8880a36073c8 EFLAGS: 00010246
RAX: dffffc0000000000 RBX: ffff8880a3607500 RCX: 0000000000000000
RDX: 1fffffffffffffff RSI: ffffffff81d3ff40 RDI: fffffffffffffffb
RBP: fffffffffffffffb R08: 0000000000000001 R09: 0000000000000001
R10: 0000000000000000 R11: ffff8880ae7ee2c0 R12: ffff8880afac078c
R13: 0000000000000073 R14: ffff8880b2e1d290 R15: ffff8880a3607500
FS:  0000555556c79300(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: fffffffffffffffb CR3: 00000000b3249000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 hfsplus_brec_find+0xb6/0x460 fs/hfsplus/bfind.c:174
 __hfsplus_ext_read_extent fs/hfsplus/extents.c:164 [inline]
 __hfsplus_ext_cache_extent fs/hfsplus/extents.c:191 [inline]
 hfsplus_ext_read_extent+0x441/0x9e0 fs/hfsplus/extents.c:218
 hfsplus_file_extend+0x616/0xef0 fs/hfsplus/extents.c:456
 hfsplus_get_block+0x15b/0x820 fs/hfsplus/extents.c:245
 __block_write_begin_int+0x35c/0x11d0 fs/buffer.c:2038
 __block_write_begin fs/buffer.c:2088 [inline]
 block_write_begin+0x58/0x270 fs/buffer.c:2147
 cont_write_begin+0x4a3/0x740 fs/buffer.c:2497
 hfsplus_write_begin+0x87/0x130 fs/hfsplus/inode.c:53
 generic_perform_write+0x1d5/0x430 mm/filemap.c:3055
 __generic_file_write_iter+0x227/0x590 mm/filemap.c:3180
 generic_file_write_iter+0x36f/0x650 mm/filemap.c:3208
 call_write_iter include/linux/fs.h:1780 [inline]
 do_iter_readv_writev+0x4cf/0x5f0 fs/read_write.c:675
 do_iter_write+0x152/0x550 fs/read_write.c:954
 vfs_writev+0x125/0x290 fs/read_write.c:999
 do_pwritev fs/read_write.c:1088 [inline]
 SYSC_pwritev2 fs/read_write.c:1147 [inline]
 SyS_pwritev2+0x195/0x230 fs/read_write.c:1138
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7f8a5d6ac7e9
RSP: 002b:00007ffe1fac50c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f8a5d6ac7e9
RDX: 0000000000000001 RSI: 0000000020000680 RDI: 0000000000000004
RBP: 00007f8a5d66c080 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000007400 R11: 0000000000000246 R12: 00007f8a5d66c110
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Code: ed 0f 84 71 01 00 00 e8 8c a6 81 ff 48 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 2f 03 00 00 4c 8d 6d 78 <4c> 8b 65 00 48 b8 00 00 00 00 00 fc ff df 4c 89 ea 48 c1 ea 03 
RIP: hfsplus_bnode_put+0x43/0x3e0 fs/hfsplus/bnode.c:629 RSP: ffff8880a36073c8
CR2: fffffffffffffffb
---[ end trace 15852e66c3f87f05 ]---
----------------
Code disassembly (best guess):
   0:	ed                   	in     (%dx),%eax
   1:	0f 84 71 01 00 00    	je     0x178
   7:	e8 8c a6 81 ff       	callq  0xff81a698
   c:	48 89 ea             	mov    %rbp,%rdx
   f:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  16:	fc ff df
  19:	48 c1 ea 03          	shr    $0x3,%rdx
  1d:	80 3c 02 00          	cmpb   $0x0,(%rdx,%rax,1)
  21:	0f 85 2f 03 00 00    	jne    0x356
  27:	4c 8d 6d 78          	lea    0x78(%rbp),%r13
* 2b:	4c 8b 65 00          	mov    0x0(%rbp),%r12 <-- trapping instruction
  2f:	48 b8 00 00 00 00 00 	movabs $0xdffffc0000000000,%rax
  36:	fc ff df
  39:	4c 89 ea             	mov    %r13,%rdx
  3c:	48 c1 ea 03          	shr    $0x3,%rdx

Crashes (111):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/09 08:26 linux-4.14.y 65afe34ac33d 1034e5fa .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/03/06 23:08 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/03/05 15:36 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/03/05 04:12 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/03/05 00:28 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/03/04 22:52 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/03/04 21:38 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/03/03 16:35 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/03/03 15:18 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/03/03 11:56 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/03/03 01:42 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/03/02 12:54 linux-4.14.y 7878a41b6cc1 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/03/01 01:00 linux-4.14.y 7878a41b6cc1 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/28 05:54 linux-4.14.y 7878a41b6cc1 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/27 16:31 linux-4.14.y 7878a41b6cc1 9189cb53 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/27 04:15 linux-4.14.y 7878a41b6cc1 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/26 21:22 linux-4.14.y 7878a41b6cc1 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/26 17:01 linux-4.14.y 7878a41b6cc1 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/25 03:43 linux-4.14.y 1e61bd26fa2c ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/24 23:35 linux-4.14.y 1e61bd26fa2c ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/24 21:00 linux-4.14.y 1e61bd26fa2c ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/24 19:24 linux-4.14.y 1e61bd26fa2c ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/23 02:40 linux-4.14.y 1e61bd26fa2c 9f1e2cb3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/22 09:41 linux-4.14.y a8ad60f2af58 42a4d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/22 06:07 linux-4.14.y a8ad60f2af58 42a4d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/22 03:03 linux-4.14.y a8ad60f2af58 42a4d508 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/21 04:17 linux-4.14.y a8ad60f2af58 2414209c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/19 07:01 linux-4.14.y a8ad60f2af58 bcdf85f8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/18 18:35 linux-4.14.y a8ad60f2af58 d02e9a70 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/18 12:44 linux-4.14.y a8ad60f2af58 d02e9a70 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/18 11:48 linux-4.14.y a8ad60f2af58 d02e9a70 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/18 03:06 linux-4.14.y a8ad60f2af58 cf8c2d39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/18 02:00 linux-4.14.y a8ad60f2af58 cf8c2d39 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/17 09:11 linux-4.14.y a8ad60f2af58 851bc19a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/17 07:20 linux-4.14.y a8ad60f2af58 851bc19a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/17 05:25 linux-4.14.y a8ad60f2af58 851bc19a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/16 20:44 linux-4.14.y a8ad60f2af58 38b317a7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/12 22:19 linux-4.14.y a8ad60f2af58 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/11 14:54 linux-4.14.y a8ad60f2af58 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/10 11:10 linux-4.14.y a8ad60f2af58 07980f9d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/10 03:57 linux-4.14.y a8ad60f2af58 07980f9d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/10 02:00 linux-4.14.y a8ad60f2af58 07980f9d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/10 00:53 linux-4.14.y a8ad60f2af58 07980f9d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/09 23:25 linux-4.14.y a8ad60f2af58 07980f9d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/09 23:15 linux-4.14.y a8ad60f2af58 07980f9d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/09 11:43 linux-4.14.y a8ad60f2af58 14a312c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/09 11:07 linux-4.14.y a8ad60f2af58 14a312c8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/08 04:05 linux-4.14.y a8ad60f2af58 15c3d445 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2023/02/08 03:53 linux-4.14.y a8ad60f2af58 15c3d445 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
2022/12/09 08:13 linux-4.14.y 65afe34ac33d 1034e5fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 BUG: unable to handle kernel paging request in hfsplus_bnode_put
* Struck through repros no longer work on HEAD.