audit: type=1400 audit(1541110369.952:41788): avc: denied { map } for pid=6026 comm="blkid" path="/lib/x86_64-linux-gnu/ld-2.13.so" dev="sda1" ino=2668 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:object_r:file_t:s0 tclass=file permissive=1 ================================================================== BUG: KASAN: slab-out-of-bounds in memset include/linux/string.h:337 [inline] BUG: KASAN: slab-out-of-bounds in __ext4_expand_extra_isize+0x16f/0x240 fs/ext4/inode.c:5896 Write of size 50331616 at addr ffff8801b057e2a0 by task rs:main Q:Reg/5680 EXT4-fs (sda1): re-mounted. Opts: debug_want_extra_isize=0x0000000003000000, CPU: 1 PID: 5680 Comm: rs:main Q:Reg Not tainted 4.19.0+ #93 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+0x244/0x39d lib/dump_stack.c:113 print_address_description.cold.7+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.8+0x242/0x309 mm/kasan/report.c:412 check_memory_region_inline mm/kasan/kasan.c:260 [inline] check_memory_region+0x13e/0x1b0 mm/kasan/kasan.c:267 memset+0x23/0x40 mm/kasan/kasan.c:285 memset include/linux/string.h:337 [inline] __ext4_expand_extra_isize+0x16f/0x240 fs/ext4/inode.c:5896 ext4_try_to_expand_extra_isize fs/ext4/inode.c:5948 [inline] ext4_mark_inode_dirty+0x8f9/0xb20 fs/ext4/inode.c:6024 ext4_dirty_inode+0x97/0xc0 fs/ext4/inode.c:6058 __mark_inode_dirty+0x7c3/0x1510 fs/fs-writeback.c:2122 mark_inode_dirty include/linux/fs.h:2101 [inline] __generic_write_end+0x320/0x400 fs/buffer.c:2117 generic_write_end+0x6c/0x90 fs/buffer.c:2162 ext4_da_write_end+0x2e0/0xcd0 fs/ext4/inode.c:3203 generic_perform_write+0x4ca/0x6a0 mm/filemap.c:3059 __generic_file_write_iter+0x26e/0x630 mm/filemap.c:3173 ext4_file_write_iter+0x390/0x1420 fs/ext4/file.c:266 call_write_iter include/linux/fs.h:1839 [inline] new_sync_write fs/read_write.c:474 [inline] __vfs_write+0x6b8/0x9f0 fs/read_write.c:487 vfs_write+0x1fc/0x560 fs/read_write.c:549 ksys_write+0x101/0x260 fs/read_write.c:598 __do_sys_write fs/read_write.c:610 [inline] __se_sys_write fs/read_write.c:607 [inline] __x64_sys_write+0x73/0xb0 fs/read_write.c:607 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x7fc3db40819d Code: d1 20 00 00 75 10 b8 01 00 00 00 0f 05 48 3d 01 f0 ff ff 73 31 c3 48 83 ec 08 e8 be fa ff ff 48 89 04 24 b8 01 00 00 00 0f 05 <48> 8b 3c 24 48 89 c2 e8 07 fb ff ff 48 89 d0 48 83 c4 08 48 3d 01 RSP: 002b:00007fc3d99a9000 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00000000000000f5 RCX: 00007fc3db40819d RDX: 00000000000000f5 RSI: 0000000000ebfa90 RDI: 0000000000000005 RBP: 0000000000ebfa90 R08: 0000000000ebfb75 R09: 00007fc3dad853f7 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 00007fc3d99a9480 R14: 0000000000000002 R15: 0000000000ebf890 The buggy address belongs to the page: page:ffffea0006c15f80 count:2 mapcount:0 mapping:ffff8801cc470658 index:0x427 flags: 0x2fffc000000203a(referenced|dirty|lru|active|private) raw: 02fffc000000203a ffffea0006c6a4c8 ffffea0006ce6108 ffff8801cc470658 raw: 0000000000000427 ffff8801bc688a80 00000002ffffffff ffff8801d9a68dc0 page dumped because: kasan: bad access detected page->mem_cgroup:ffff8801d9a68dc0 Memory state around the buggy address: ffff8801b07fff00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8801b07fff80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff8801b0800000: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ^ ffff8801b0800080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801b0800100: fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ================================================================== BUG: unable to handle kernel paging request[ 1540.602598] BUG: unable to handle kernel NULL pointer dereference at 0000000000000000 PGD 1c2257067 P4D 1c2257067 PUD 1c5ae0067 PMD 0 Thread overran stack, or stack corrupted Oops: 0010 [#1] PREEMPT SMP KASAN CPU: 1 PID: 30791 Comm: syz-executor2 Tainted: G B 4.19.0+ #93 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010: (null) Code: Bad RIP value. RSP: 0018:ffff8801b2e7e1c8 EFLAGS: 00010002 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 00000000000003fd RSI: ffffffff83e2cf01 RDI: ffffffff8bae6218 RBP: 0000000000000000 R08: ffff88018d56a6c0 R09: 0000000000000001 R10: ffffed00365cfc36 R11: ffff88018d56a6c0 R12: 0000000000000000 R13: 0000000000000020 R14: 0000000000000000 R15: fffffbfff175cc45 FS: 00007fa6c6efd700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001c4578000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: Modules linked in: CR2: 0000000000000000 ---[ end trace e91e659a22d6496a ]--- RIP: 0010: (null) Code: Bad RIP value. RSP: 0018:ffff8801b2e7e1c8 EFLAGS: 00010002 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 00000000000003fd RSI: ffffffff83e2cf01 RDI: ffffffff8bae6218 RBP: 0000000000000000 R08: ffff88018d56a6c0 R09: 0000000000000001 R10: ffffed00365cfc36 R11: ffff88018d56a6c0 R12: 0000000000000000 R13: 0000000000000020 R14: 0000000000000000 R15: fffffbfff175cc45 FS: 00007fa6c6efd700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 00000001c4578000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400