RSP = 0x0000000000000000 RIP = 0x0000000000000000 RFLAGS=0x00071ac7 DR7 = 0x0000000000000400 EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue Sysenter RSP=0000000000000000 CS:RIP=0000:0000000000000000 ================================================================== BUG: KASAN: slab-out-of-bounds in squashfs_get_id+0x181/0x1a0 fs/squashfs/id.c:51 Read of size 8 at addr ffff8880aa142d48 by task syz-executor.1/10039 CPU: 0 PID: 10039 Comm: syz-executor.1 Not tainted 4.14.215-syzkaller #0 bridge0: port 4(veth5) entered blocking state Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x283 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x194 mm/kasan/report.c:351 kasan_report mm/kasan/report.c:409 [inline] __asan_report_load8_noabort+0x68/0x70 mm/kasan/report.c:430 bridge0: port 4(veth5) entered disabled state squashfs_get_id+0x181/0x1a0 fs/squashfs/id.c:51 squashfs_new_inode fs/squashfs/inode.c:68 [inline] squashfs_read_inode+0x1b6/0x19e0 fs/squashfs/inode.c:133 squashfs_fill_super+0x1501/0x1aa0 fs/squashfs/super.c:318 mount_bdev+0x2b3/0x360 fs/super.c:1134 mount_fs+0x92/0x2a0 fs/super.c:1237 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046 device veth5 entered promiscuous mode vfs_kern_mount fs/namespace.c:1036 [inline] do_new_mount fs/namespace.c:2549 [inline] do_mount+0xe53/0x2a00 fs/namespace.c:2879 SYSC_mount fs/namespace.c:3095 [inline] SyS_mount+0xa8/0x120 fs/namespace.c:3072 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x460c6a RSP: 002b:00007f7ab7cc7a78 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f7ab7cc7b10 RCX: 0000000000460c6a RDX: 0000000020000040 RSI: 0000000020000100 RDI: 00007f7ab7cc7ad0 RBP: 00007f7ab7cc7ad0 R08: 00007f7ab7cc7b10 R09: 0000000020000040 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000040 R13: 0000000020000100 R14: 0000000020000200 R15: 00000000200003c0 Allocated by task 10039: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 __do_kmalloc mm/slab.c:3720 [inline] __kmalloc+0x15a/0x400 mm/slab.c:3729 kmalloc include/linux/slab.h:493 [inline] squashfs_read_table+0x37/0x18d fs/squashfs/cache.c:426 squashfs_read_id_index_table+0x97/0xe0 fs/squashfs/id.c:90 squashfs_fill_super+0xc2c/0x1aa0 fs/squashfs/super.c:246 mount_bdev+0x2b3/0x360 fs/super.c:1134 mount_fs+0x92/0x2a0 fs/super.c:1237 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046 vfs_kern_mount fs/namespace.c:1036 [inline] do_new_mount fs/namespace.c:2549 [inline] do_mount+0xe53/0x2a00 fs/namespace.c:2879 SYSC_mount fs/namespace.c:3095 [inline] SyS_mount+0xa8/0x120 fs/namespace.c:3072 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb Freed by task 7992: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xc9/0x250 mm/slab.c:3815 aa_free_task_context+0xda/0x130 security/apparmor/context.c:54 apparmor_cred_free+0x34/0x70 security/apparmor/lsm.c:58 security_cred_free+0x71/0xb0 security/security.c:1003 put_cred_rcu+0xe3/0x300 kernel/cred.c:117 __rcu_reclaim kernel/rcu/rcu.h:195 [inline] rcu_do_batch kernel/rcu/tree.c:2699 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2929 [inline] rcu_process_callbacks+0x780/0x1180 kernel/rcu/tree.c:2946 __do_softirq+0x254/0xa1d kernel/softirq.c:288 The buggy address belongs to the object at ffff8880aa142d40 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 8 bytes inside of 32-byte region [ffff8880aa142d40, ffff8880aa142d60) The buggy address belongs to the page: page:ffffea0002a85080 count:1 mapcount:0 mapping:ffff8880aa142000 index:0xffff8880aa142fc1 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffff8880aa142000 ffff8880aa142fc1 000000010000003f raw: ffffea0002a8ae20 ffffea0002a687a0 ffff88813fe801c0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880aa142c00: 00 00 00 00 fc fc fc fc fb fb fb fb fc fc fc fc ffff8880aa142c80: 00 01 fc fc fc fc fc fc fb fb fb fb fc fc fc fc >ffff8880aa142d00: 00 00 00 07 fc fc fc fc 00 fc fc fc fc fc fc fc ^ ffff8880aa142d80: 00 00 00 01 fc fc fc fc fb fb fb fb fc fc fc fc ffff8880aa142e00: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ================================================================== CS: sel=0xf000, attr=0x0009b, limit=0x0000ffff, base=0x00000000ffff0000 DS: sel=0x0000, attr=0x00093, limit=0x0000ffff, base=0x0000000000000000 SS: sel=0x0000, attr=0x00093, limit=0x0000ffff, base=0x0000000000000000 ES: sel=0x0000, attr=0x00093, limit=0x0000ffff, base=0x0000000000000000 FS: sel=0x0000, attr=0x00093, limit=0x0000ffff, base=0x0000000000000000 GS: sel=0x0000, attr=0x00093, limit=0x0000ffff, base=0x0000000000000000 GDTR: limit=0x0000ffff, base=0x0000000000000000 LDTR: sel=0x0000, attr=0x00082, limit=0x0000ffff, base=0x0000000000000000 IDTR: limit=0x0000ffff, base=0x0000000000000000 TR: sel=0x0000, attr=0x0008b, limit=0x0000ffff, base=0x0000000000000000 EFER = 0x0000000000000000 PAT = 0x0007040600070406 DebugCtl = 0x0000000000000000 DebugExceptions = 0x0000000000000000 Interruptibility = 00000000 ActivityState = 00000000 *** Host State *** EXT4-fs (loop4): mounted filesystem without journal. Opts: ,errors=continue RIP = 0xffffffff81162b9e RSP = 0xffff8880597679b8 CS=0010 SS=0018 DS=0000 ES=0000 FS=0000 GS=0000 TR=0040 FSBase=00007fdc2161e700 GSBase=ffff8880ba400000 TRBase=fffffe0000003000 GDTBase=fffffe0000001000 IDTBase=fffffe0000000000 CR0=0000000080050033 CR3=00000000ab0ee000 CR4=00000000001426f0 Sysenter RSP=fffffe0000003000 CS:RIP=0010:ffffffff87401690 EFER = 0x0000000000000d01 PAT = 0x0407050600070106 *** Control State *** PinBased=0000003f CPUBased=b6a1edfa SecondaryExec=000000e3 EntryControls=0000d1ff ExitControls=002fefff ExceptionBitmap=00060042 PFECmask=00000000 PFECmatch=00000000