==================================================================
BUG: KASAN: slab-out-of-bounds in usb_hcd_poll_rh_status+0x243/0x530 drivers/usb/core/hcd.c:774
Write of size 2 at addr ffff8880162e75a0 by task syz-executor.2/30184
CPU: 1 PID: 30184 Comm: syz-executor.2 Not tainted 5.16.0-rc3-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1dc/0x2d8 lib/dump_stack.c:106
print_address_description+0x65/0x380 mm/kasan/report.c:247
__kasan_report mm/kasan/report.c:433 [inline]
kasan_report+0x19a/0x1f0 mm/kasan/report.c:450
kasan_check_range+0x2b5/0x2f0 mm/kasan/generic.c:189
memcpy+0x3c/0x60 mm/kasan/shadow.c:66
usb_hcd_poll_rh_status+0x243/0x530 drivers/usb/core/hcd.c:774
call_timer_fn+0xf6/0x210 kernel/time/timer.c:1421
expire_timers kernel/time/timer.c:1466 [inline]
__run_timers+0x71a/0x910 kernel/time/timer.c:1734
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1747
__do_softirq+0x392/0x7a3 kernel/softirq.c:558
__irq_exit_rcu+0xec/0x170 kernel/softirq.c:636
irq_exit_rcu+0x5/0x20 kernel/softirq.c:648
sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1097
asm_sysvec_apic_timer_interrupt+0x12/0x20
RIP: 0010:ext4_fill_raw_inode+0x1020/0x2920 fs/ext4/inode.c:4353
Code: 48 89 df e8 82 3f a5 ff e9 aa 0f 00 00 e8 78 6b 59 ff 48 8b 34 24 48 89 f0 48 c1 e8 03 48 ba 00 00 00 00 00 fc ff df 8a 04 10 <84> c0 0f 85 95 12 00 00 8b 2e 49 8d 5d 28 48 89 d8 48 c1 e8 03 8a
RSP: 0000:ffffc900028bf600 EFLAGS: 00000a06
RAX: 1ffff1100d872100 RBX: 0000004400080000 RCX: ffff888079c48000
RDX: dffffc0000000000 RSI: ffff88806c3909f8 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff822b1bb9 R09: ffffed100d87214a
R10: ffffed100d87214a R11: 0000000000000000 R12: 1ffff1100d872149
R13: ffff88806e011d00 R14: ffff88806c390c98 R15: ffff88806c390a48
ext4_do_update_inode fs/ext4/inode.c:5094 [inline]
ext4_mark_iloc_dirty+0x5ea/0x1ad0 fs/ext4/inode.c:5694
__ext4_mark_inode_dirty+0x3f6/0x720 fs/ext4/inode.c:5890
ext4_dirty_inode+0xbe/0x100 fs/ext4/inode.c:5919
__mark_inode_dirty+0xb6/0x8f0 fs/fs-writeback.c:2399
generic_update_time+0x1c7/0x1e0 fs/inode.c:1782
inode_update_time fs/inode.c:1795 [inline]
file_update_time+0x383/0x3f0 fs/inode.c:2012
ext4_page_mkwrite+0x1c0/0x1600 fs/ext4/inode.c:6037
do_page_mkwrite+0x17e/0x4f0 mm/memory.c:2856
do_shared_fault+0xe5/0x590 mm/memory.c:4229
do_fault mm/memory.c:4297 [inline]
handle_pte_fault mm/memory.c:4551 [inline]
__handle_mm_fault mm/memory.c:4686 [inline]
handle_mm_fault+0x1bec/0x2560 mm/memory.c:4784
do_user_addr_fault+0x8cc/0x10c0 arch/x86/mm/fault.c:1397
handle_page_fault arch/x86/mm/fault.c:1485 [inline]
exc_page_fault+0xa1/0x1e0 arch/x86/mm/fault.c:1541
asm_exc_page_fault+0x1e/0x30
RIP: 0033:0x7f04611d5673
Code: 5d c3 0f 1f 44 00 00 48 8b 0d 59 ed 0a 01 48 8b 05 4a ed 0a 01 4c 8d 81 00 00 00 01 48 39 c8 72 13 4c 39 c0 73 0e 48 8d 50 04 <89> 38 48 89 15 2c ed 0a 01 c3 52 48 8d 35 77 b7 0b 00 48 89 c2 48
RSP: 002b:00007ffee7728298 EFLAGS: 00010287
RAX: 0000001b2c021000 RBX: 00007f0460faf008 RCX: 0000001b2c020000
RDX: 0000001b2c021004 RSI: ffffffff844d034b RDI: 000000007abf3526
RBP: 0000000000000001 R08: 0000001b2d020000 R09: 0000001b2c020e44
R10: 0000000000001526 R11: 000000007abf352a R12: 00000000000012bc
R13: 00007f046133f000 R14: ffffffff844d034b R15: 00007f046134aff0
Allocated by task 30190:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track mm/kasan/common.c:46 [inline]
set_alloc_info mm/kasan/common.c:434 [inline]
____kasan_kmalloc+0xdc/0x110 mm/kasan/common.c:513
kasan_kmalloc include/linux/kasan.h:269 [inline]
__kmalloc+0x253/0x380 mm/slub.c:4423
kmalloc include/linux/slab.h:595 [inline]
proc_do_submiturb+0x237d/0x3d80 drivers/usb/core/devio.c:1816
proc_submiturb drivers/usb/core/devio.c:1975 [inline]
usbdev_do_ioctl drivers/usb/core/devio.c:2671 [inline]
usbdev_ioctl+0x397c/0x6d00 drivers/usb/core/devio.c:2791
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:874 [inline]
__se_sys_ioctl+0xfb/0x170 fs/ioctl.c:860
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x44/0xae
The buggy address belongs to the object at ffff8880162e75a0
which belongs to the cache kmalloc-8 of size 8
The buggy address is located 0 bytes inside of
8-byte region [ffff8880162e75a0, ffff8880162e75a8)
The buggy address belongs to the page:
page:ffffea000058b9c0 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x162e7
flags: 0xfff00000000200(slab|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000000200 dead000000000100 dead000000000122 ffff888011441280
raw: 0000000000000000 0000000080660066 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12c40(GFP_NOFS|__GFP_NOWARN|__GFP_NORETRY), pid 22, ts 3564086713, free_ts 0
prep_new_page mm/page_alloc.c:2418 [inline]
get_page_from_freelist+0x729/0x9e0 mm/page_alloc.c:4149
__alloc_pages+0x255/0x580 mm/page_alloc.c:5369
alloc_slab_page mm/slub.c:1793 [inline]
allocate_slab+0xcc/0x4d0 mm/slub.c:1930
new_slab mm/slub.c:1993 [inline]
___slab_alloc+0x41e/0xc40 mm/slub.c:3022
__slab_alloc mm/slub.c:3109 [inline]
slab_alloc_node mm/slub.c:3200 [inline]
slab_alloc mm/slub.c:3242 [inline]
__kmalloc+0x2eb/0x380 mm/slub.c:4419
kmalloc include/linux/slab.h:595 [inline]
kzalloc include/linux/slab.h:724 [inline]
smk_parse_smack+0x18e/0x220 security/smack/smack_access.c:468
smk_import_entry+0x22/0x400 security/smack/smack_access.c:566
smk_fetch security/smack/smack_lsm.c:300 [inline]
smack_d_instantiate+0x6ac/0xd10 security/smack/smack_lsm.c:3417
security_d_instantiate+0xa5/0x100 security/security.c:2040
d_instantiate+0x51/0x90 fs/dcache.c:2008
shmem_mknod+0x165/0x1b0 mm/shmem.c:2842
vfs_mknod+0x51e/0x710 fs/namei.c:3761
handle_create drivers/base/devtmpfs.c:215 [inline]
handle drivers/base/devtmpfs.c:380 [inline]
devtmpfs_work_loop+0x921/0x1080 drivers/base/devtmpfs.c:395
devtmpfsd+0x44/0x50 drivers/base/devtmpfs.c:437
kthread+0x468/0x490 kernel/kthread.c:327
ret_from_fork+0x1f/0x30
page_owner free stack trace missing
Memory state around the buggy address:
ffff8880162e7480: fc 00 fc fc fc fc fa fc fc fc fc 00 fc fc fc fc
ffff8880162e7500: 00 fc fc fc fc 00 fc fc fc fc 00 fc fc fc fc 00
>ffff8880162e7580: fc fc fc fc 01 fc fc fc fc 00 fc fc fc fc 00 fc
^
ffff8880162e7600: fc fc fc 00 fc fc fc fc 00 fc fc fc fc fa fc fc
ffff8880162e7680: fc fc fa fc fc fc fc 00 fc fc fc fc 00 fc fc fc
==================================================================
----------------
Code disassembly (best guess):
0: 48 89 df mov %rbx,%rdi
3: e8 82 3f a5 ff callq 0xffa53f8a
8: e9 aa 0f 00 00 jmpq 0xfb7
d: e8 78 6b 59 ff callq 0xff596b8a
12: 48 8b 34 24 mov (%rsp),%rsi
16: 48 89 f0 mov %rsi,%rax
19: 48 c1 e8 03 shr $0x3,%rax
1d: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx
24: fc ff df
27: 8a 04 10 mov (%rax,%rdx,1),%al
* 2a: 84 c0 test %al,%al <-- trapping instruction
2c: 0f 85 95 12 00 00 jne 0x12c7
32: 8b 2e mov (%rsi),%ebp
34: 49 8d 5d 28 lea 0x28(%r13),%rbx
38: 48 89 d8 mov %rbx,%rax
3b: 48 c1 e8 03 shr $0x3,%rax
3f: 8a .byte 0x8a