================================================================== BUG: KASAN: slab-out-of-bounds in pid_nr include/linux/pid.h:179 [inline] BUG: KASAN: slab-out-of-bounds in dump_holder fs/gfs2/glock.c:2338 [inline] BUG: KASAN: slab-out-of-bounds in gfs2_dump_glock+0x17bb/0x1bb0 fs/gfs2/glock.c:2450 Read of size 4 at addr ffff8880176dfbe0 by task syz.0.190/6447 CPU: 0 PID: 6447 Comm: syz.0.190 Not tainted 6.10.0-syzkaller-04472-g51835949dda3 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 pid_nr include/linux/pid.h:179 [inline] dump_holder fs/gfs2/glock.c:2338 [inline] gfs2_dump_glock+0x17bb/0x1bb0 fs/gfs2/glock.c:2450 gfs2_consist_inode_i+0xf5/0x110 fs/gfs2/util.c:457 gfs2_dirent_scan+0x52b/0x670 gfs2_dirent_search+0x30e/0x8c0 fs/gfs2/dir.c:853 gfs2_dir_search+0xb2/0x2f0 fs/gfs2/dir.c:1653 gfs2_lookupi+0x461/0x5e0 fs/gfs2/inode.c:340 __gfs2_lookup+0xa4/0x280 fs/gfs2/inode.c:896 gfs2_atomic_open+0x9e/0x230 fs/gfs2/inode.c:1297 atomic_open fs/namei.c:3441 [inline] lookup_open fs/namei.c:3549 [inline] open_last_lookups fs/namei.c:3647 [inline] path_openat+0xe8d/0x3470 fs/namei.c:3883 do_filp_open+0x235/0x490 fs/namei.c:3913 do_sys_openat2+0x13e/0x1d0 fs/open.c:1416 do_sys_open fs/open.c:1431 [inline] __do_sys_openat fs/open.c:1447 [inline] __se_sys_openat fs/open.c:1442 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1442 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:0x7f56b9375ad9 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:00007f56ba0e1048 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f56b9503f60 RCX: 00007f56b9375ad9 RDX: 0000000000000000 RSI: 0000000020004280 RDI: ffffffffffffff9c RBP: 00007f56b93e4e5d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f56b9503f60 R15: 00007ffce65c2708 Allocated by task 5089: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:370 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:387 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slub.c:4123 [inline] kmalloc_node_track_caller_noprof+0x225/0x440 mm/slub.c:4143 kmemdup_noprof+0x2a/0x60 mm/util.c:133 sctp_addr_wq_mgmt+0x2f8/0x720 net/sctp/protocol.c:756 sctp_inet6addr_event+0x566/0x730 net/sctp/ipv6.c:94 notifier_call_chain+0x19f/0x3e0 kernel/notifier.c:93 atomic_notifier_call_chain+0xdb/0x180 kernel/notifier.c:231 ipv6_add_addr+0xde0/0x1090 net/ipv6/addrconf.c:1180 addrconf_add_linklocal+0x36c/0xa30 net/ipv6/addrconf.c:3315 addrconf_addr_gen+0x510/0xbb0 addrconf_dev_config net/ipv6/addrconf.c:3492 [inline] addrconf_init_auto_addrs+0x96a/0xeb0 net/ipv6/addrconf.c:3570 addrconf_notify+0xaff/0x1020 net/ipv6/addrconf.c:3743 notifier_call_chain+0x19f/0x3e0 kernel/notifier.c:93 netdev_state_change+0x11f/0x1a0 net/core/dev.c:1376 linkwatch_do_dev+0x112/0x170 net/core/link_watch.c:177 __linkwatch_run_queue+0x44f/0x6c0 net/core/link_watch.c:234 linkwatch_event+0x4c/0x60 net/core/link_watch.c:277 process_one_work kernel/workqueue.c:3231 [inline] process_scheduled_works+0xa2c/0x1830 kernel/workqueue.c:3312 worker_thread+0x86d/0xd40 kernel/workqueue.c:3390 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Freed by task 6144: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:579 poison_slab_object+0xe0/0x150 mm/kasan/common.c:240 __kasan_slab_free+0x37/0x60 mm/kasan/common.c:256 kasan_slab_free include/linux/kasan.h:184 [inline] slab_free_hook mm/slub.c:2196 [inline] slab_free mm/slub.c:4438 [inline] kfree+0x149/0x360 mm/slub.c:4559 sctp_addr_wq_timeout_handler+0x2e6/0x470 net/sctp/protocol.c:685 call_timer_fn+0x18e/0x650 kernel/time/timer.c:1792 expire_timers kernel/time/timer.c:1843 [inline] __run_timers kernel/time/timer.c:2417 [inline] __run_timer_base+0x66a/0x8e0 kernel/time/timer.c:2428 run_timer_base kernel/time/timer.c:2437 [inline] run_timer_softirq+0xb7/0x170 kernel/time/timer.c:2447 handle_softirqs+0x2c4/0x970 kernel/softirq.c:554 __do_softirq kernel/softirq.c:588 [inline] invoke_softirq kernel/softirq.c:428 [inline] __irq_exit_rcu+0xf4/0x1c0 kernel/softirq.c:637 irq_exit_rcu+0x9/0x30 kernel/softirq.c:649 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1043 [inline] sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1043 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 The buggy address belongs to the object at ffff8880176dfb80 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 32 bytes to the right of allocated 64-byte region [ffff8880176dfb80, ffff8880176dfbc0) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff8880176df400 pfn:0x176df flags: 0xfff00000000200(workingset|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffefff(slab) raw: 00fff00000000200 ffff8880150418c0 ffffea0000b4c550 ffffea0000a68010 raw: ffff8880176df400 000000000020001b 00000001ffffefff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x252800(GFP_NOWAIT|__GFP_NORETRY|__GFP_COMP|__GFP_THISNODE), pid 2, tgid 2 (kthreadd), ts 2842279953, free_ts 0 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1473 prep_new_page mm/page_alloc.c:1481 [inline] get_page_from_freelist+0x2e4c/0x2f10 mm/page_alloc.c:3425 __alloc_pages_noprof+0x256/0x6c0 mm/page_alloc.c:4683 __alloc_pages_node_noprof include/linux/gfp.h:269 [inline] alloc_pages_node_noprof include/linux/gfp.h:296 [inline] alloc_slab_page+0x5f/0x120 mm/slub.c:2265 allocate_slab+0x5a/0x2f0 mm/slub.c:2428 new_slab mm/slub.c:2481 [inline] ___slab_alloc+0xcd1/0x14b0 mm/slub.c:3667 __slab_alloc+0x58/0xa0 mm/slub.c:3757 __slab_alloc_node mm/slub.c:3810 [inline] slab_alloc_node mm/slub.c:3990 [inline] kmalloc_node_trace_noprof+0x20c/0x300 mm/slub.c:4162 kmalloc_node_noprof include/linux/slab.h:677 [inline] __get_vm_area_node+0x113/0x270 mm/vmalloc.c:3108 __vmalloc_node_range_noprof+0x3bc/0x1460 mm/vmalloc.c:3800 alloc_thread_stack_node kernel/fork.c:311 [inline] dup_task_struct+0x444/0x8c0 kernel/fork.c:1111 copy_process+0x5d1/0x3dc0 kernel/fork.c:2203 kernel_clone+0x223/0x870 kernel/fork.c:2780 kernel_thread+0x1bc/0x240 kernel/fork.c:2842 create_kthread kernel/kthread.c:412 [inline] kthreadd+0x60d/0x810 kernel/kthread.c:765 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 page_owner free stack trace missing Memory state around the buggy address: ffff8880176dfa80: 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc ffff8880176dfb00: 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc fc >ffff8880176dfb80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff8880176dfc00: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc ffff8880176dfc80: fa fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================