================================================================== BUG: KASAN: slab-out-of-bounds in __swab64p include/uapi/linux/swab.h:202 [inline] BUG: KASAN: slab-out-of-bounds in __be64_to_cpup include/uapi/linux/byteorder/little_endian.h:75 [inline] BUG: KASAN: slab-out-of-bounds in cachefiles_set_object_xattr+0x713/0x7a0 fs/cachefiles/xattr.c:88 Read of size 8 at addr ffff88803debbf52 by task kworker/u33:49/7065 CPU: 0 UID: 0 PID: 7065 Comm: kworker/u33:49 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Workqueue: fscache fscache_cookie_worker Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x13d/0x4b0 mm/kasan/report.c:482 kasan_report+0xdf/0x1c0 mm/kasan/report.c:595 __swab64p include/uapi/linux/swab.h:202 [inline] __be64_to_cpup include/uapi/linux/byteorder/little_endian.h:75 [inline] cachefiles_set_object_xattr+0x713/0x7a0 fs/cachefiles/xattr.c:88 cachefiles_commit_object fs/cachefiles/interface.c:313 [inline] cachefiles_clean_up_object fs/cachefiles/interface.c:338 [inline] cachefiles_withdraw_cookie+0x8f4/0xc50 fs/cachefiles/interface.c:373 fscache_cookie_state_machine fs/netfs/fscache_cookie.c:780 [inline] fscache_cookie_worker+0x54f/0x1270 fs/netfs/fscache_cookie.c:835 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396 process_scheduled_works kernel/workqueue.c:3479 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 7065: kasan_save_stack+0x30/0x50 mm/kasan/common.c:57 kasan_save_track+0x14/0x30 mm/kasan/common.c:78 poison_kmalloc_redzone mm/kasan/common.c:398 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:415 kasan_kmalloc include/linux/kasan.h:263 [inline] __do_kmalloc_node mm/slub.c:5414 [inline] __kmalloc_noprof+0x32f/0x840 mm/slub.c:5439 _kmalloc_noprof include/linux/slab.h:995 [inline] cachefiles_set_object_xattr+0xef/0x7a0 fs/cachefiles/xattr.c:53 cachefiles_commit_object fs/cachefiles/interface.c:313 [inline] cachefiles_clean_up_object fs/cachefiles/interface.c:338 [inline] cachefiles_withdraw_cookie+0x8f4/0xc50 fs/cachefiles/interface.c:373 fscache_cookie_state_machine fs/netfs/fscache_cookie.c:780 [inline] fscache_cookie_worker+0x54f/0x1270 fs/netfs/fscache_cookie.c:835 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396 process_scheduled_works kernel/workqueue.c:3479 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 The buggy address belongs to the object at ffff88803debbf40 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 18 bytes inside of allocated 22-byte region [ffff88803debbf40, ffff88803debbf56) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x3debb flags: 0xfff00000000000(node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000000 ffff88801c042780 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000400040 00000000f5000000 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 0xd2820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 6981, tgid 6981 (kworker/0:7), ts 88645864545 set_page_owner include/linux/page_owner.h:33 [inline] post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1871 prep_new_page mm/page_alloc.c:1879 [inline] get_page_from_freelist+0x110d/0x35d0 mm/page_alloc.c:3943 __alloc_frozen_pages_noprof+0x2eb/0x3300 mm/page_alloc.c:5436 alloc_slab_page mm/slub.c:3347 [inline] allocate_slab mm/slub.c:3462 [inline] new_slab+0xa9/0x6e0 mm/slub.c:3513 refill_objects+0xe3/0x410 mm/slub.c:7410 refill_sheaf mm/slub.c:2885 [inline] __pcs_replace_empty_main+0x35e/0x650 mm/slub.c:4774 alloc_from_pcs mm/slub.c:4850 [inline] slab_alloc_node mm/slub.c:4984 [inline] __kmalloc_cache_noprof+0x4f4/0x6d0 mm/slub.c:5559 _kmalloc_noprof include/linux/slab.h:991 [inline] _kzalloc_noprof include/linux/slab.h:1312 [inline] ref_tracker_alloc+0x190/0x590 lib/ref_tracker.c:270 __netdev_tracker_alloc include/linux/netdevice.h:4528 [inline] netdev_hold include/linux/netdevice.h:4557 [inline] dst_init+0xda/0x5b0 net/core/dst.c:52 dst_alloc+0xbb/0x1a0 net/core/dst.c:94 ip6_dst_alloc net/ipv6/route.c:342 [inline] ip6_rt_pcpu_alloc net/ipv6/route.c:1423 [inline] rt6_make_pcpu_route net/ipv6/route.c:1472 [inline] ip6_pol_route+0x9fd/0x1310 net/ipv6/route.c:2330 pol_lookup_func include/net/ip6_fib.h:670 [inline] fib6_rule_lookup+0x52f/0x720 net/ipv6/fib6_rules.c:123 ip6_route_input_lookup net/ipv6/route.c:2363 [inline] ip6_route_input+0x662/0xc50 net/ipv6/route.c:2666 ip6_rcv_finish_core.isra.0+0x1b1/0x1260 net/ipv6/ip6_input.c:106 ip6_rcv_finish net/ipv6/ip6_input.c:117 [inline] NF_HOOK include/linux/netfilter.h:325 [inline] NF_HOOK include/linux/netfilter.h:319 [inline] ipv6_rcv+0x1e8/0x3d0 net/ipv6/ip6_input.c:351 __netif_receive_skb_one_core+0x12d/0x1e0 net/core/dev.c:6264 page last free pid 6981 tgid 6981 ts 88644005747 stack trace: reset_page_owner include/linux/page_owner.h:26 [inline] __free_pages_prepare mm/page_alloc.c:1418 [inline] __free_frozen_pages+0x79f/0x10f0 mm/page_alloc.c:2962 rcu_do_batch kernel/rcu/tree.c:2650 [inline] rcu_core+0x5f0/0x1260 kernel/rcu/tree.c:2919 handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645 do_softirq kernel/softirq.c:546 [inline] do_softirq+0xaf/0xf0 kernel/softirq.c:533 __local_bh_enable_ip+0xff/0x120 kernel/softirq.c:473 local_bh_enable include/linux/bottom_half.h:33 [inline] __alloc_skb+0x5db/0x710 net/core/skbuff.c:699 alloc_skb include/linux/skbuff.h:1384 [inline] mld_newpack.isra.0+0x18e/0xa20 net/ipv6/mcast.c:1810 add_grhead+0x299/0x340 net/ipv6/mcast.c:1921 add_grec+0x1389/0x1930 net/ipv6/mcast.c:2060 mld_send_cr net/ipv6/mcast.c:2185 [inline] mld_ifc_work+0x3c5/0xc10 net/ipv6/mcast.c:2739 process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396 process_scheduled_works kernel/workqueue.c:3479 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff88803debbe00: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc ffff88803debbe80: fa fb fb fb fc fc fc fc fa fb fb fb fc fc fc fc >ffff88803debbf00: fa fb fb fb fc fc fc fc 00 00 06 fc fc fc fc fc ^ ffff88803debbf80: 00 00 00 fc fc fc fc fc fa fb fb fb fc fc fc fc ffff88803debc000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================