squashfs: SQUASHFS error: unable to read id index table FAULT_INJECTION: forcing a failure. name fail_page_alloc, interval 1, probability 0, space 0, times 0 ================================================================== CPU: 1 PID: 18037 Comm: syz-executor.0 Not tainted 4.19.152-syzkaller #0 BUG: KASAN: slab-out-of-bounds in squashfs_get_id+0x1bc/0x1f0 fs/squashfs/id.c:51 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Read of size 8 at addr ffff88809f6a57f8 by task syz-executor.1/18036 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x22c/0x33e lib/dump_stack.c:118 fail_dump lib/fault-inject.c:51 [inline] should_fail.cold+0xa/0x2f lib/fault-inject.c:149 should_fail_alloc_page mm/page_alloc.c:3088 [inline] prepare_alloc_pages mm/page_alloc.c:4346 [inline] __alloc_pages_nodemask+0x256/0x2a60 mm/page_alloc.c:4393 alloc_pages_current+0x19d/0x2c0 mm/mempolicy.c:2197 alloc_pages include/linux/gfp.h:532 [inline] skb_page_frag_refill+0x258/0x560 net/core/sock.c:2220 sk_page_frag_refill+0x4a/0x1d0 net/core/sock.c:2240 sk_alloc_sg+0x154/0x880 net/core/sock.c:2264 alloc_encrypted_sg net/tls/tls_sw.c:123 [inline] tls_sw_sendmsg+0x9b6/0x1230 net/tls/tls_sw.c:404 inet_sendmsg+0x174/0x640 net/ipv4/af_inet.c:798 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xc7/0x130 net/socket.c:632 __sys_sendto+0x21a/0x320 net/socket.c:1787 __do_sys_sendto net/socket.c:1799 [inline] __se_sys_sendto net/socket.c:1795 [inline] __x64_sys_sendto+0xdd/0x1b0 net/socket.c:1795 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45de59 Code: 0d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f66f7e84c78 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 000000000002e8c0 RCX: 000000000045de59 RDX: 00000000e0ffffff RSI: 00000000200005c0 RDI: 0000000000000003 RBP: 00007f66f7e84ca0 R08: 0000000000000000 R09: 00000000000000d8 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc67b13c4f R14: 00007f66f7e859c0 R15: 000000000118bf2c CPU: 0 PID: 18036 Comm: syz-executor.1 Not tainted 4.19.152-syzkaller #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+0x22c/0x33e lib/dump_stack.c:118 print_address_description.cold+0x56/0x25c mm/kasan/report.c:256 kasan_report_error.cold+0x66/0xb9 mm/kasan/report.c:354 kasan_report mm/kasan/report.c:412 [inline] __asan_report_load8_noabort+0x88/0x90 mm/kasan/report.c:433 squashfs_get_id+0x1bc/0x1f0 fs/squashfs/id.c:51 squashfs_new_inode fs/squashfs/inode.c:68 [inline] squashfs_read_inode+0x1d3/0x1940 fs/squashfs/inode.c:133 squashfs_fill_super+0x1277/0x190a fs/squashfs/super.c:318 mount_bdev+0x2fc/0x3b0 fs/super.c:1158 mount_fs+0xa3/0x318 fs/super.c:1261 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961 vfs_kern_mount fs/namespace.c:951 [inline] do_new_mount fs/namespace.c:2469 [inline] do_mount+0x51c/0x2f10 fs/namespace.c:2799 ksys_mount+0xcf/0x130 fs/namespace.c:3015 __do_sys_mount fs/namespace.c:3029 [inline] __se_sys_mount fs/namespace.c:3026 [inline] __x64_sys_mount+0xba/0x150 fs/namespace.c:3026 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4608aa Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 ad 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 8a 89 fb ff c3 66 0f 1f 84 00 00 00 00 00 RSP: 002b:00007fc6779f3a88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fc6779f3b20 RCX: 00000000004608aa RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fc6779f3ae0 RBP: 00007fc6779f3ae0 R08: 00007fc6779f3b20 R09: 0000000020000000 R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000 R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020000180 Allocated by task 6486: __do_kmalloc mm/slab.c:3727 [inline] __kmalloc_track_caller+0x155/0x4e0 mm/slab.c:3742 kstrdup+0x36/0x70 mm/util.c:56 kstrdup_const+0x53/0x80 mm/util.c:77 kvasprintf_const+0x108/0x190 lib/kasprintf.c:48 kobject_set_name_vargs+0x56/0x150 lib/kobject.c:281 dev_set_name+0xbd/0xf0 drivers/base/core.c:1964 netdev_register_kobject+0xbd/0x3af net/core/net-sysfs.c:1746 register_netdevice+0xbbf/0x1270 net/core/dev.c:8717 veth_newlink+0x3ea/0x940 drivers/net/veth.c:1143 rtnl_newlink+0x1027/0x15b0 net/core/rtnetlink.c:3141 rtnetlink_rcv_msg+0x498/0xc10 net/core/rtnetlink.c:4778 netlink_rcv_skb+0x160/0x440 net/netlink/af_netlink.c:2455 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline] netlink_unicast+0x4d5/0x690 net/netlink/af_netlink.c:1344 netlink_sendmsg+0x717/0xcc0 net/netlink/af_netlink.c:1909 sock_sendmsg_nosec net/socket.c:622 [inline] sock_sendmsg+0xc7/0x130 net/socket.c:632 __sys_sendto+0x21a/0x320 net/socket.c:1787 __do_sys_sendto net/socket.c:1799 [inline] __se_sys_sendto net/socket.c:1795 [inline] __x64_sys_sendto+0xdd/0x1b0 net/socket.c:1795 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 1: __cache_free mm/slab.c:3503 [inline] kfree+0xcc/0x250 mm/slab.c:3822 security_context_to_sid_core+0x2ed/0x610 security/selinux/ss/services.c:1504 security_context_to_sid+0x35/0x40 security/selinux/ss/services.c:1525 selinux_inode_setsecurity+0x197/0x3d0 security/selinux/hooks.c:3513 selinux_inode_notifysecctx+0x2b/0x60 security/selinux/hooks.c:6679 security_inode_notifysecctx+0x50/0xb0 security/security.c:1343 kernfs_refresh_inode+0x328/0x4b0 fs/kernfs/inode.c:195 kernfs_iop_permission+0x6a/0xb0 fs/kernfs/inode.c:302 do_inode_permission fs/namei.c:386 [inline] inode_permission+0x34e/0x540 fs/namei.c:451 may_lookup fs/namei.c:1703 [inline] link_path_walk.part.0+0x952/0x1230 fs/namei.c:2085 link_path_walk fs/namei.c:2073 [inline] path_openat+0x21d/0x2e90 fs/namei.c:3536 do_filp_open+0x18c/0x3f0 fs/namei.c:3567 do_sys_open+0x3b3/0x520 fs/open.c:1085 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88809f6a57c0 which belongs to the cache kmalloc-32 of size 32 The buggy address is located 24 bytes to the right of 32-byte region [ffff88809f6a57c0, ffff88809f6a57e0) The buggy address belongs to the page: page:ffffea00027da940 count:1 mapcount:0 mapping:ffff88812c3f61c0 index:0xffff88809f6a5fc1 flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffffea0002920c48 ffffea00027f6988 ffff88812c3f61c0 raw: ffff88809f6a5fc1 ffff88809f6a5000 0000000100000039 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88809f6a5680: fb fb fb fb fc fc fc fc fb fb fb fb fc fc fc fc ffff88809f6a5700: 00 fc fc fc fc fc fc fc fb fb fb fb fc fc fc fc >ffff88809f6a5780: fb fb fb fb fc fc fc fc 00 05 fc fc fc fc fc fc ^ ffff88809f6a5800: 00 05 fc fc fc fc fc fc 00 05 fc fc fc fc fc fc ffff88809f6a5880: 05 fc fc fc fc fc fc fc 05 fc fc fc fc fc fc fc ================================================================== squashfs: SQUASHFS error: unable to read id index table