syzbot


kernel BUG in __filemap_get_folio (2)

Status: auto-obsoleted due to no activity on 2023/08/23 09:09
Subsystems: hfs
[Documentation on labels]
Reported-by: syzbot+8fab910f890e17016919@syzkaller.appspotmail.com
First crash: 408d, last: 408d
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [hfs?] kernel BUG in __filemap_get_folio (2) 0 (1) 2023/05/09 08:26
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in find_lock_entries mm C done 10 879d 1042d 20/27 fixed on 2022/03/08 16:11
upstream kernel BUG in __filemap_get_folio kernel C done 814 617d 788d 22/27 fixed on 2023/02/24 13:50

Sample crash report:
 kswapd+0x677/0xd60 mm/vmscan.c:7727
 kthread+0x344/0x440 kernel/kthread.c:379
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
------------[ cut here ]------------
kernel BUG at include/linux/mm.h:996!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 2 PID: 5174 Comm: syz-executor.3 Not tainted 6.3.0-syzkaller-13091-g3c4aa4434377 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.14.0-2 04/01/2014
RIP: 0010:put_page_testzero include/linux/mm.h:996 [inline]
RIP: 0010:folio_put_testzero include/linux/mm.h:1002 [inline]
RIP: 0010:folio_put include/linux/mm.h:1429 [inline]
RIP: 0010:__filemap_get_folio+0x8e2/0x990 mm/filemap.c:1937
Code: e8 b3 20 d3 ff 48 c7 c6 00 b2 56 8a 4c 89 e7 e8 d4 a6 0e 00 0f 0b e8 9d 20 d3 ff 48 c7 c6 00 b2 56 8a 4c 89 e7 e8 be a6 0e 00 <0f> 0b e8 87 20 d3 ff 4c 89 e7 49 c7 c4 f5 ff ff ff e8 f8 44 03 00
RSP: 0018:ffffc900038579a0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000002 RCX: 0000000000000000
RDX: ffff888016a38000 RSI: ffffffff81b13d42 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000001 R09: ffffffff8e7a71d7
R10: fffffbfff1cf4e3a R11: 0000000000000000 R12: ffffea00007e5b80
R13: ffff8880734a4480 R14: 0000000000000000 R15: ffffea00007e5bb4
FS:  0000000000000000(0000) GS:ffff88802c800000(0063) knlGS:00000000581dd380
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 00000000f734e1b0 CR3: 0000000071e9b000 CR4: 0000000000350ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 truncate_inode_pages_range+0x350/0xf10 mm/truncate.c:377
 hfs_evict_inode+0x1a/0x100 fs/hfs/inode.c:563
 evict+0x2ed/0x6b0 fs/inode.c:665
 iput_final fs/inode.c:1747 [inline]
 iput.part.0+0x50a/0x740 fs/inode.c:1773
 iput+0x5c/0x80 fs/inode.c:1763
 hfs_btree_close+0x282/0x390 fs/hfs/btree.c:158
 hfs_mdb_put+0xbf/0x380 fs/hfs/mdb.c:360
 generic_shutdown_super+0x158/0x480 fs/super.c:500
 kill_block_super+0xa1/0x100 fs/super.c:1407
 deactivate_locked_super+0x98/0x160 fs/super.c:331
 deactivate_super+0xb1/0xd0 fs/super.c:362
 cleanup_mnt+0x2ae/0x3d0 fs/namespace.c:1177
 task_work_run+0x16f/0x270 kernel/task_work.c:179
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
 exit_to_user_mode_prepare+0x210/0x240 kernel/entry/common.c:204
 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
 syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297
 __do_fast_syscall_32+0x72/0xf0 arch/x86/entry/common.c:181
 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:203
 entry_SYSENTER_compat_after_hwframe+0x70/0x82
RIP: 0023:0xf7fa7579
Code: b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00
RSP: 002b:00000000ffa4afdc EFLAGS: 00000292 ORIG_RAX: 0000000000000034
RAX: 0000000000000000 RBX: 00000000ffa4b080 RCX: 000000000000000a
RDX: 00000000f734e000 RSI: 0000000000000000 RDI: 00000000f72a2535
RBP: 00000000ffa4b080 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000292 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:put_page_testzero include/linux/mm.h:996 [inline]
RIP: 0010:folio_put_testzero include/linux/mm.h:1002 [inline]
RIP: 0010:folio_put include/linux/mm.h:1429 [inline]
RIP: 0010:__filemap_get_folio+0x8e2/0x990 mm/filemap.c:1937
Code: e8 b3 20 d3 ff 48 c7 c6 00 b2 56 8a 4c 89 e7 e8 d4 a6 0e 00 0f 0b e8 9d 20 d3 ff 48 c7 c6 00 b2 56 8a 4c 89 e7 e8 be a6 0e 00 <0f> 0b e8 87 20 d3 ff 4c 89 e7 49 c7 c4 f5 ff ff ff e8 f8 44 03 00
RSP: 0018:ffffc900038579a0 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000002 RCX: 0000000000000000
RDX: ffff888016a38000 RSI: ffffffff81b13d42 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000001 R09: ffffffff8e7a71d7
R10: fffffbfff1cf4e3a R11: 0000000000000000 R12: ffffea00007e5b80
R13: ffff8880734a4480 R14: 0000000000000000 R15: ffffea00007e5bb4
FS:  0000000000000000(0000) GS:ffff88802c900000(0063) knlGS:00000000581dd380
CS:  0010 DS: 002b ES: 002b CR0: 0000000080050033
CR2: 00000000f737c0c4 CR3: 0000000071e9b000 CR4: 0000000000350ee0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 2 bytes skipped:
   0:	10 06                	adc    %al,(%rsi)
   2:	03 74 b4 01          	add    0x1(%rsp,%rsi,4),%esi
   6:	10 07                	adc    %al,(%rdi)
   8:	03 74 b0 01          	add    0x1(%rax,%rsi,4),%esi
   c:	10 08                	adc    %cl,(%rax)
   e:	03 74 d8 01          	add    0x1(%rax,%rbx,8),%esi
  1e:	00 51 52             	add    %dl,0x52(%rcx)
  21:	55                   	push   %rbp
  22:	89 e5                	mov    %esp,%ebp
  24:	0f 34                	sysenter
  26:	cd 80                	int    $0x80
* 28:	5d                   	pop    %rbp <-- trapping instruction
  29:	5a                   	pop    %rdx
  2a:	59                   	pop    %rcx
  2b:	c3                   	retq
  2c:	90                   	nop
  2d:	90                   	nop
  2e:	90                   	nop
  2f:	90                   	nop
  30:	8d b4 26 00 00 00 00 	lea    0x0(%rsi,%riz,1),%esi
  37:	8d b4 26 00 00 00 00 	lea    0x0(%rsi,%riz,1),%esi

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/05/05 08:17 upstream 3c4aa4434377 518a39a6 .config console log report info ci-qemu-upstream-386 kernel BUG in __filemap_get_folio
* Struck through repros no longer work on HEAD.