================================================================== BUG: KASAN: global-out-of-bounds in pid_nr include/linux/pid.h:186 [inline] BUG: KASAN: global-out-of-bounds in dump_holder fs/gfs2/glock.c:2270 [inline] BUG: KASAN: global-out-of-bounds in gfs2_dump_glock+0x18f5/0x1ca0 fs/gfs2/glock.c:2382 Read of size 4 at addr ffffffff8a4bfc90 by task syz-executor244/5161 CPU: 0 PID: 5161 Comm: syz-executor244 Not tainted 6.4.0-rc2-next-20230515-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 print_address_description.constprop.0+0x2c/0x3c0 mm/kasan/report.c:351 print_report mm/kasan/report.c:462 [inline] kasan_report+0x11c/0x130 mm/kasan/report.c:571 pid_nr include/linux/pid.h:186 [inline] dump_holder fs/gfs2/glock.c:2270 [inline] gfs2_dump_glock+0x18f5/0x1ca0 fs/gfs2/glock.c:2382 gfs2_consist_inode_i+0x104/0x150 fs/gfs2/util.c:465 gfs2_dirent_scan+0x32a/0x3d0 fs/gfs2/dir.c:602 gfs2_dirent_search+0x47d/0x580 fs/gfs2/dir.c:850 gfs2_dir_search+0x8d/0x2d0 fs/gfs2/dir.c:1650 gfs2_lookupi+0x481/0x640 fs/gfs2/inode.c:332 __gfs2_lookup+0x83/0x280 fs/gfs2/inode.c:888 gfs2_atomic_open+0xde/0x250 fs/gfs2/inode.c:1289 atomic_open fs/namei.c:3355 [inline] lookup_open.isra.0+0xcdf/0x1400 fs/namei.c:3463 open_last_lookups fs/namei.c:3560 [inline] path_openat+0x975/0x2750 fs/namei.c:3788 do_filp_open+0x1ba/0x410 fs/namei.c:3818 do_sys_openat2+0x16d/0x4c0 fs/open.c:1356 do_sys_open fs/open.c:1372 [inline] __do_sys_openat fs/open.c:1388 [inline] __se_sys_openat fs/open.c:1383 [inline] __x64_sys_openat+0x143/0x1f0 fs/open.c:1383 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f0bf97724d9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 71 15 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f0bf22fd308 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f0bf9809798 RCX: 00007f0bf97724d9 RDX: 0000000000000300 RSI: 0000000020000540 RDI: 00000000ffffff9c RBP: 00007f0bf9809790 R08: 00007f0bf22fd700 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f0bf980979c R13: 0030656c69662f2e R14: 0032656c69662f2e R15: 0000000000022000 The buggy address belongs to the variable: __func__.0+0x26f0/0x2940 The buggy address belongs to the physical page: page:ffffea0000292fc0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xa4bf flags: 0xfff00000001000(reserved|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000001000 ffffea0000292fc8 ffffea0000292fc8 0000000000000000 raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner info is not present (never set?) Memory state around the buggy address: ffffffff8a4bfb80: 00 03 f9 f9 f9 f9 f9 f9 00 04 f9 f9 f9 f9 f9 f9 ffffffff8a4bfc00: 00 01 f9 f9 f9 f9 f9 f9 00 00 00 00 00 00 07 f9 >ffffffff8a4bfc80: f9 f9 f9 f9 00 00 00 02 f9 f9 f9 f9 00 00 00 03 ^ ffffffff8a4bfd00: f9 f9 f9 f9 00 00 00 05 f9 f9 f9 f9 00 00 00 00 ffffffff8a4bfd80: 00 01 f9 f9 f9 f9 f9 f9 00 00 00 00 02 f9 f9 f9 ==================================================================