================================================================== 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:2258 [inline] BUG: KASAN: global-out-of-bounds in gfs2_dump_glock+0x19be/0x1c80 fs/gfs2/glock.c:2370 Read of size 4 at addr ffffffff8acc7d50 by task syz-executor.0/5866 CPU: 0 PID: 5866 Comm: syz-executor.0 Not tainted 6.7.0-rc3-syzkaller-g18d46e76d7c2 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xc4/0x620 mm/kasan/report.c:475 kasan_report+0xda/0x110 mm/kasan/report.c:588 pid_nr include/linux/pid.h:186 [inline] dump_holder fs/gfs2/glock.c:2258 [inline] gfs2_dump_glock+0x19be/0x1c80 fs/gfs2/glock.c:2370 gfs2_consist_inode_i+0x104/0x150 fs/gfs2/util.c:456 gfs2_dirent_scan+0x2f9/0x3c0 fs/gfs2/dir.c:602 gfs2_dirent_search+0x455/0x5c0 fs/gfs2/dir.c:850 gfs2_dir_search+0x98/0x2e0 fs/gfs2/dir.c:1650 gfs2_lookupi+0x4b6/0x6e0 fs/gfs2/inode.c:340 __gfs2_lookup+0xa1/0x290 fs/gfs2/inode.c:896 gfs2_atomic_open+0xd9/0x240 fs/gfs2/inode.c:1297 atomic_open fs/namei.c:3340 [inline] lookup_open.isra.0+0xc8e/0x13b0 fs/namei.c:3448 open_last_lookups fs/namei.c:3546 [inline] path_openat+0x922/0x2c50 fs/namei.c:3776 do_filp_open+0x1de/0x430 fs/namei.c:3809 do_sys_openat2+0x176/0x1e0 fs/open.c:1440 do_sys_open fs/open.c:1455 [inline] __do_sys_openat fs/open.c:1471 [inline] __se_sys_openat fs/open.c:1466 [inline] __x64_sys_openat+0x175/0x210 fs/open.c:1466 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x40/0x110 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7f831747cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f831825a0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f831759c050 RCX: 00007f831747cae9 RDX: 0000000000000300 RSI: 0000000020000540 RDI: ffffffffffffff9c RBP: 00007f83174c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000006e R14: 00007f831759c050 R15: 00007fff1e707108 The buggy address belongs to the variable: runnable_avg_yN_inv+0x10d0/0x1ee0 The buggy address belongs to the physical page: page:ffffea00002b31c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xacc7 flags: 0xfff00000004000(reserved|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000004000 ffffea00002b31c8 ffffea00002b31c8 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: ffffffff8acc7c00: 00 06 f9 f9 f9 f9 f9 f9 00 00 00 02 f9 f9 f9 f9 ffffffff8acc7c80: 00 00 00 00 04 f9 f9 f9 f9 f9 f9 f9 00 00 02 f9 >ffffffff8acc7d00: f9 f9 f9 f9 00 00 00 00 00 06 f9 f9 f9 f9 f9 f9 ^ ffffffff8acc7d80: 00 00 00 04 f9 f9 f9 f9 00 00 00 04 f9 f9 f9 f9 ffffffff8acc7e00: 00 00 04 f9 f9 f9 f9 f9 00 00 07 f9 f9 f9 f9 f9 ==================================================================