EXT4-fs (loop5): bad geometry: first data block 16515071 is beyond end of filesystem (1080) EXT4-fs (loop3): ext4_check_descriptors: Block bitmap for group 0 overlaps superblock net_ratelimit: 31 callbacks suppressed protocol 88fb is buggy, dev hsr_slave_0 ================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:193 [inline] BUG: KASAN: use-after-free in dev_queue_xmit_nit+0x896/0xa10 net/core/dev.c:2007 Read of size 8 at addr ffff8880526eeb70 by task udevd/6314 EXT4-fs (loop3): ext4_check_descriptors: Inode bitmap for group 0 overlaps superblock CPU: 0 PID: 6314 Comm: udevd Not tainted 4.19.83 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x172/0x1f0 lib/dump_stack.c:113 EXT4-fs (loop3): ext4_check_descriptors: Inode table for group 0 overlaps superblock print_address_description.cold+0x7c/0x20d mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report mm/kasan/report.c:412 [inline] kasan_report.cold+0x8c/0x2ba mm/kasan/report.c:396 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 __read_once_size include/linux/compiler.h:193 [inline] dev_queue_xmit_nit+0x896/0xa10 net/core/dev.c:2007 xmit_one net/core/dev.c:3253 [inline] dev_hard_start_xmit+0xa7/0x980 net/core/dev.c:3273 __dev_queue_xmit+0x2704/0x2fe0 net/core/dev.c:3843 dev_queue_xmit+0x18/0x20 net/core/dev.c:3876 hsr_xmit net/hsr/hsr_forward.c:237 [inline] hsr_forward_do net/hsr/hsr_forward.c:295 [inline] hsr_forward_skb+0xd2e/0x1c10 net/hsr/hsr_forward.c:373 send_hsr_supervision_frame+0x8c8/0xf30 net/hsr/hsr_device.c:319 hsr_announce+0x12f/0x3b0 net/hsr/hsr_device.c:348 call_timer_fn+0x18d/0x720 kernel/time/timer.c:1326 expire_timers kernel/time/timer.c:1363 [inline] __run_timers kernel/time/timer.c:1684 [inline] __run_timers kernel/time/timer.c:1652 [inline] run_timer_softirq+0x64f/0x16a0 kernel/time/timer.c:1697 __do_softirq+0x25c/0x921 kernel/softirq.c:292 invoke_softirq kernel/softirq.c:372 [inline] irq_exit+0x180/0x1d0 kernel/softirq.c:412 exiting_irq arch/x86/include/asm/apic.h:536 [inline] smp_apic_timer_interrupt+0x13b/0x550 arch/x86/kernel/apic/apic.c:1094 apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:893 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:789 [inline] RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:160 [inline] RIP: 0010:_raw_spin_unlock_irqrestore+0x95/0xe0 kernel/locking/spinlock.c:184 Code: 48 c7 c0 88 47 72 88 48 ba 00 00 00 00 00 fc ff df 48 c1 e8 03 80 3c 10 00 75 39 48 83 3d da 96 80 01 00 74 24 48 89 df 57 9d <0f> 1f 44 00 00 bf 01 00 00 00 e8 0c d9 56 fa 65 8b 05 05 3d 10 79 RSP: 0018:ffff88804f12f9d8 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff13 RAX: 1ffffffff10e48f1 RBX: 0000000000000282 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: ffff8880a1828ec0 RDI: 0000000000000282 RBP: ffff88804f12f9e8 R08: ffff8880a1828640 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff887a0f18 R13: 0000000000000282 R14: ffffffff887a0f60 R15: ffffffff8879fc00 swake_up_one+0x4d/0x60 kernel/sched/swait.c:41 EXT4-fs (loop3): mounted filesystem without journal. Opts: ,errors=continue rcu_gp_kthread_wake+0x8d/0xd0 kernel/rcu/tree.c:1712 rcu_report_qs_rsp+0x100/0x160 kernel/rcu/tree.c:2265 rcu_report_unblock_qs_rnp kernel/rcu/tree.c:2372 [inline] rcu_read_unlock_special+0xa55/0xea0 kernel/rcu/tree_plugin.h:585 __rcu_read_unlock+0x161/0x170 kernel/rcu/tree_plugin.h:428 rcu_read_unlock include/linux/rcupdate.h:680 [inline] sock_def_readable+0x1ba/0x4f0 net/core/sock.c:2701 unix_dgram_sendmsg+0xc7c/0x11f0 net/unix/af_unix.c:1814 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:632 __sys_sendto+0x262/0x380 net/socket.c:1787 __do_sys_sendto net/socket.c:1799 [inline] __se_sys_sendto net/socket.c:1795 [inline] __x64_sys_sendto+0xe1/0x1a0 net/socket.c:1795 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fb9c1faa282 Code: 48 83 c8 ff eb ea 90 90 53 48 83 ec 20 8b 05 81 d3 2a 00 85 c0 75 21 45 31 c9 45 31 c0 4c 63 d1 48 63 ff b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 61 48 83 c4 20 5b c3 48 89 54 24 08 89 0c 24 EXT4-fs (loop5): bad geometry: first data block 16515071 is beyond end of filesystem (1080) RSP: 002b:00007fffd8e0f7e0 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 0000000001186a10 RCX: 00007fb9c1faa282 RDX: 0000000000000008 RSI: 00007fffd8e0f830 RDI: 0000000000000009 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001 R13: 00000000011b46f0 R14: 000000000117c030 R15: 000000000000000b Allocated by task 17907: save_stack+0x45/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc mm/kasan/kasan.c:553 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:531 __do_kmalloc mm/slab.c:3727 [inline] __kmalloc+0x15d/0x750 mm/slab.c:3736 kmalloc include/linux/slab.h:520 [inline] sk_prot_alloc+0x19c/0x2e0 net/core/sock.c:1466 sk_alloc+0x39/0xf70 net/core/sock.c:1520 packet_create+0x11e/0x860 net/packet/af_packet.c:3228 __sock_create+0x3d8/0x730 net/socket.c:1276 sock_create net/socket.c:1316 [inline] __sys_socket+0x103/0x220 net/socket.c:1346 __do_sys_socket net/socket.c:1355 [inline] __se_sys_socket net/socket.c:1353 [inline] __x64_sys_socket+0x73/0xb0 net/socket.c:1353 do_syscall_64+0xfd/0x620 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 17843: save_stack+0x45/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3503 [inline] kfree+0xcf/0x220 mm/slab.c:3822 sk_prot_free net/core/sock.c:1503 [inline] __sk_destruct+0x4a2/0x680 net/core/sock.c:1583 sk_destruct+0xc8/0x100 net/core/sock.c:1598 __sk_free+0xce/0x300 net/core/sock.c:1609 sk_free+0x42/0x50 net/core/sock.c:1620 sock_put include/net/sock.h:1702 [inline] packet_release+0x927/0xc60 net/packet/af_packet.c:3057 __sock_release+0xce/0x2a0 net/socket.c:579 sock_close+0x1b/0x30 net/socket.c:1140 __fput+0x2dd/0x8b0 fs/file_table.c:278 ____fput+0x16/0x20 fs/file_table.c:309 task_work_run+0x145/0x1c0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x273/0x2c0 arch/x86/entry/common.c:167 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x53d/0x620 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff8880526ee380 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 2032 bytes inside of 2048-byte region [ffff8880526ee380, ffff8880526eeb80) The buggy address belongs to the page: page:ffffea000149bb80 count:1 mapcount:0 mapping:ffff88812c3f0c40 index:0xffff8880526ef480 compound_mapcount: 0 flags: 0x1fffc0000008100(slab|head) raw: 01fffc0000008100 ffffea0001680d08 ffffea00025eb108 ffff88812c3f0c40 raw: ffff8880526ef480 ffff8880526ee380 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880526eea00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880526eea80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8880526eeb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880526eeb80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880526eec00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================