audit: audit_backlog=65 > audit_backlog_limit=64 EXT4-fs: 2 callbacks suppressed EXT4-fs (sda1): re-mounted. Opts: sb=0x0000000000000000, ================================================================== EXT4-fs (sda1): re-mounted. Opts: noblock_validity, BUG: KASAN: use-after-free in ext4_data_block_valid+0x276/0x2d0 fs/ext4/block_validity.c:211 Read of size 8 at addr ffff8881d58abbb0 by task modprobe/18073 CPU: 1 PID: 18073 Comm: modprobe Not tainted 4.14.84+ #11 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0xb9/0x11b lib/dump_stack.c:53 print_address_description+0x60/0x22b mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report.cold.6+0x11b/0x2dd mm/kasan/report.c:409 ext4_data_block_valid+0x276/0x2d0 fs/ext4/block_validity.c:211 __check_block_validity.constprop.27+0xbc/0x200 fs/ext4/inode.c:402 ext4_map_blocks+0xc22/0x1560 fs/ext4/inode.c:592 ext4_getblk+0x31c/0x400 fs/ext4/inode.c:966 ext4_bread_batch+0x78/0x330 fs/ext4/inode.c:1036 ext4_find_entry+0x44c/0xcd0 fs/ext4/namei.c:1425 ext4_lookup+0x133/0x590 fs/ext4/namei.c:1557 lookup_slow+0x22b/0x440 fs/namei.c:1669 walk_component+0x6f0/0xc10 fs/namei.c:1798 lookup_last fs/namei.c:2266 [inline] path_lookupat.isra.10+0x1bc/0x890 fs/namei.c:2316 filename_lookup.part.18+0x177/0x370 fs/namei.c:2350 filename_lookup fs/namei.c:2343 [inline] user_path_at_empty+0x4b/0x80 fs/namei.c:2611 user_path_at include/linux/namei.h:57 [inline] vfs_statx+0xe1/0x180 fs/stat.c:185 vfs_stat include/linux/fs.h:3075 [inline] SYSC_newstat fs/stat.c:337 [inline] SyS_newstat+0x81/0xf0 fs/stat.c:333 do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x7ffae8ef4c65 RSP: 002b:00007ffff401c318 EFLAGS: 00000246 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 00007ffae91c0491 RCX: 00007ffae8ef4c65 RDX: 00007ffff401c410 RSI: 00007ffff401c410 RDI: 00007ffae91c0491 RBP: 00007ffae93c52f8 R08: 00007ffae91abef8 R09: 00007ffae8f48070 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000fffffffe R13: 00007ffff401c543 R14: 0000000000000010 R15: 0000000000000000 Allocated by task 1: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc.part.1+0x4f/0xd0 mm/kasan/kasan.c:551 slab_post_alloc_hook mm/slab.h:442 [inline] slab_alloc_node mm/slub.c:2723 [inline] slab_alloc mm/slub.c:2731 [inline] kmem_cache_alloc+0xe4/0x2b0 mm/slub.c:2736 add_system_zone+0x261/0x4d0 fs/ext4/block_validity.c:85 ext4_setup_system_zone+0x2e2/0x470 fs/ext4/block_validity.c:169 ext4_fill_super+0x6dcd/0xb690 fs/ext4/super.c:4309 mount_bdev+0x2ab/0x370 fs/super.c:1149 mount_fs+0x28f/0x31a fs/super.c:1255 vfs_kern_mount.part.9+0xce/0x4a0 fs/namespace.c:1056 vfs_kern_mount fs/namespace.c:1038 [inline] do_new_mount fs/namespace.c:2573 [inline] do_mount+0x404/0x26e0 fs/namespace.c:2903 SYSC_mount fs/namespace.c:3119 [inline] SyS_mount+0xe5/0x100 fs/namespace.c:3096 do_mount_root init/do_mounts.c:366 [inline] mount_block_root+0x378/0x727 init/do_mounts.c:395 prepare_namespace+0x1cf/0x20a init/do_mounts.c:600 kernel_init_freeable+0x382/0x39f init/main.c:1091 kernel_init+0xc/0x157 init/main.c:1000 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:402 Freed by task 18082: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xac/0x190 mm/kasan/kasan.c:524 slab_free_hook mm/slub.c:1389 [inline] slab_free_freelist_hook mm/slub.c:1410 [inline] slab_free mm/slub.c:2966 [inline] kmem_cache_free+0x12d/0x350 mm/slub.c:2988 ext4_release_system_zone+0x79/0x110 fs/ext4/block_validity.c:187 ext4_setup_system_zone+0x3a4/0x470 fs/ext4/block_validity.c:151 ext4_remount+0xf2e/0x1dc0 fs/ext4/super.c:5258 do_remount_sb2+0x2eb/0x5f0 fs/super.c:878 do_remount fs/namespace.c:2388 [inline] do_mount+0xfae/0x26e0 fs/namespace.c:2894 SYSC_mount fs/namespace.c:3119 [inline] SyS_mount+0xe5/0x100 fs/namespace.c:3096 do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289 entry_SYSCALL_64_after_hwframe+0x42/0xb7 The buggy address belongs to the object at ffff8881d58abb98 which belongs to the cache ext4_system_zone of size 40 The buggy address is located 24 bytes inside of 40-byte region [ffff8881d58abb98, ffff8881d58abbc0) The buggy address belongs to the page: page:ffffea0007562ac0 count:1 mapcount:0 mapping: (null) index:0xffff8881d58abb60 flags: 0x4000000000000100(slab) raw: 4000000000000100 0000000000000000 ffff8881d58abb60 0000000180490019 raw: dead000000000100 dead000000000200 ffff8881d907c200 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8881d58aba80: fb fb fb fb fb fc fc fb fb fb fb fb fc fc fb fb ffff8881d58abb00: fb fb fb fc fc fb fb fb fb fb fc fc fb fb fb fb >ffff8881d58abb80: fb fc fc fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff8881d58abc00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881d58abc80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ================================================================== EXT4-fs (sda1): re-mounted. Opts: grpjquota=, EXT4-fs (sda1): re-mounted. Opts: noblock_validity, EXT4-fs (sda1): re-mounted. Opts: grpjquota=, netlink: 11 bytes leftover after parsing attributes in process `syz-executor3'. netlink: 11 bytes leftover after parsing attributes in process `syz-executor3'. EXT4-fs (sda1): Unrecognized mount option "sb=À<00'iù…0000:0000" or missing value EXT4-fs (sda1): re-mounted. Opts: grpjquota=, EXT4-fs (sda1): Unrecognized mount option "sb=0x2020000000000000" or missing value EXT4-fs (sda1): Unrecognized mount option "sb=À<00'iù…0000:0000" or missing value EXT4-fs (sda1): Unrecognized mount option "sb=0x2020000000000000" or missing value netlink: 11 bytes leftover after parsing attributes in process `syz-executor3'. netlink: 11 bytes leftover after parsing attributes in process `syz-executor3'. netlink: 11 bytes leftover after parsing attributes in process `syz-executor3'. kauditd_printk_skb: 455 callbacks suppressed audit: type=1400 audit(1543398193.438:31012): avc: denied { map } for pid=18209 comm="blkid" path="/etc/ld.so.cache" dev="sda1" ino=2503 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 audit: type=1400 audit(1543398193.448:31013): avc: denied { map } for pid=18209 comm="blkid" path="/lib/x86_64-linux-gnu/libblkid.so.1.1.0" dev="sda1" ino=2825 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1