loop0: detected capacity change from 0 to 32768 ================================================================== BUG: KASAN: slab-out-of-bounds in dbAllocBits+0x617/0x630 fs/jfs/jfs_dmap.c:2249 Read of size 8 at addr ffff88802b0ffeb8 by task syz-executor.0/6142 CPU: 0 UID: 0 PID: 6142 Comm: syz-executor.0 Not tainted 6.16.0-rc4-syzkaller-gd0b3b7b22dfa #0 PREEMPT(full) 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+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:408 [inline] print_report+0xcd/0x680 mm/kasan/report.c:521 kasan_report+0xe0/0x110 mm/kasan/report.c:634 dbAllocBits+0x617/0x630 fs/jfs/jfs_dmap.c:2249 dbAllocDmap+0x5c/0x110 fs/jfs/jfs_dmap.c:2026 dbAllocNear fs/jfs/jfs_dmap.c:1247 [inline] dbAlloc+0x79c/0xac0 fs/jfs/jfs_dmap.c:832 ea_get+0xc7d/0x1330 fs/jfs/xattr.c:516 __jfs_setxattr+0x1eb/0x1030 fs/jfs/xattr.c:727 __jfs_set_acl+0x116/0x1b0 fs/jfs/acl.c:87 jfs_set_acl+0x254/0x330 fs/jfs/acl.c:115 set_posix_acl+0x25f/0x320 fs/posix_acl.c:954 vfs_set_acl+0x5a7/0x930 fs/posix_acl.c:1133 do_set_acl+0xd9/0x1a0 fs/posix_acl.c:1278 do_setxattr+0xeb/0x180 fs/xattr.c:633 filename_setxattr+0x16b/0x1d0 fs/xattr.c:665 path_setxattrat+0x1de/0x2a0 fs/xattr.c:713 __do_sys_lsetxattr fs/xattr.c:754 [inline] __se_sys_lsetxattr fs/xattr.c:750 [inline] __x64_sys_lsetxattr+0xc9/0x140 fs/xattr.c:750 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc47a07dca9 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:00007fc47ada50c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bd RAX: ffffffffffffffda RBX: 00007fc47a1abf80 RCX: 00007fc47a07dca9 RDX: 0000000020000180 RSI: 0000000020000040 RDI: 0000000020000000 RBP: 00007fc47a0c947e R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000024 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fc47a1abf80 R15: 00007ffecfbbbb78 Allocated by task 5650: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:377 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:394 kasan_kmalloc include/linux/kasan.h:260 [inline] __do_kmalloc_node mm/slub.c:4328 [inline] __kmalloc_node_track_caller_noprof+0x221/0x510 mm/slub.c:4347 kmalloc_reserve+0xef/0x2c0 net/core/skbuff.c:601 __alloc_skb+0x166/0x380 net/core/skbuff.c:670 alloc_skb include/linux/skbuff.h:1336 [inline] nlmsg_new include/net/netlink.h:1041 [inline] rtmsg_ifinfo_build_skb+0x81/0x280 net/core/rtnetlink.c:4390 rtmsg_ifinfo_event net/core/rtnetlink.c:4432 [inline] rtmsg_ifinfo_event net/core/rtnetlink.c:4422 [inline] rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4441 __dev_notify_flags+0x24c/0x2e0 net/core/dev.c:9493 netif_change_flags+0x108/0x160 net/core/dev.c:9526 dev_change_flags+0xba/0x250 net/core/dev_api.c:68 devinet_ioctl+0x11d5/0x1f50 net/ipv4/devinet.c:1200 inet_ioctl+0x3a7/0x3f0 net/ipv4/af_inet.c:1001 sock_do_ioctl+0x115/0x280 net/socket.c:1190 sock_ioctl+0x227/0x6b0 net/socket.c:1311 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl fs/ioctl.c:893 [inline] __x64_sys_ioctl+0x18b/0x210 fs/ioctl.c:893 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 5649: kasan_save_stack+0x33/0x60 mm/kasan/common.c:47 kasan_save_track+0x14/0x30 mm/kasan/common.c:68 kasan_save_free_info+0x3b/0x60 mm/kasan/generic.c:576 poison_slab_object mm/kasan/common.c:247 [inline] __kasan_slab_free+0x51/0x70 mm/kasan/common.c:264 kasan_slab_free include/linux/kasan.h:233 [inline] slab_free_hook mm/slub.c:2381 [inline] slab_free mm/slub.c:4643 [inline] kfree+0x2b4/0x4d0 mm/slub.c:4842 skb_kfree_head net/core/skbuff.c:1048 [inline] skb_free_head+0x114/0x210 net/core/skbuff.c:1060 skb_release_data+0x776/0x9c0 net/core/skbuff.c:1087 skb_release_all net/core/skbuff.c:1152 [inline] __kfree_skb net/core/skbuff.c:1166 [inline] consume_skb net/core/skbuff.c:1398 [inline] consume_skb+0xbf/0x100 net/core/skbuff.c:1392 netlink_recvmsg+0x5b9/0xa90 net/netlink/af_netlink.c:1961 sock_recvmsg_nosec net/socket.c:1017 [inline] sock_recvmsg+0x1f9/0x250 net/socket.c:1039 ____sys_recvmsg+0x218/0x6b0 net/socket.c:2786 ___sys_recvmsg+0x114/0x1a0 net/socket.c:2828 __sys_recvmsg+0x16a/0x220 net/socket.c:2861 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f The buggy address belongs to the object at ffff88802b0ff000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1720 bytes to the right of allocated 2048-byte region [ffff88802b0ff000, ffff88802b0ff800) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff88802b0ff000 pfn:0x2b0f8 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801b842f00 dead000000000100 dead000000000122 raw: ffff88802b0ff000 0000000080080005 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b842f00 dead000000000100 dead000000000122 head: ffff88802b0ff000 0000000080080005 00000000f5000000 0000000000000000 head: 00fff00000000003 ffffea0000ac3e01 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 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 5650, tgid 5650 (dhcpcd), ts 56371080561, free_ts 56224942197 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1704 prep_new_page mm/page_alloc.c:1712 [inline] get_page_from_freelist+0x1321/0x3890 mm/page_alloc.c:3669 __alloc_frozen_pages_noprof+0x261/0x23f0 mm/page_alloc.c:4959 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2419 alloc_slab_page mm/slub.c:2451 [inline] allocate_slab mm/slub.c:2619 [inline] new_slab+0x23b/0x330 mm/slub.c:2673 ___slab_alloc+0xd9c/0x1940 mm/slub.c:3859 __slab_alloc.constprop.0+0x56/0xb0 mm/slub.c:3949 __slab_alloc_node mm/slub.c:4024 [inline] slab_alloc_node mm/slub.c:4185 [inline] __do_kmalloc_node mm/slub.c:4327 [inline] __kmalloc_node_track_caller_noprof+0x2ee/0x510 mm/slub.c:4347 kmalloc_reserve+0xef/0x2c0 net/core/skbuff.c:601 __alloc_skb+0x166/0x380 net/core/skbuff.c:670 alloc_skb include/linux/skbuff.h:1336 [inline] nlmsg_new include/net/netlink.h:1041 [inline] rtmsg_ifinfo_build_skb+0x81/0x280 net/core/rtnetlink.c:4390 rtmsg_ifinfo_event net/core/rtnetlink.c:4432 [inline] rtmsg_ifinfo_event net/core/rtnetlink.c:4422 [inline] rtmsg_ifinfo+0x9f/0x1a0 net/core/rtnetlink.c:4441 register_netdevice+0x1bd9/0x2270 net/core/dev.c:11157 bpq_new_device drivers/net/hamradio/bpqether.c:481 [inline] bpq_device_event+0x39a/0x840 drivers/net/hamradio/bpqether.c:523 notifier_call_chain+0xb9/0x410 kernel/notifier.c:85 call_netdevice_notifiers_info+0xbe/0x140 net/core/dev.c:2230 page last free pid 72 tgid 72 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1248 [inline] __free_frozen_pages+0x7fe/0x1180 mm/page_alloc.c:2706 __folio_put+0x329/0x450 mm/swap.c:112 wg_destruct+0x2f2/0x3d0 drivers/net/wireguard/device.c:265 netdev_run_todo+0x78c/0x1320 net/core/dev.c:11405 default_device_exit_batch+0x858/0xaf0 net/core/dev.c:12645 ops_exit_list net/core/net_namespace.c:206 [inline] ops_undo_list+0x363/0xab0 net/core/net_namespace.c:253 cleanup_net+0x408/0x890 net/core/net_namespace.c:686 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3238 process_scheduled_works kernel/workqueue.c:3321 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3402 kthread+0x3c2/0x780 kernel/kthread.c:464 ret_from_fork+0x5d4/0x6f0 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff88802b0ffd80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88802b0ffe00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88802b0ffe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff88802b0fff00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88802b0fff80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================