syzbot


KASAN: user-memory-access Write in nilfs_bmap_lookup_at_level

Status: auto-obsoleted due to no activity on 2023/03/12 01:34
Reported-by: syzbot+2b9bdebf6a534556b7e1@syzkaller.appspotmail.com
First crash: 782d, last: 742d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in nilfs_bmap_lookup_at_level nilfs C 142 764d 784d 0/28 closed as dup on 2022/10/04 08:41

Sample crash report:
NILFS (loop1): segctord starting. Construction interval = 5 seconds, CP frequency < 30 seconds
==================================================================
BUG: KASAN: user-memory-access in atomic_inc include/asm-generic/atomic-instrumented.h:109 [inline]
BUG: KASAN: user-memory-access in __lock_acquire+0x251/0x3ff0 kernel/locking/lockdep.c:3308
Write of size 4 at addr 0000000100000137 by task syz-executor.1/5638

CPU: 0 PID: 5638 Comm: syz-executor.1 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 kasan_report_error.cold+0x15b/0x1b9 mm/kasan/report.c:352
 kasan_report+0x8f/0xa0 mm/kasan/report.c:412
 atomic_inc include/asm-generic/atomic-instrumented.h:109 [inline]
 __lock_acquire+0x251/0x3ff0 kernel/locking/lockdep.c:3308
NILFS (loop5): segctord starting. Construction interval = 5 seconds, CP frequency < 30 seconds
 lock_acquire+0x170/0x3c0 kernel/locking/lockdep.c:3908
 down_read+0x36/0x80 kernel/locking/rwsem.c:24
 nilfs_bmap_lookup_at_level+0x7b/0x3e0 fs/nilfs2/bmap.c:68
 nilfs_bmap_lookup fs/nilfs2/bmap.h:170 [inline]
 nilfs_mdt_submit_block.constprop.0+0x1a5/0xaa0 fs/nilfs2/mdt.c:142
 nilfs_mdt_read_block+0x96/0x3e0 fs/nilfs2/mdt.c:175
 nilfs_mdt_get_block+0xe6/0xd40 fs/nilfs2/mdt.c:250
 nilfs_palloc_get_block+0xc4/0x2b0 fs/nilfs2/alloc.c:216
 nilfs_palloc_get_entry_block+0x17b/0x230 fs/nilfs2/alloc.c:318
 nilfs_ifile_get_inode_block+0xbf/0x170 fs/nilfs2/ifile.c:143
 __nilfs_read_inode fs/nilfs2/inode.c:483 [inline]
 nilfs_iget+0x204/0x860 fs/nilfs2/inode.c:592
 nilfs_get_root_dentry+0x26/0x250 fs/nilfs2/super.c:908
 nilfs_fill_super fs/nilfs2/super.c:1082 [inline]
 nilfs_mount+0xac8/0xe70 fs/nilfs2/super.c:1321
 mount_fs+0xa3/0x310 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:2492 [inline]
 do_mount+0x115c/0x2f50 fs/namespace.c:2822
 ksys_mount+0xcf/0x130 fs/namespace.c:3038
 __do_sys_mount fs/namespace.c:3052 [inline]
 __se_sys_mount fs/namespace.c:3049 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3049
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fd498ee4b6a
Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 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:00007fd497455f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 00007fd498ee4b6a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fd497455fe0
RBP: 00007fd497456020 R08: 00007fd497456020 R09: 0000000020000000
R10: 0000000001000010 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 00007fd497455fe0 R15: 0000000020001940
==================================================================

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/11/12 01:33 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: user-memory-access Write in nilfs_bmap_lookup_at_level
2022/11/05 15:54 linux-4.19.y 3f8a27f9e27b 6d752409 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: user-memory-access Write in nilfs_bmap_lookup_at_level
2022/10/16 06:58 linux-4.19.y 3f8a27f9e27b 67cb024c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: user-memory-access Write in nilfs_bmap_lookup_at_level
2022/10/03 13:52 linux-4.19.y 3f8a27f9e27b feb56351 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 KASAN: user-memory-access Write in nilfs_bmap_lookup_at_level
2022/10/31 05:40 linux-4.19.y 3f8a27f9e27b 2a71366b .config console log report info [disk image] [vmlinux] ci2-linux-4-19 general protection fault in nilfs_bmap_lookup_at_level
* Struck through repros no longer work on HEAD.