radio-si470x 1-1:0.0: non-zero urb status (-71)
==================================================================
BUG: KASAN: use-after-free in si470x_int_in_callback+0xb4c/0x1550 drivers/media/radio/si470x/radio-si470x-usb.c:378
Read of size 8 at addr ffff888025924ab8 by task pr/ttyS0/16
CPU: 1 PID: 16 Comm: pr/ttyS0 Not tainted 5.18.0-syzkaller-11439-g8ab2afa23bd1 #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+0x1e3/0x2cb lib/dump_stack.c:106
print_address_description+0x65/0x4b0 mm/kasan/report.c:313
print_report+0xf4/0x210 mm/kasan/report.c:429
kasan_report+0xfb/0x130 mm/kasan/report.c:491
si470x_int_in_callback+0xb4c/0x1550 drivers/media/radio/si470x/radio-si470x-usb.c:378
__usb_hcd_giveback_urb+0x369/0x530 drivers/usb/core/hcd.c:1670
dummy_timer+0x86b/0x3110 drivers/usb/gadget/udc/dummy_hcd.c:1988
call_timer_fn+0xf5/0x210 kernel/time/timer.c:1474
expire_timers kernel/time/timer.c:1519 [inline]
__run_timers+0x76a/0x980 kernel/time/timer.c:1790
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1803
__do_softirq+0x382/0x793 kernel/softirq.c:571
__irq_exit_rcu+0xec/0x170 kernel/softirq.c:650
irq_exit_rcu+0x5/0x20 kernel/softirq.c:662
sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106
asm_sysvec_apic_timer_interrupt+0x1b/0x20
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:152 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0xd4/0x130 kernel/locking/spinlock.c:194
Code: 9c 8f 44 24 20 42 80 3c 23 00 74 08 4c 89 f7 e8 52 60 a8 f7 f6 44 24 21 02 75 4e 41 f7 c7 00 02 00 00 74 01 fb bf 01 00 00 00 c7 e9 29 f7 65 8b 05 78 5b d0 75 85 c0 74 3f 48 c7 04 24 0e 36
RSP: 0018:ffffc90000157900 EFLAGS: 00000206
RAX: 20052df17d975400 RBX: 1ffff9200002af24 RCX: ffffffff81682178
RDX: dffffc0000000000 RSI: ffffffff8a8d23a0 RDI: 0000000000000001
RBP: ffffc90000157990 R08: dffffc0000000000 R09: fffffbfff1f6b3f9
R10: fffffbfff1f6b3f9 R11: 1ffffffff1f6b3f8 R12: dffffc0000000000
R13: 1ffff9200002af20 R14: ffffc90000157920 R15: 0000000000000246
spin_unlock_irqrestore include/linux/spinlock.h:404 [inline]
serial8250_console_write+0xbc3/0xf60 drivers/tty/serial/8250/8250_port.c:3409
call_console_driver kernel/printk/printk.c:2075 [inline]
__console_emit_next_record+0x82c/0xb30 kernel/printk/printk.c:2916
console_emit_next_record kernel/printk/printk.c:3721 [inline]
printk_kthread_func+0x9d8/0xd20 kernel/printk/printk.c:3837
kthread+0x266/0x300 kernel/kthread.c:376
ret_from_fork+0x1f/0x30
Allocated by task 2583:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track mm/kasan/common.c:45 [inline]
set_alloc_info mm/kasan/common.c:436 [inline]
____kasan_kmalloc+0xdc/0x110 mm/kasan/common.c:515
kasan_kmalloc include/linux/kasan.h:234 [inline]
kmem_cache_alloc_trace+0x94/0x310 mm/slub.c:3255
kmalloc include/linux/slab.h:600 [inline]
kzalloc include/linux/slab.h:733 [inline]
si470x_usb_driver_probe+0x56/0x26e0 drivers/media/radio/si470x/radio-si470x-usb.c:573
usb_probe_interface+0x66e/0xb60 drivers/usb/core/driver.c:396
call_driver_probe+0x96/0x250
really_probe+0x222/0x8e0 drivers/base/dd.c:621
__driver_probe_device+0x1f4/0x3f0 drivers/base/dd.c:752
driver_probe_device+0x50/0x240 drivers/base/dd.c:782
__device_attach_driver+0x254/0x3a0 drivers/base/dd.c:899
bus_for_each_drv+0x18a/0x210 drivers/base/bus.c:427
__device_attach+0x32e/0x570 drivers/base/dd.c:970
bus_probe_device+0xb8/0x1f0 drivers/base/bus.c:487
device_add+0xb20/0xf90 drivers/base/core.c:3402
usb_set_configuration+0x1a5f/0x20e0 drivers/usb/core/message.c:2170
usb_generic_driver_probe+0x83/0x140 drivers/usb/core/generic.c:238
usb_probe_device+0x131/0x260 drivers/usb/core/driver.c:293
call_driver_probe+0x96/0x250
really_probe+0x222/0x8e0 drivers/base/dd.c:621
__driver_probe_device+0x1f4/0x3f0 drivers/base/dd.c:752
driver_probe_device+0x50/0x240 drivers/base/dd.c:782
__device_attach_driver+0x254/0x3a0 drivers/base/dd.c:899
bus_for_each_drv+0x18a/0x210 drivers/base/bus.c:427
__device_attach+0x32e/0x570 drivers/base/dd.c:970
bus_probe_device+0xb8/0x1f0 drivers/base/bus.c:487
device_add+0xb20/0xf90 drivers/base/core.c:3402
usb_new_device+0xbfc/0x18a0 drivers/usb/core/hub.c:2566
hub_port_connect+0x106b/0x2930 drivers/usb/core/hub.c:5363
hub_port_connect_change+0x619/0xbe0 drivers/usb/core/hub.c:5507
port_event+0xe72/0x13a0 drivers/usb/core/hub.c:5665
hub_event+0x5be/0xd70 drivers/usb/core/hub.c:5747
process_one_work+0x81c/0xd10 kernel/workqueue.c:2289
worker_thread+0xb14/0x1330 kernel/workqueue.c:2436
kthread+0x266/0x300 kernel/kthread.c:376
ret_from_fork+0x1f/0x30
Freed by task 2583:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track+0x4c/0x70 mm/kasan/common.c:45
kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:370
____kasan_slab_free+0xd8/0x110 mm/kasan/common.c:366
kasan_slab_free include/linux/kasan.h:200 [inline]
slab_free_hook mm/slub.c:1727 [inline]
slab_free_freelist_hook+0x12e/0x1a0 mm/slub.c:1753
slab_free mm/slub.c:3507 [inline]
kfree+0xc6/0x210 mm/slub.c:4555
si470x_usb_driver_probe+0x5a5/0x26e0 drivers/media/radio/si470x/radio-si470x-usb.c:760
usb_probe_interface+0x66e/0xb60 drivers/usb/core/driver.c:396
call_driver_probe+0x96/0x250
really_probe+0x222/0x8e0 drivers/base/dd.c:621
__driver_probe_device+0x1f4/0x3f0 drivers/base/dd.c:752
driver_probe_device+0x50/0x240 drivers/base/dd.c:782
__device_attach_driver+0x254/0x3a0 drivers/base/dd.c:899
bus_for_each_drv+0x18a/0x210 drivers/base/bus.c:427
__device_attach+0x32e/0x570 drivers/base/dd.c:970
bus_probe_device+0xb8/0x1f0 drivers/base/bus.c:487
device_add+0xb20/0xf90 drivers/base/core.c:3402
usb_set_configuration+0x1a5f/0x20e0 drivers/usb/core/message.c:2170
usb_generic_driver_probe+0x83/0x140 drivers/usb/core/generic.c:238
usb_probe_device+0x131/0x260 drivers/usb/core/driver.c:293
call_driver_probe+0x96/0x250
really_probe+0x222/0x8e0 drivers/base/dd.c:621
__driver_probe_device+0x1f4/0x3f0 drivers/base/dd.c:752
driver_probe_device+0x50/0x240 drivers/base/dd.c:782
__device_attach_driver+0x254/0x3a0 drivers/base/dd.c:899
bus_for_each_drv+0x18a/0x210 drivers/base/bus.c:427
__device_attach+0x32e/0x570 drivers/base/dd.c:970
bus_probe_device+0xb8/0x1f0 drivers/base/bus.c:487
device_add+0xb20/0xf90 drivers/base/core.c:3402
usb_new_device+0xbfc/0x18a0 drivers/usb/core/hub.c:2566
hub_port_connect+0x106b/0x2930 drivers/usb/core/hub.c:5363
hub_port_connect_change+0x619/0xbe0 drivers/usb/core/hub.c:5507
port_event+0xe72/0x13a0 drivers/usb/core/hub.c:5665
hub_event+0x5be/0xd70 drivers/usb/core/hub.c:5747
process_one_work+0x81c/0xd10 kernel/workqueue.c:2289
worker_thread+0xb14/0x1330 kernel/workqueue.c:2436
kthread+0x266/0x300 kernel/kthread.c:376
ret_from_fork+0x1f/0x30
The buggy address belongs to the object at ffff888025924000
which belongs to the cache kmalloc-4k of size 4096
The buggy address is located 2744 bytes inside of
4096-byte region [ffff888025924000, ffff888025925000)
The buggy address belongs to the physical page:
page:ffffea0000964800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x25920
head:ffffea0000964800 order:3 compound_mapcount:0 compound_pincount:0
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 0000000000000000 dead000000000122 ffff888011442140
raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 3612, tgid 3612 (syz-executor961), ts 51080470095, free_ts 50366399092
prep_new_page mm/page_alloc.c:2456 [inline]
get_page_from_freelist+0x72b/0x7a0 mm/page_alloc.c:4198
__alloc_pages+0x259/0x560 mm/page_alloc.c:5426
alloc_slab_page+0x70/0xf0 mm/slub.c:1797
allocate_slab+0x5e/0x520 mm/slub.c:1942
new_slab mm/slub.c:2002 [inline]
___slab_alloc+0x41e/0xcd0 mm/slub.c:3002
__slab_alloc mm/slub.c:3089 [inline]
slab_alloc_node mm/slub.c:3180 [inline]
slab_alloc mm/slub.c:3222 [inline]
__kmalloc+0x2ba/0x370 mm/slub.c:4413
kmalloc include/linux/slab.h:605 [inline]
tomoyo_realpath_from_path+0xd8/0x5f0 security/tomoyo/realpath.c:254
tomoyo_get_realpath security/tomoyo/file.c:151 [inline]
tomoyo_path_number_perm+0x219/0x7b0 security/tomoyo/file.c:723
security_file_ioctl+0x55/0xb0 security/security.c:1551
__do_sys_ioctl fs/ioctl.c:864 [inline]
__se_sys_ioctl+0x48/0x170 fs/ioctl.c:856
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x46/0xb0
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1371 [inline]
free_pcp_prepare+0x812/0x900 mm/page_alloc.c:1421
free_unref_page_prepare mm/page_alloc.c:3343 [inline]
free_unref_page+0x7d/0x390 mm/page_alloc.c:3438
free_slab mm/slub.c:2041 [inline]
discard_slab mm/slub.c:2047 [inline]
__unfreeze_partials+0x1ab/0x200 mm/slub.c:2521
put_cpu_partial+0x116/0x180 mm/slub.c:2597
do_slab_free mm/slub.c:3495 [inline]
___cache_free+0x118/0x1a0 mm/slub.c:3514
qlist_free_all+0x2b/0x70 mm/kasan/quarantine.c:187
kasan_quarantine_reduce+0x169/0x180 mm/kasan/quarantine.c:294
__kasan_slab_alloc+0x2f/0xe0 mm/kasan/common.c:446
kasan_slab_alloc include/linux/kasan.h:224 [inline]
slab_post_alloc_hook mm/slab.h:750 [inline]
slab_alloc_node mm/slub.c:3214 [inline]
slab_alloc mm/slub.c:3222 [inline]
__kmem_cache_alloc_lru mm/slub.c:3229 [inline]
kmem_cache_alloc+0x199/0x2f0 mm/slub.c:3239
getname_flags+0xb8/0x4e0 fs/namei.c:139
user_path_at_empty+0x2a/0x1a0 fs/namei.c:2901
do_readlinkat+0x11b/0x3b0 fs/stat.c:456
__do_sys_readlink fs/stat.c:489 [inline]
__se_sys_readlink fs/stat.c:486 [inline]
__x64_sys_readlink+0x7b/0x90 fs/stat.c:486
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x46/0xb0
Memory state around the buggy address:
ffff888025924980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888025924a00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff888025924a80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff888025924b00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff888025924b80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
----------------
Code disassembly (best guess):
0: 9c pushfq
1: 8f 44 24 20 popq 0x20(%rsp)
5: 42 80 3c 23 00 cmpb $0x0,(%rbx,%r12,1)
a: 74 08 je 0x14
c: 4c 89 f7 mov %r14,%rdi
f: e8 52 60 a8 f7 callq 0xf7a86066
14: f6 44 24 21 02 testb $0x2,0x21(%rsp)
19: 75 4e jne 0x69
1b: 41 f7 c7 00 02 00 00 test $0x200,%r15d
22: 74 01 je 0x25
24: fb sti
25: bf 01 00 00 00 mov $0x1,%edi
* 2a: e8 c7 e9 29 f7 callq 0xf729e9f6 <-- trapping instruction
2f: 65 8b 05 78 5b d0 75 mov %gs:0x75d05b78(%rip),%eax # 0x75d05bae
36: 85 c0 test %eax,%eax
38: 74 3f je 0x79
3a: 48 rex.W
3b: c7 .byte 0xc7
3c: 04 24 add $0x24,%al
3e: 0e (bad)
3f: 36 ss