gfs2: fsid=syz:syz.0: dirty_inode: glock -5 gfs2: fsid=syz:syz.0: G: s:EX n:2/24d2 f:yfaqob t:EX d:EX/0 a:0 v:0 r:2 m:20 p:56 gfs2: fsid=syz:syz.0: H: s:EX f:H e:0 p:5321 [syz.0.0] notify_change+0xbca/0xe90 fs/attr.c:552 ================================================================== BUG: KASAN: slab-out-of-bounds in pid_is_meaningful fs/gfs2/glock.c:1463 [inline] BUG: KASAN: slab-out-of-bounds in dump_holder fs/gfs2/glock.c:2291 [inline] BUG: KASAN: slab-out-of-bounds in gfs2_dump_glock+0x15ba/0x1b80 fs/gfs2/glock.c:2407 Read of size 2 at addr ffff8880127cc570 by task syz.0.0/5327 CPU: 0 UID: 0 PID: 5327 Comm: syz.0.0 Not tainted 6.14.0-rc3-syzkaller-00012-g2408a807bfc3 #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x169/0x550 mm/kasan/report.c:489 kasan_report+0x143/0x180 mm/kasan/report.c:602 pid_is_meaningful fs/gfs2/glock.c:1463 [inline] dump_holder fs/gfs2/glock.c:2291 [inline] gfs2_dump_glock+0x15ba/0x1b80 fs/gfs2/glock.c:2407 gfs2_dirty_inode+0x5a5/0x6b0 fs/gfs2/super.c:512 __mark_inode_dirty+0x2ee/0xe90 fs/fs-writeback.c:2515 generic_update_time+0xad/0xc0 fs/inode.c:2112 gfs2_update_time+0x13a/0x200 fs/gfs2/inode.c:2174 inode_update_time fs/inode.c:2124 [inline] touch_atime+0x27d/0x690 fs/inode.c:2197 file_accessed include/linux/fs.h:2601 [inline] filemap_read+0x100d/0x1260 mm/filemap.c:2763 gfs2_file_read_iter+0x132/0xc40 fs/gfs2/file.c:969 new_sync_read fs/read_write.c:484 [inline] vfs_read+0x975/0xb40 fs/read_write.c:565 ksys_read+0x18f/0x2b0 fs/read_write.c:708 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f64be38cde9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f64bf1ef038 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 00007f64be5a6160 RCX: 00007f64be38cde9 RDX: 0000000000002020 RSI: 00004000000008c0 RDI: 0000000000000006 RBP: 00007f64be40e2a0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007f64be5a6160 R15: 00007ffe8374b538 Allocated by task 5302: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:319 [inline] __kasan_slab_alloc+0x66/0x80 mm/kasan/common.c:345 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4115 [inline] slab_alloc_node mm/slub.c:4164 [inline] kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4171 dup_mm kernel/fork.c:1690 [inline] copy_mm+0x176/0x2160 kernel/fork.c:1752 copy_process+0x17d1/0x3cf0 kernel/fork.c:2403 kernel_clone+0x226/0x8e0 kernel/fork.c:2815 __do_sys_clone kernel/fork.c:2958 [inline] __se_sys_clone kernel/fork.c:2942 [inline] __x64_sys_clone+0x267/0x2e0 kernel/fork.c:2942 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff8880127cbc00 which belongs to the cache mm_struct of size 2392 The buggy address is located 24 bytes to the right of allocated 2392-byte region [ffff8880127cbc00, ffff8880127cc558) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x127c8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88801270ae81 anon flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801b04fb40 0000000000000000 dead000000000001 raw: 0000000000000000 00000000800c000c 00000000f5000000 ffff88801270ae81 head: 00fff00000000040 ffff88801b04fb40 0000000000000000 dead000000000001 head: 0000000000000000 00000000800c000c 00000000f5000000 ffff88801270ae81 head: 00fff00000000003 ffffea000049f201 ffffffffffffffff 0000000000000000 head: 0000000000000008 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4700, tgid 4700 (init), ts 23114977057, free_ts 22688759251 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f4/0x240 mm/page_alloc.c:1551 prep_new_page mm/page_alloc.c:1559 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3477 __alloc_frozen_pages_noprof+0x292/0x710 mm/page_alloc.c:4739 alloc_pages_mpol+0x311/0x660 mm/mempolicy.c:2270 alloc_slab_page mm/slub.c:2423 [inline] allocate_slab+0x8f/0x3a0 mm/slub.c:2587 new_slab mm/slub.c:2640 [inline] ___slab_alloc+0xc27/0x14a0 mm/slub.c:3826 __slab_alloc+0x58/0xa0 mm/slub.c:3916 __slab_alloc_node mm/slub.c:3991 [inline] slab_alloc_node mm/slub.c:4152 [inline] kmem_cache_alloc_noprof+0x268/0x380 mm/slub.c:4171 mm_alloc+0x23/0xc0 kernel/fork.c:1339 bprm_mm_init fs/exec.c:375 [inline] alloc_bprm+0x397/0xbe0 fs/exec.c:1575 do_execveat_common+0x1ae/0x710 fs/exec.c:1917 do_execve fs/exec.c:2040 [inline] __do_sys_execve fs/exec.c:2116 [inline] __se_sys_execve fs/exec.c:2111 [inline] __x64_sys_execve+0x92/0xb0 fs/exec.c:2111 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f page last free pid 1 tgid 1 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_frozen_pages+0xe0d/0x10e0 mm/page_alloc.c:2660 free_reserved_page+0xcc/0x120 mm/page_alloc.c:5737 free_reserved_area+0x51/0xf0 mm/page_alloc.c:5723 free_init_pages arch/x86/mm/init.c:932 [inline] free_kernel_image_pages arch/x86/mm/init.c:948 [inline] free_initmem+0x9a/0x110 arch/x86/mm/init.c:975 kernel_init+0x31/0x2b0 init/main.c:1466 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Memory state around the buggy address: ffff8880127cc400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880127cc480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880127cc500: 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc ^ ffff8880127cc580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880127cc600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================