EXT4-fs (loop5): mounted filesystem 00000000-0000-0000-0000-000000000000 without journal. Quota mode: none. ext4 filesystem being mounted at /root/syzkaller-testdir2966197779/syzkaller.o0Jebo/770/bus supports timestamps until 2038 (0x7fffffff) ================================================================== BUG: KASAN: slab-out-of-bounds in crc16+0x1fb/0x280 lib/crc16.c:58 Read of size 1 at addr ffff888021be1084 by task syz-executor.5/15691 CPU: 1 PID: 15691 Comm: syz-executor.5 Not tainted 6.2.0-rc8-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:306 [inline] print_report+0x163/0x4f0 mm/kasan/report.c:417 kasan_report+0x13a/0x170 mm/kasan/report.c:517 crc16+0x1fb/0x280 lib/crc16.c:58 ext4_group_desc_csum+0x90f/0xc50 fs/ext4/super.c:3187 ext4_group_desc_csum_set+0x19b/0x240 fs/ext4/super.c:3210 __ext4_new_inode+0x2626/0x4320 fs/ext4/ialloc.c:1227 ext4_create+0x279/0x550 fs/ext4/namei.c:2809 lookup_open fs/namei.c:3413 [inline] open_last_lookups fs/namei.c:3481 [inline] path_openat+0x12cb/0x2e40 fs/namei.c:3711 do_filp_open+0x234/0x490 fs/namei.c:3741 do_sys_openat2+0x13f/0x500 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_creat fs/open.c:1402 [inline] __se_sys_creat fs/open.c:1396 [inline] __x64_sys_creat+0x123/0x160 fs/open.c:1396 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7efda4e8c0f9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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:00007efda5cd7168 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007efda4fabf80 RCX: 00007efda4e8c0f9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000280 RBP: 00007efda4ee7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffceec713bf R14: 00007efda5cd7300 R15: 0000000000022000 Allocated by task 15145: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x80 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:371 [inline] __kasan_kmalloc+0x9b/0xb0 mm/kasan/common.c:380 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:968 [inline] __kmalloc+0xb3/0x1a0 mm/slab_common.c:981 kmalloc_array include/linux/slab.h:636 [inline] kcalloc include/linux/slab.h:667 [inline] ima_alloc_init_template+0x162/0x6d0 security/integrity/ima/ima_api.c:56 ima_store_measurement+0x289/0x6f0 security/integrity/ima/ima_api.c:367 process_measurement+0x1149/0x1c30 security/integrity/ima/ima_main.c:347 ima_file_check+0xec/0x170 security/integrity/ima/ima_main.c:519 do_open fs/namei.c:3559 [inline] path_openat+0x265d/0x2e40 fs/namei.c:3714 do_filp_open+0x234/0x490 fs/namei.c:3741 do_sys_openat2+0x13f/0x500 fs/open.c:1310 do_sys_open fs/open.c:1326 [inline] __do_sys_open fs/open.c:1334 [inline] __se_sys_open fs/open.c:1330 [inline] __x64_sys_open+0x225/0x270 fs/open.c:1330 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff888021be1000 which belongs to the cache kmalloc-192 of size 192 The buggy address is located 132 bytes inside of 192-byte region [ffff888021be1000, ffff888021be10c0) The buggy address belongs to the physical page: page:ffffea000086f840 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x21be1 flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff) raw: 00fff00000000200 ffff888012441a00 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000100010 00000001ffffffff 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 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 14, tgid 14 (kworker/0:1), ts 174271664288, free_ts 174258097421 prep_new_page mm/page_alloc.c:2531 [inline] get_page_from_freelist+0x3449/0x35c0 mm/page_alloc.c:4283 __alloc_pages+0x291/0x7e0 mm/page_alloc.c:5549 __alloc_pages_node include/linux/gfp.h:237 [inline] alloc_slab_page+0x59/0x160 mm/slub.c:1853 allocate_slab mm/slub.c:1998 [inline] new_slab+0x84/0x2f0 mm/slub.c:2051 ___slab_alloc+0xa85/0x10a0 mm/slub.c:3193 __slab_alloc mm/slub.c:3292 [inline] __slab_alloc_node mm/slub.c:3345 [inline] slab_alloc_node mm/slub.c:3442 [inline] __kmem_cache_alloc_node+0x1b8/0x2a0 mm/slub.c:3491 kmalloc_node_trace+0x27/0x60 mm/slab_common.c:1075 kmalloc_node include/linux/slab.h:606 [inline] kzalloc_node include/linux/slab.h:731 [inline] alloc_worker kernel/workqueue.c:1840 [inline] create_worker+0x11b/0x630 kernel/workqueue.c:1937 maybe_create_worker kernel/workqueue.c:2107 [inline] manage_workers kernel/workqueue.c:2159 [inline] worker_thread+0x498/0x1210 kernel/workqueue.c:2408 kthread+0x270/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1446 [inline] free_pcp_prepare mm/page_alloc.c:1496 [inline] free_unref_page_prepare+0xf3a/0x1040 mm/page_alloc.c:3369 free_unref_page+0x37/0x3f0 mm/page_alloc.c:3464 discard_slab mm/slub.c:2098 [inline] __unfreeze_partials+0x1b1/0x1f0 mm/slub.c:2637 put_cpu_partial+0x116/0x180 mm/slub.c:2713 qlist_free_all+0x22/0x60 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x15a/0x170 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:302 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook+0x68/0x390 mm/slab.h:761 slab_alloc_node mm/slub.c:3452 [inline] __kmem_cache_alloc_node+0x14c/0x2a0 mm/slub.c:3491 kmalloc_trace+0x2a/0x60 mm/slab_common.c:1062 kmalloc include/linux/slab.h:580 [inline] netdevice_queue_work drivers/infiniband/core/roce_gid_mgmt.c:643 [inline] netdevice_event+0x37d/0x950 drivers/infiniband/core/roce_gid_mgmt.c:802 notifier_call_chain kernel/notifier.c:87 [inline] raw_notifier_call_chain+0xd4/0x170 kernel/notifier.c:455 call_netdevice_notifiers_info net/core/dev.c:1944 [inline] call_netdevice_notifiers_extack net/core/dev.c:1982 [inline] call_netdevice_notifiers net/core/dev.c:1996 [inline] dev_set_mac_address+0x329/0x470 net/core/dev.c:8791 dev_set_mac_address_user+0x31/0x50 net/core/dev.c:8805 do_setlink+0x921/0x3e60 net/core/rtnetlink.c:2775 __rtnl_newlink net/core/rtnetlink.c:3590 [inline] rtnl_newlink+0x172d/0x2010 net/core/rtnetlink.c:3637 Memory state around the buggy address: ffff888021be0f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888021be1000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff888021be1080: 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888021be1100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff888021be1180: 04 fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================