audit: type=1804 audit(1675122029.090:2): pid=9712 uid=0 auid=4294967295 ses=4294967295 op="invalid_pcr" cause="open_writers" comm="syz-executor.2" name="/root/syzkaller-testdir891568661/syzkaller.ITLwjP/15/.pending_reads" dev="sda1" ino=13914 res=1 ================================================================== BUG: KASAN: slab-out-of-bounds in udf_get_fileident+0x1ea/0x200 fs/udf/directory.c:178 Read of size 2 at addr ffff8880aa30c3b4 by task syz-executor.2/9721 CPU: 0 PID: 9721 Comm: syz-executor.2 Not tainted 4.14.304-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:351 kasan_report mm/kasan/report.c:409 [inline] __asan_report_load_n_noabort+0x6b/0x80 mm/kasan/report.c:440 udf_get_fileident+0x1ea/0x200 fs/udf/directory.c:178 udf_fileident_read+0x4b9/0x1840 fs/udf/directory.c:36 udf_readdir+0x4d0/0x11f0 fs/udf/dir.c:129 iterate_dir+0x1a0/0x5e0 fs/readdir.c:52 SYSC_getdents fs/readdir.c:272 [inline] SyS_getdents+0x125/0x240 fs/readdir.c:253 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7f38ca56f0c9 RSP: 002b:00007f38c8ae1168 EFLAGS: 00000246 ORIG_RAX: 000000000000004e RAX: ffffffffffffffda RBX: 00007f38ca68ef80 RCX: 00007f38ca56f0c9 RDX: 0000000000000018 RSI: 0000000000000000 RDI: 0000000000000004 RBP: 00007f38ca5caae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc1a2bffef R14: 00007f38c8ae1300 R15: 0000000000022000 Allocated by task 9721: 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] udf_alloc_i_data+0x1f/0x70 fs/udf/inode.c:1603 udf_read_inode fs/udf/inode.c:1398 [inline] __udf_iget+0x2750/0x3370 fs/udf/inode.c:1874 udf_iget fs/udf/udfdecl.h:145 [inline] udf_fill_super+0xe63/0x1660 fs/udf/super.c:2274 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:2572 [inline] do_mount+0xe65/0x2a30 fs/namespace.c:2905 SYSC_mount fs/namespace.c:3121 [inline] SyS_mount+0xa8/0x120 fs/namespace.c:3098 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 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 skb_free_head net/core/skbuff.c:563 [inline] skb_release_data+0x5f6/0x820 net/core/skbuff.c:583 skb_release_all net/core/skbuff.c:640 [inline] __kfree_skb net/core/skbuff.c:654 [inline] consume_skb+0xe0/0x380 net/core/skbuff.c:714 __dev_kfree_skb_any+0x7a/0xa0 net/core/dev.c:2529 dev_consume_skb_any include/linux/netdevice.h:3287 [inline] free_old_xmit_skbs+0x184/0x2c0 drivers/net/virtio_net.c:1141 start_xmit+0x148/0x14f0 drivers/net/virtio_net.c:1303 __netdev_start_xmit include/linux/netdevice.h:4054 [inline] netdev_start_xmit include/linux/netdevice.h:4063 [inline] xmit_one net/core/dev.c:3005 [inline] dev_hard_start_xmit+0x188/0x890 net/core/dev.c:3021 sch_direct_xmit+0x251/0x500 net/sched/sch_generic.c:186 __dev_xmit_skb net/core/dev.c:3214 [inline] __dev_queue_xmit+0x1ab0/0x2480 net/core/dev.c:3489 neigh_hh_output include/net/neighbour.h:490 [inline] neigh_output include/net/neighbour.h:498 [inline] ip_finish_output2+0x9db/0x1340 net/ipv4/ip_output.c:237 ip_finish_output+0x37c/0xc50 net/ipv4/ip_output.c:325 NF_HOOK_COND include/linux/netfilter.h:239 [inline] ip_output+0x1cd/0x510 net/ipv4/ip_output.c:413 dst_output include/net/dst.h:470 [inline] ip_local_out+0x93/0x170 net/ipv4/ip_output.c:125 ip_queue_xmit+0x82b/0x1b40 net/ipv4/ip_output.c:513 __tcp_transmit_skb+0x17da/0x2ca0 net/ipv4/tcp_output.c:1134 __tcp_send_ack.part.0+0x399/0x580 net/ipv4/tcp_output.c:3668 __tcp_send_ack net/ipv4/tcp_output.c:3674 [inline] tcp_send_ack+0x6f/0x90 net/ipv4/tcp_output.c:3674 tcp_cleanup_rbuf+0x3c5/0x4a0 net/ipv4/tcp.c:1592 tcp_recvmsg+0x665/0x1d50 net/ipv4/tcp.c:2013 inet_recvmsg+0xef/0x4d0 net/ipv4/af_inet.c:793 sock_recvmsg_nosec net/socket.c:819 [inline] sock_recvmsg net/socket.c:826 [inline] sock_recvmsg net/socket.c:822 [inline] sock_read_iter+0x2be/0x3f0 net/socket.c:903 call_read_iter include/linux/fs.h:1774 [inline] new_sync_read fs/read_write.c:401 [inline] __vfs_read+0x449/0x620 fs/read_write.c:413 vfs_read+0x139/0x340 fs/read_write.c:447 SYSC_read fs/read_write.c:574 [inline] SyS_read+0xf2/0x210 fs/read_write.c:567 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 The buggy address belongs to the object at ffff8880aa30c000 which belongs to the cache kmalloc-1024 of size 1024 The buggy address is located 948 bytes inside of 1024-byte region [ffff8880aa30c000, ffff8880aa30c400) The buggy address belongs to the page: page:ffffea0002a8c300 count:1 mapcount:0 mapping:ffff8880aa30c000 index:0x0 compound_mapcount: 0 flags: 0xfff00000008100(slab|head) raw: 00fff00000008100 ffff8880aa30c000 0000000000000000 0000000100000007 raw: ffffea00027cb8a0 ffffea000279fc20 ffff88813fe74ac0 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880aa30c280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff8880aa30c300: 00 00 00 00 00 fc fc fc fc fc fc fc fc fc fc fc >ffff8880aa30c380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff8880aa30c400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880aa30c480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================