loop0: detected capacity change from 0 to 32768 ======================================================= WARNING: The mand mount option has been deprecated and and is ignored by this kernel. Remove the mand option from the mount to silence this warning. ======================================================= JBD2: Ignoring recovery information on journal ocfs2: Mounting device (7,0) on (node local, slot 0) with ordered data mode. ================================================================== BUG: KASAN: slab-out-of-bounds in ocfs2_find_smallest_chain fs/ocfs2/suballoc.c:413 [inline] BUG: KASAN: slab-out-of-bounds in ocfs2_block_group_alloc_contig fs/ocfs2/suballoc.c:430 [inline] BUG: KASAN: slab-out-of-bounds in ocfs2_block_group_alloc fs/ocfs2/suballoc.c:699 [inline] BUG: KASAN: slab-out-of-bounds in ocfs2_reserve_suballoc_bits+0xfe1/0x4e70 fs/ocfs2/suballoc.c:832 Read of size 4 at addr ffff8880436c5034 by task syz.0.0/5315 CPU: 0 UID: 0 PID: 5315 Comm: syz.0.0 Not tainted 6.13.0-rc5-syzkaller-00012-g0bc21e701a6f #0 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: <TASK> __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x241/0x360 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0x169/0x550 mm/kasan/report.c:489 kasan_report+0x143/0x180 mm/kasan/report.c:602 ocfs2_find_smallest_chain fs/ocfs2/suballoc.c:413 [inline] ocfs2_block_group_alloc_contig fs/ocfs2/suballoc.c:430 [inline] ocfs2_block_group_alloc fs/ocfs2/suballoc.c:699 [inline] ocfs2_reserve_suballoc_bits+0xfe1/0x4e70 fs/ocfs2/suballoc.c:832 ocfs2_reserve_new_metadata_blocks+0x41c/0x9c0 fs/ocfs2/suballoc.c:982 ocfs2_reserve_new_metadata fs/ocfs2/suballoc.c:1025 [inline] ocfs2_lock_allocators+0x2a9/0x630 fs/ocfs2/suballoc.c:2735 ocfs2_dio_end_io_write fs/ocfs2/aops.c:2345 [inline] ocfs2_dio_end_io+0x688/0x1250 fs/ocfs2/aops.c:2427 dio_complete+0x251/0x6b0 fs/direct-io.c:281 __blockdev_direct_IO+0x3eb6/0x4890 fs/direct-io.c:1303 ocfs2_direct_IO+0x255/0x2c0 fs/ocfs2/aops.c:2464 generic_file_direct_write+0x1e6/0x400 mm/filemap.c:3978 __generic_file_write_iter+0x126/0x230 mm/filemap.c:4142 ocfs2_file_write_iter+0x19af/0x2180 fs/ocfs2/file.c:2469 do_iter_readv_writev+0x600/0x880 vfs_writev+0x376/0xba0 fs/read_write.c:1050 do_pwritev fs/read_write.c:1146 [inline] __do_sys_pwritev2 fs/read_write.c:1204 [inline] __se_sys_pwritev2+0x196/0x2b0 fs/read_write.c:1195 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:0x7efe49b85d29 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:00007efe4a99f038 EFLAGS: 00000246 ORIG_RAX: 0000000000000148 RAX: ffffffffffffffda RBX: 00007efe49d75fa0 RCX: 00007efe49b85d29 RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000009 RBP: 00007efe49c01b08 R08: 0000000000000000 R09: 0000000000000003 R10: 0000000000007000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007efe49d75fa0 R15: 00007ffc5ca8a918 </TASK> Allocated by task 5017: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:319 [inline] __kasan_slab_alloc+0x66/0x80 mm/kasan/common.c:345 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4119 [inline] slab_alloc_node mm/slub.c:4168 [inline] kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4175 alloc_iova_mem drivers/iommu/iova.c:231 [inline] alloc_iova+0x9e/0x840 drivers/iommu/iova.c:259 alloc_iova_fast+0x448/0x890 drivers/iommu/iova.c:397 iommu_dma_alloc_iova+0x2df/0x4c0 drivers/iommu/dma-iommu.c:794 __iommu_dma_map+0x180/0x420 drivers/iommu/dma-iommu.c:868 iommu_dma_map_page+0x429/0x870 drivers/iommu/dma-iommu.c:1217 dma_map_page_attrs+0x268/0x8a0 kernel/dma/mapping.c:171 dma_map_single_attrs include/linux/dma-mapping.h:384 [inline] e1000_alloc_rx_buffers+0x2b1/0x6f0 drivers/net/ethernet/intel/e1000e/netdev.c:677 e1000_configure+0x3824/0x4210 drivers/net/ethernet/intel/e1000e/netdev.c:3755 e1000e_open+0x39f/0xb80 drivers/net/ethernet/intel/e1000e/netdev.c:4653 __dev_open+0x2d3/0x450 net/core/dev.c:1476 __dev_change_flags+0x1e2/0x6f0 net/core/dev.c:8949 dev_change_flags+0x8b/0x1a0 net/core/dev.c:9021 devinet_ioctl+0xcce/0x1ac0 net/ipv4/devinet.c:1208 inet_ioctl+0x3d7/0x4f0 net/ipv4/af_inet.c:1001 sock_do_ioctl+0x158/0x460 net/socket.c:1209 sock_ioctl+0x626/0x8e0 net/socket.c:1328 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:906 [inline] __se_sys_ioctl+0xf5/0x170 fs/ioctl.c:892 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 The buggy address belongs to the object at ffff8880436c5000 which belongs to the cache iommu_iova of size 40 The buggy address is located 12 bytes to the right of allocated 40-byte region [ffff8880436c5000, ffff8880436c5028) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x436c5 flags: 0x4fff00000000000(node=1|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 04fff00000000000 ffff88803055e640 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000400040 00000001f5000000 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 0x52820(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 5017, tgid 5017 (dhcpcd), ts 37893874146, free_ts 37741635220 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1f3/0x230 mm/page_alloc.c:1558 prep_new_page mm/page_alloc.c:1566 [inline] get_page_from_freelist+0x365c/0x37a0 mm/page_alloc.c:3476 __alloc_pages_noprof+0x292/0x710 mm/page_alloc.c:4753 alloc_pages_mpol_noprof+0x3e8/0x680 mm/mempolicy.c:2269 alloc_slab_page+0x6a/0x110 mm/slub.c:2423 allocate_slab+0x5a/0x2b0 mm/slub.c:2589 new_slab mm/slub.c:2642 [inline] ___slab_alloc+0xc27/0x14a0 mm/slub.c:3830 __slab_alloc+0x58/0xa0 mm/slub.c:3920 __slab_alloc_node mm/slub.c:3995 [inline] slab_alloc_node mm/slub.c:4156 [inline] kmem_cache_alloc_noprof+0x268/0x380 mm/slub.c:4175 alloc_iova_mem drivers/iommu/iova.c:231 [inline] alloc_iova+0x9e/0x840 drivers/iommu/iova.c:259 alloc_iova_fast+0x448/0x890 drivers/iommu/iova.c:397 iommu_dma_alloc_iova+0x2df/0x4c0 drivers/iommu/dma-iommu.c:794 __iommu_dma_map+0x180/0x420 drivers/iommu/dma-iommu.c:868 iommu_dma_map_page+0x429/0x870 drivers/iommu/dma-iommu.c:1217 dma_map_page_attrs+0x268/0x8a0 kernel/dma/mapping.c:171 dma_map_single_attrs include/linux/dma-mapping.h:384 [inline] e1000_alloc_rx_buffers+0x2b1/0x6f0 drivers/net/ethernet/intel/e1000e/netdev.c:677 page last free pid 4726 tgid 4726 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1127 [inline] free_unref_page+0xd3f/0x1010 mm/page_alloc.c:2659 __slab_free+0x2c2/0x380 mm/slub.c:4524 qlink_free mm/kasan/quarantine.c:163 [inline] qlist_free_all+0x9a/0x140 mm/kasan/quarantine.c:179 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:286 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:329 kasan_slab_alloc include/linux/kasan.h:250 [inline] slab_post_alloc_hook mm/slub.c:4119 [inline] slab_alloc_node mm/slub.c:4168 [inline] kmem_cache_alloc_noprof+0x1d9/0x380 mm/slub.c:4175 getname_flags+0xb7/0x540 fs/namei.c:139 do_sys_openat2+0xd2/0x1d0 fs/open.c:1396 do_sys_open fs/open.c:1417 [inline] __do_sys_openat fs/open.c:1433 [inline] __se_sys_openat fs/open.c:1428 [inline] __x64_sys_openat+0x247/0x2a0 fs/open.c:1428 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 Memory state around the buggy address: ffff8880436c4f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880436c4f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8880436c5000: 00 00 00 00 00 fc fc fc 00 00 00 00 00 fc fc fc ^ ffff8880436c5080: 00 00 00 00 00 fc fc fc 00 00 00 00 00 fc fc fc ffff8880436c5100: 00 00 00 00 00 fc fc fc 00 00 00 00 00 fc fc fc ==================================================================