[Android 5.10] KASAN: use-after-free Read in strrchr

5 views
Skip to first unread message

syzbot

unread,
Oct 24, 2026, 1:39:38 AMOct 24
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: d3231d350eb8 Merge 7f9a05c930d3 ("xfrm: add extack to veri..
git tree: android13-5.10-lts
console+strace: https://syzkaller.appspot.com/x/log.txt?x=131f633e580000
kernel config: https://syzkaller.appspot.com/x/.config?x=40fa24cc6888ca30
dashboard link: https://syzkaller.appspot.com/bug?extid=8acf9a430e7f81ca61ed
compiler: Debian clang version 22.1.8 (1~deb13u4), Debian LLD 22.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1226530d580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13737f71580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/77a5afabe6f9/disk-d3231d35.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/94b2816c1caa/vmlinux-d3231d35.xz
kernel image: https://storage.googleapis.com/syzbot-assets/da333b6dcb5c/bzImage-d3231d35.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+8acf9a...@syzkaller.appspotmail.com

==================================================================
BUG: KASAN: use-after-free in strrchr+0x5c/0x70 lib/string.c:488
Read of size 1 at addr ffff88811b205d78 by task kworker/1:3/307

CPU: 1 PID: 307 Comm: kworker/1:3 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
Workqueue: usb_hub_wq hub_event
Call Trace:
__dump_stack+0x21/0x24 lib/dump_stack.c:77
dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118
print_address_description+0x7f/0x2c0 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:435 [inline]
kasan_report+0x100/0x140 mm/kasan/report.c:452
__asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:306
strrchr+0x5c/0x70 lib/string.c:488
hid_compare_device_paths+0x43/0xb0 drivers/hid/hid-core.c:2311
wacom_get_hdev_data drivers/hid/wacom_sys.c:831 [inline]
wacom_add_shared_data drivers/hid/wacom_sys.c:889 [inline]
wacom_parse_and_register+0x4efa/0x6d20 drivers/hid/wacom_sys.c:2403
wacom_probe+0x76b/0x950 drivers/hid/wacom_sys.c:2855
hid_device_probe+0x28d/0x390 drivers/hid/hid-core.c:2363
really_probe+0x373/0xa60 drivers/base/dd.c:558
driver_probe_device+0xe1/0x190 drivers/base/dd.c:752
__device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433
__device_attach+0x2a8/0x410 drivers/base/dd.c:932
device_initial_probe+0x1a/0x20 drivers/base/dd.c:981
bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493
device_add+0x8ce/0xc00 drivers/base/core.c:3273
hid_add_device+0x349/0x4b0 drivers/hid/hid-core.c:2515
usbhid_probe+0xb93/0xf30 drivers/hid/usbhid/hid-core.c:1436
usb_probe_interface+0x60f/0xb20 drivers/usb/core/driver.c:397
really_probe+0x3bf/0xa60 drivers/base/dd.c:562
driver_probe_device+0xe1/0x190 drivers/base/dd.c:752
__device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433
__device_attach+0x2a8/0x410 drivers/base/dd.c:932
device_initial_probe+0x1a/0x20 drivers/base/dd.c:981
bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493
device_add+0x8ce/0xc00 drivers/base/core.c:3273
usb_set_configuration+0x1a76/0x1fe0 drivers/usb/core/message.c:2219
usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238
usb_probe_device+0x143/0x250 drivers/usb/core/driver.c:294
really_probe+0x3bf/0xa60 drivers/base/dd.c:562
driver_probe_device+0xe1/0x190 drivers/base/dd.c:752
__device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433
__device_attach+0x2a8/0x410 drivers/base/dd.c:932
device_initial_probe+0x1a/0x20 drivers/base/dd.c:981
bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493
device_add+0x8ce/0xc00 drivers/base/core.c:3273
usb_new_device+0x9ba/0x1460 drivers/usb/core/hub.c:2659
hub_port_connect drivers/usb/core/hub.c:5504 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5644 [inline]
port_event drivers/usb/core/hub.c:5810 [inline]
hub_event+0x2790/0x4220 drivers/usb/core/hub.c:5892
process_one_work+0x6fd/0xbc0 kernel/workqueue.c:2301
process_scheduled_works kernel/workqueue.c:2363 [inline]
worker_thread+0xd1c/0x13c0 kernel/workqueue.c:2449
kthread+0x324/0x3b0 kernel/kthread.c:313
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298

Allocated by task 52:
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:430 [inline]
____kasan_kmalloc mm/kasan/common.c:509 [inline]
__kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:518
kasan_kmalloc include/linux/kasan.h:254 [inline]
kmem_cache_alloc_trace+0x179/0x2e0 mm/slub.c:2979
kmalloc include/linux/slab.h:555 [inline]
kzalloc include/linux/slab.h:667 [inline]
hid_allocate_device+0x50/0x2f0 drivers/hid/hid-core.c:2539
usbhid_probe+0x3c7/0xf30 drivers/hid/usbhid/hid-core.c:1370
usb_probe_interface+0x60f/0xb20 drivers/usb/core/driver.c:397
really_probe+0x3bf/0xa60 drivers/base/dd.c:562
driver_probe_device+0xe1/0x190 drivers/base/dd.c:752
__device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433
__device_attach+0x2a8/0x410 drivers/base/dd.c:932
device_initial_probe+0x1a/0x20 drivers/base/dd.c:981
bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493
device_add+0x8ce/0xc00 drivers/base/core.c:3273
usb_set_configuration+0x1a76/0x1fe0 drivers/usb/core/message.c:2219
usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238
usb_probe_device+0x143/0x250 drivers/usb/core/driver.c:294
really_probe+0x3bf/0xa60 drivers/base/dd.c:562
driver_probe_device+0xe1/0x190 drivers/base/dd.c:752
__device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433
__device_attach+0x2a8/0x410 drivers/base/dd.c:932
device_initial_probe+0x1a/0x20 drivers/base/dd.c:981
bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:493
device_add+0x8ce/0xc00 drivers/base/core.c:3273
usb_new_device+0x9ba/0x1460 drivers/usb/core/hub.c:2659
hub_port_connect drivers/usb/core/hub.c:5504 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5644 [inline]
port_event drivers/usb/core/hub.c:5810 [inline]
hub_event+0x2790/0x4220 drivers/usb/core/hub.c:5892
process_one_work+0x6fd/0xbc0 kernel/workqueue.c:2301
process_scheduled_works kernel/workqueue.c:2363 [inline]
worker_thread+0xd1c/0x13c0 kernel/workqueue.c:2449
kthread+0x324/0x3b0 kernel/kthread.c:313
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298

Freed by task 52:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track+0x4a/0x70 mm/kasan/common.c:45
kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370
____kasan_slab_free+0x125/0x160 mm/kasan/common.c:362
__kasan_slab_free+0x11/0x20 mm/kasan/common.c:370
kasan_slab_free include/linux/kasan.h:220 [inline]
slab_free_hook mm/slub.c:1600 [inline]
slab_free_freelist_hook+0xc5/0x190 mm/slub.c:1626
slab_free mm/slub.c:3208 [inline]
kfree+0xc0/0x270 mm/slub.c:4196
hid_device_release+0x4b/0x50 drivers/hid/hid-core.c:718
device_release+0x96/0x1c0 drivers/base/core.c:-1
kobject_cleanup lib/kobject.c:713 [inline]
kobject_release lib/kobject.c:744 [inline]
kref_put include/linux/kref.h:65 [inline]
kobject_put+0x18a/0x270 lib/kobject.c:761
put_device+0x1f/0x30 drivers/base/core.c:3373
hid_destroy_device+0xe3/0x110 drivers/hid/hid-core.c:2583
usbhid_disconnect+0x9f/0xc0 drivers/hid/usbhid/hid-core.c:1463
usb_unbind_interface+0x212/0x8a0 drivers/usb/core/driver.c:459
__device_release_driver drivers/base/dd.c:-1 [inline]
device_release_driver_internal+0x531/0x7c0 drivers/base/dd.c:1221
device_release_driver+0x19/0x20 drivers/base/dd.c:1244
bus_remove_device+0x2df/0x340 drivers/base/bus.c:535
device_del+0x62e/0xe60 drivers/base/core.c:3453
usb_disable_device+0x3a8/0x750 drivers/usb/core/message.c:1470
usb_disconnect+0x32d/0x870 drivers/usb/core/hub.c:2315
hub_port_connect drivers/usb/core/hub.c:5343 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5644 [inline]
port_event drivers/usb/core/hub.c:5810 [inline]
hub_event+0x19c2/0x4220 drivers/usb/core/hub.c:5892
process_one_work+0x6fd/0xbc0 kernel/workqueue.c:2301
process_scheduled_works kernel/workqueue.c:2363 [inline]
worker_thread+0xd1c/0x13c0 kernel/workqueue.c:2449
kthread+0x324/0x3b0 kernel/kthread.c:313
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298

The buggy address belongs to the object at ffff88811b204000
which belongs to the cache kmalloc-8k of size 8192
The buggy address is located 7544 bytes inside of
8192-byte region [ffff88811b204000, ffff88811b206000)
The buggy address belongs to the page:
page:ffffea00046c8000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11b200
head:ffffea00046c8000 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x4000000000010200(slab|head)
raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100042a80
raw: 0000000000000000 0000000000020002 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 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 20, ts 39981613761, free_ts 39981256332
set_page_owner include/linux/page_owner.h:35 [inline]
post_alloc_hook mm/page_alloc.c:2456 [inline]
prep_new_page+0x176/0x190 mm/page_alloc.c:2462
get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4254
__alloc_pages_nodemask+0x29a/0x640 mm/page_alloc.c:5384
alloc_slab_page mm/slub.c:-1 [inline]
allocate_slab mm/slub.c:1813 [inline]
new_slab+0x84/0x3f0 mm/slub.c:1874
new_slab_objects mm/slub.c:2632 [inline]
___slab_alloc+0x2f8/0x4c0 mm/slub.c:2796
__slab_alloc+0x63/0xa0 mm/slub.c:2836
slab_alloc_node mm/slub.c:2918 [inline]
slab_alloc mm/slub.c:2960 [inline]
kmem_cache_alloc_trace+0x1a8/0x2e0 mm/slub.c:2977
kmalloc include/linux/slab.h:555 [inline]
kzalloc include/linux/slab.h:667 [inline]
hid_allocate_device+0x50/0x2f0 drivers/hid/hid-core.c:2539
usbhid_probe+0x3c7/0xf30 drivers/hid/usbhid/hid-core.c:1370
usb_probe_interface+0x60f/0xb20 drivers/usb/core/driver.c:397
really_probe+0x3bf/0xa60 drivers/base/dd.c:562
driver_probe_device+0xe1/0x190 drivers/base/dd.c:752
__device_attach_driver+0x282/0x3f0 drivers/base/dd.c:863
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:433
__device_attach+0x2a8/0x410 drivers/base/dd.c:932
device_initial_probe+0x1a/0x20 drivers/base/dd.c:981
page last free stack trace:
reset_page_owner include/linux/page_owner.h:28 [inline]
free_pages_prepare mm/page_alloc.c:1349 [inline]
__free_pages_ok+0x80b/0x830 mm/page_alloc.c:1629
free_compound_page+0x73/0x90 mm/page_alloc.c:710
destroy_compound_page include/linux/mm.h:970 [inline]
__put_compound_page+0x77/0xb0 mm/swap.c:117
__put_page+0xbd/0xe0 mm/swap.c:133
put_page include/linux/mm.h:1268 [inline]
page_to_skb+0x3d9/0x930 drivers/net/virtio_net.c:473
receive_mergeable drivers/net/virtio_net.c:1049 [inline]
receive_buf+0xc03/0x46a0 drivers/net/virtio_net.c:1159
virtnet_receive drivers/net/virtio_net.c:1451 [inline]
virtnet_poll+0x56b/0xfa0 drivers/net/virtio_net.c:1563
napi_poll net/core/dev.c:6885 [inline]
net_rx_action+0x48d/0xed0 net/core/dev.c:6955
__do_softirq+0x255/0x563 kernel/softirq.c:309

Memory state around the buggy address:
ffff88811b205c00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88811b205c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88811b205d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88811b205d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88811b205e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
wacom 0003:056A:0084.0050: hidraw0: USB HID v1.10 Device [HID 056a:0084] on usb-dummy_hcd.2-1/input1
usbhid 3-1:1.2: can't add hid device: -71
usbhid: probe of 3-1:1.2 failed with error -71
usb 3-1: USB disconnect, device number 9
usb 3-1: new high-speed USB device number 10 using dummy_hcd
usb 3-1: New USB device found, idVendor=056a, idProduct=0084, bcdDevice= 1.00
usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
wacom 0003:056A:0084.0056: hidraw5: USB HID v1.10 Device [HID 056a:0084] on usb-dummy_hcd.2-1/input0
wacom 0003:056A:0084.005A: hidraw7: USB HID v1.10 Device [HID 056a:0084] on usb-dummy_hcd.2-1/input1
usbhid 3-1:1.2: can't add hid device: -71
usbhid: probe of 3-1:1.2 failed with error -71
usb 3-1: USB disconnect, device number 10
usb 3-1: new high-speed USB device number 11 using dummy_hcd
usb 3-1: New USB device found, idVendor=056a, idProduct=0084, bcdDevice= 1.00
usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
wacom 0003:056A:0084.0060: hidraw5: USB HID v1.10 Device [HID 056a:0084] on usb-dummy_hcd.2-1/input0
wacom 0003:056A:0084.0064: hidraw7: USB HID v1.10 Device [HID 056a:0084] on usb-dummy_hcd.2-1/input1
usbhid 3-1:1.2: can't add hid device: -71
usbhid: probe of 3-1:1.2 failed with error -71
usb 3-1: USB disconnect, device number 11
usb 3-1: new high-speed USB device number 12 using dummy_hcd
usb 3-1: New USB device found, idVendor=056a, idProduct=0084, bcdDevice= 1.00
usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
wacom 0003:056A:0084.006A: hidraw5: USB HID v1.10 Device [HID 056a:0084] on usb-dummy_hcd.2-1/input0
wacom 0003:056A:0084.006E: hidraw7: USB HID v1.10 Device [HID 056a:0084] on usb-dummy_hcd.2-1/input1
usbhid 3-1:1.2: can't add hid device: -71
usbhid: probe of 3-1:1.2 failed with error -71
usb 3-1: USB disconnect, device number 12
usb 3-1: new high-speed USB device number 13 using dummy_hcd
usb 3-1: New USB device found, idVendor=056a, idProduct=0084, bcdDevice= 1.00
usb 3-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
wacom 0003:056A:0084.0074: hidraw5: USB HID v1.10 Device [HID 056a:0084] on usb-dummy_hcd.2-1/input0
wacom 0003:056A:0084.0078: hidraw7: USB HID v1.10 Device [HID 056a:0084] on usb-dummy_hcd.2-1/input1
usbhid 3-1:1.2: can't add hid device: -71
usbhid: probe of 3-1:1.2 failed with error -71
usb 3-1: USB disconnect, device number 13
usb 3-1: new high-speed USB device number 14 using dummy_hcd


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Oct 31, 2026, 4:26:38 AM (9 days ago) Oct 31
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 2316d138a3c3 Merge 5.15.223 into android13-5.15-lts
git tree: android13-5.15-lts
console+strace: https://syzkaller.appspot.com/x/log.txt?x=1233d5e1580000
kernel config: https://syzkaller.appspot.com/x/.config?x=98c60c31f9225e5e
dashboard link: https://syzkaller.appspot.com/bug?extid=a0a0534c06cb310157e0
compiler: Debian clang version 22.1.8 (1~deb13u4), Debian LLD 22.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1633d5e1580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15584be0580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/24d194ffc446/disk-2316d138.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ed78d0797a3f/vmlinux-2316d138.xz
kernel image: https://storage.googleapis.com/syzbot-assets/71675bd16c9b/bzImage-2316d138.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+a0a053...@syzkaller.appspotmail.com

==================================================================
BUG: KASAN: use-after-free in strrchr+0x5c/0x70 lib/string.c:501
Read of size 1 at addr ffff88811aa05d80 by task kworker/1:0/26

CPU: 1 PID: 26 Comm: kworker/1:0 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
Workqueue: usb_hub_wq hub_event
Call Trace:
<TASK>
__dump_stack+0x21/0x30 lib/dump_stack.c:88
dump_stack_lvl+0x110/0x170 lib/dump_stack.c:106
print_address_description+0x7f/0x2c0 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:427 [inline]
kasan_report+0x10f/0x150 mm/kasan/report.c:444
__asan_report_load1_noabort+0x14/0x20 mm/kasan/report_generic.c:306
strrchr+0x5c/0x70 lib/string.c:501
hid_compare_device_paths+0x43/0xb0 drivers/hid/hid-core.c:2311
wacom_get_hdev_data drivers/hid/wacom_sys.c:832 [inline]
wacom_add_shared_data drivers/hid/wacom_sys.c:890 [inline]
wacom_parse_and_register+0x4efa/0x6d20 drivers/hid/wacom_sys.c:2410
wacom_probe+0x767/0x980 drivers/hid/wacom_sys.c:2862
hid_device_probe+0x28d/0x390 drivers/hid/hid-core.c:2363
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x27d/0x970 drivers/base/dd.c:595
__driver_probe_device+0x193/0x270 drivers/base/dd.c:755
driver_probe_device+0x54/0x3e0 drivers/base/dd.c:785
__device_attach_driver+0x2a6/0x460 drivers/base/dd.c:907
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
__device_attach+0x2b0/0x420 drivers/base/dd.c:979
device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028
bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:489
device_add+0xaef/0xe90 drivers/base/core.c:3422
hid_add_device+0x349/0x4b0 drivers/hid/hid-core.c:2513
usbhid_probe+0xb93/0xf30 drivers/hid/usbhid/hid-core.c:1442
usb_probe_interface+0x60f/0xb20 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x27d/0x970 drivers/base/dd.c:595
__driver_probe_device+0x193/0x270 drivers/base/dd.c:755
driver_probe_device+0x54/0x3e0 drivers/base/dd.c:785
__device_attach_driver+0x2a6/0x460 drivers/base/dd.c:907
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
__device_attach+0x2b0/0x420 drivers/base/dd.c:979
device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028
bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:489
device_add+0xaef/0xe90 drivers/base/core.c:3422
usb_set_configuration+0x1a01/0x1f70 drivers/usb/core/message.c:2223
usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238
usb_probe_device+0x143/0x250 drivers/usb/core/driver.c:293
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x27d/0x970 drivers/base/dd.c:595
__driver_probe_device+0x193/0x270 drivers/base/dd.c:755
driver_probe_device+0x54/0x3e0 drivers/base/dd.c:785
__device_attach_driver+0x2a6/0x460 drivers/base/dd.c:907
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
__device_attach+0x2b0/0x420 drivers/base/dd.c:979
device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028
bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:489
device_add+0xaef/0xe90 drivers/base/core.c:3422
usb_new_device+0xa1f/0x1720 drivers/usb/core/hub.c:2643
hub_port_connect drivers/usb/core/hub.c:5560 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5700 [inline]
port_event drivers/usb/core/hub.c:5866 [inline]
hub_event+0x291b/0x43f0 drivers/usb/core/hub.c:5948
process_one_work+0x6c8/0xbb0 kernel/workqueue.c:2328
process_scheduled_works kernel/workqueue.c:2391 [inline]
worker_thread+0xd4c/0x1250 kernel/workqueue.c:2477
kthread+0x3f5/0x4f0 kernel/kthread.c:337
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
</TASK>

Allocated by task 318:
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:433 [inline]
____kasan_kmalloc mm/kasan/common.c:512 [inline]
__kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:521
kasan_kmalloc include/linux/kasan.h:227 [inline]
kmem_cache_alloc_trace+0x119/0x270 mm/slub.c:3274
kmalloc include/linux/slab.h:619 [inline]
kzalloc include/linux/slab.h:750 [inline]
hid_allocate_device+0x50/0x2f0 drivers/hid/hid-core.c:2537
usbhid_probe+0x3c7/0xf30 drivers/hid/usbhid/hid-core.c:1376
usb_probe_interface+0x60f/0xb20 drivers/usb/core/driver.c:396
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x27d/0x970 drivers/base/dd.c:595
__driver_probe_device+0x193/0x270 drivers/base/dd.c:755
driver_probe_device+0x54/0x3e0 drivers/base/dd.c:785
__device_attach_driver+0x2a6/0x460 drivers/base/dd.c:907
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
__device_attach+0x2b0/0x420 drivers/base/dd.c:979
device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028
bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:489
device_add+0xaef/0xe90 drivers/base/core.c:3422
usb_set_configuration+0x1a01/0x1f70 drivers/usb/core/message.c:2223
usb_generic_driver_probe+0x91/0x150 drivers/usb/core/generic.c:238
usb_probe_device+0x143/0x250 drivers/usb/core/driver.c:293
call_driver_probe drivers/base/dd.c:-1 [inline]
really_probe+0x27d/0x970 drivers/base/dd.c:595
__driver_probe_device+0x193/0x270 drivers/base/dd.c:755
driver_probe_device+0x54/0x3e0 drivers/base/dd.c:785
__device_attach_driver+0x2a6/0x460 drivers/base/dd.c:907
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
__device_attach+0x2b0/0x420 drivers/base/dd.c:979
device_initial_probe+0x1a/0x20 drivers/base/dd.c:1028
bus_probe_device+0xc0/0x1e0 drivers/base/bus.c:489
device_add+0xaef/0xe90 drivers/base/core.c:3422
usb_new_device+0xa1f/0x1720 drivers/usb/core/hub.c:2643
hub_port_connect drivers/usb/core/hub.c:5560 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5700 [inline]
port_event drivers/usb/core/hub.c:5866 [inline]
hub_event+0x291b/0x43f0 drivers/usb/core/hub.c:5948
process_one_work+0x6c8/0xbb0 kernel/workqueue.c:2328
process_scheduled_works kernel/workqueue.c:2391 [inline]
worker_thread+0xd4c/0x1250 kernel/workqueue.c:2477
kthread+0x3f5/0x4f0 kernel/kthread.c:337
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287

Freed by task 318:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track+0x4a/0x70 mm/kasan/common.c:45
kasan_set_free_info+0x23/0x40 mm/kasan/generic.c:370
____kasan_slab_free+0x125/0x160 mm/kasan/common.c:365
__kasan_slab_free+0x11/0x20 mm/kasan/common.c:373
kasan_slab_free include/linux/kasan.h:193 [inline]
slab_free_hook mm/slub.c:1728 [inline]
slab_free_freelist_hook+0xc2/0x190 mm/slub.c:1754
slab_free mm/slub.c:3526 [inline]
kfree+0xc4/0x270 mm/slub.c:4588
hid_device_release+0x4b/0x50 drivers/hid/hid-core.c:718
device_release+0x96/0x1c0 drivers/base/core.c:-1
kobject_cleanup lib/kobject.c:713 [inline]
kobject_release lib/kobject.c:744 [inline]
kref_put include/linux/kref.h:65 [inline]
kobject_put+0x18a/0x270 lib/kobject.c:761
put_device+0x1f/0x30 drivers/base/core.c:3530
hid_destroy_device+0xe3/0x110 drivers/hid/hid-core.c:2581
usbhid_disconnect+0x9f/0xc0 drivers/hid/usbhid/hid-core.c:1469
usb_unbind_interface+0x212/0x8a0 drivers/usb/core/driver.c:458
__device_release_driver drivers/base/dd.c:1229 [inline]
device_release_driver_internal+0x536/0x7c0 drivers/base/dd.c:1262
device_release_driver+0x19/0x20 drivers/base/dd.c:1285
bus_remove_device+0x2df/0x340 drivers/base/bus.c:531
device_del+0x62e/0xe20 drivers/base/core.c:3610
usb_disable_device+0x3a8/0x750 drivers/usb/core/message.c:1472
usb_disconnect+0x32d/0x870 drivers/usb/core/hub.c:2293
hub_port_connect drivers/usb/core/hub.c:5399 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5700 [inline]
port_event drivers/usb/core/hub.c:5866 [inline]
hub_event+0x19b0/0x43f0 drivers/usb/core/hub.c:5948
process_one_work+0x6c8/0xbb0 kernel/workqueue.c:2328
process_scheduled_works kernel/workqueue.c:2391 [inline]
worker_thread+0xd4c/0x1250 kernel/workqueue.c:2477
kthread+0x3f5/0x4f0 kernel/kthread.c:337
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287

The buggy address belongs to the object at ffff88811aa04000
which belongs to the cache kmalloc-8k of size 8192
The buggy address is located 7552 bytes inside of
8192-byte region [ffff88811aa04000, ffff88811aa06000)
The buggy address belongs to the page:
page:ffffea00046a8000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x11aa00
head:ffffea00046a8000 order:3 compound_mapcount:0 compound_pincount:0
flags: 0x4000000000010200(slab|head|zone=1)
raw: 4000000000010200 dead000000000100 dead000000000122 ffff888100043500
raw: 0000000000000000 0000000000020002 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 0x52a20(GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP), pid 133, ts 4801360946, free_ts 0
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x192/0x1b0 mm/page_alloc.c:2610
prep_new_page+0x1c/0x110 mm/page_alloc.c:2616
get_page_from_freelist+0x2d42/0x2dd0 mm/page_alloc.c:4492
__alloc_pages+0x1a2/0x460 mm/page_alloc.c:5829
alloc_slab_page mm/slub.c:-1 [inline]
allocate_slab mm/slub.c:1937 [inline]
new_slab+0xa0/0x4d0 mm/slub.c:2000
___slab_alloc+0x3ac/0x840 mm/slub.c:3033
__slab_alloc+0x49/0x90 mm/slub.c:3120
slab_alloc_node mm/slub.c:3211 [inline]
slab_alloc mm/slub.c:3255 [inline]
kmem_cache_alloc_trace+0x146/0x270 mm/slub.c:3272
kmalloc include/linux/slab.h:619 [inline]
audit_log_d_path+0xc6/0x240 kernel/audit.c:2173
dump_common_audit_data security/lsm_audit.c:248 [inline]
common_lsm_audit+0x322/0x1670 security/lsm_audit.c:466
slow_avc_audit+0x1c4/0x240 security/selinux/avc.c:802
avc_audit security/selinux/include/avc.h:135 [inline]
avc_has_perm+0x1fb/0x250 security/selinux/avc.c:1193
inode_has_perm security/selinux/hooks.c:1711 [inline]
file_has_perm+0x52d/0x700 security/selinux/hooks.c:1803
match_file+0xc8/0x130 security/selinux/hooks.c:2474
iterate_fd+0x113/0x1e0 fs/file.c:1324
flush_unauthorized_files security/selinux/hooks.c:2511 [inline]
selinux_bprm_committing_creds+0x3df/0x8b0 security/selinux/hooks.c:2540
page_owner free stack trace missing

Memory state around the buggy address:
ffff88811aa05c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88811aa05d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff88811aa05d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff88811aa05e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88811aa05e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
wacom 0003:056A:0084.00C0: hidraw2: USB HID v1.10 Device [HID 056a:0084] on usb-dummy_hcd.4-1/input1
usbhid 5-1:1.2: can't add hid device: -71
usbhid: probe of 5-1:1.2 failed with error -71
usb 5-1: USB disconnect, device number 21
usb 5-1: new high-speed USB device number 22 using dummy_hcd
usb 5-1: New USB device found, idVendor=056a, idProduct=0084, bcdDevice= 1.00
usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: unknown main item tag 0x0
wacom 0003:056A:0084.00C6: hidraw2: USB HID v1.10 Device [HID 056a:0084] on usb-dummy_hcd.4-1/input0
wacom 0003:056A:0084.00CA: hidraw4: USB HID v1.10 Device [HID 056a:0084] on usb-dummy_hcd.4-1/input1
usbhid 5-1:1.2: can't add hid device: -71
usbhid: probe of 5-1:1.2 failed with error -71
usb 5-1: USB disconnect, device number 22
usb 5-1: new high-speed USB device number 23 using dummy_hcd
usb 5-1: New USB device found, idVendor=056a, idProduct=0084, bcdDevice= 1.00
usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: unknown main item tag 0x0
wacom 0003:056A:0084.00D1: hidraw1: USB HID v1.10 Device [HID 056a:0084] on usb-dummy_hcd.4-1/input0
wacom 0003:056A:0084.00D4: hidraw0: USB HID v1.10 Device [HID 056a:0084] on usb-dummy_hcd.4-1/input1
usbhid 5-1:1.2: can't add hid device: -71
usbhid: probe of 5-1:1.2 failed with error -71
usb 5-1: USB disconnect, device number 23
usb 5-1: new high-speed USB device number 24 using dummy_hcd
usb 5-1: New USB device found, idVendor=056a, idProduct=0084, bcdDevice= 1.00
usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: unknown main item tag 0x0
wacom 0003:056A:0084.00DB: hidraw0: USB HID v1.10 Device [HID 056a:0084] on usb-dummy_hcd.4-1/input0
wacom 0003:056A:0084.00DE: hidraw2: USB HID v1.10 Device [HID 056a:0084] on usb-dummy_hcd.4-1/input1
usbhid 5-1:1.2: can't add hid device: -71
usbhid: probe of 5-1:1.2 failed with error -71
usb 5-1: USB disconnect, device number 24
usb 5-1: new high-speed USB device number 25 using dummy_hcd
usb 5-1: New USB device found, idVendor=056a, idProduct=0084, bcdDevice= 1.00
usb 5-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
Reply all
Reply to author
Forward
0 new messages