PN533 RX: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
PN533 RX: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
PN533 RX: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
BUG: KASAN: slab-out-of-bounds in hex_dump_to_buffer+0x36c/0xd70 lib/hexdump.c:194
Read of size 1 at addr ffff888021391cc0 by task syz.5.362/7179
CPU: 1 UID: 0 PID: 7179 Comm: syz.5.362 Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026
Call Trace:
dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
print_address_description+0x55/0x1e0 mm/kasan/report.c:378
print_report+0x58/0x70 mm/kasan/report.c:482
kasan_report+0x117/0x150 mm/kasan/report.c:595
hex_dump_to_buffer+0x36c/0xd70 lib/hexdump.c:194
print_hex_dump+0x16b/0x2b0 lib/hexdump.c:277
pn533_recv_frame+0x5f6/0x6d0 drivers/nfc/pn533/pn533.c:2202
__usb_hcd_giveback_urb+0x378/0x540 drivers/usb/core/hcd.c:1659
dummy_timer+0xa9a/0x4ce0 drivers/usb/gadget/udc/dummy_hcd.c:2051
__run_hrtimer kernel/time/hrtimer.c:2109 [inline]
__hrtimer_run_queues+0x3bc/0xa10 kernel/time/hrtimer.c:2166
hrtimer_run_softirq+0x1e3/0x2e0 kernel/time/hrtimer.c:2183
handle_softirqs+0x265/0x8d0 kernel/softirq.c:669
__do_softirq kernel/softirq.c:703 [inline]
invoke_softirq kernel/softirq.c:542 [inline]
__irq_exit_rcu+0xce/0x250 kernel/softirq.c:794
irq_exit_rcu+0x9/0x30 kernel/softirq.c:817
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1073 [inline]
sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1073
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
RIP: 0010:__raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:211 [inline]
RIP: 0010:_raw_spin_unlock_irqrestore+0x47/0x80 kernel/locking/spinlock.c:221
Code: f7 e8 5d a5 6c f5 f7 c3 00 02 00 00 74 05 e8 50 77 99 f5 9c 58 a9 00 02 00 00 75 29 f7 c3 00 02 00 00 74 01 fb bf 01 00 00 00 34 88 5d f5 65 48 8b 05 fc 66 fa 08 48 85 c0 74 18 5b 41 5e e9
RSP: 0018:ffffc90002e77b98 EFLAGS: 00000206
RAX: 0000000000000006 RBX: 0000000000000246 RCX: 8000000000000001
RDX: 0000000000000000 RSI: ffffffff8ea351c4 RDI: 0000000000000001
RBP: 0000000000000001 R08: ffffffff9201c7bf R09: 1ffffffff24038f7
R10: dffffc0000000000 R11: fffffbfff24038f8 R12: 000000000000c350
R13: dffffc0000000000 R14: ffff8880b8328740 R15: 0000000000000246
unlock_hrtimer_base kernel/time/hrtimer.c:1043 [inline]
hrtimer_start_range_ns_user+0x2ba/0x430 kernel/time/hrtimer.c:1660
hrtimer_start_expires_user include/linux/hrtimer.h:271 [inline]
hrtimer_sleeper_start_expires kernel/time/hrtimer.c:2395 [inline]
do_nanosleep+0x17a/0x710 kernel/time/hrtimer.c:2472
hrtimer_nanosleep+0x18f/0x3a0 kernel/time/hrtimer.c:2521
__do_sys_clock_nanosleep kernel/time/posix-timers.c:1419 [inline]
__se_sys_clock_nanosleep+0x35b/0x3b0 kernel/time/posix-timers.c:1396
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x00007f72e336a38e
Code: 08 0f 85 a5 a8 ff ff 49 89 fb 48 89 f0 48 89 d7 48 89 ce 4c 89 c2 4d 89 ca 4c 8b 44 24 08 4c 8b 4c 24 10 4c 89 5c 24 08 0f 05 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 80 00 00 00 00 48 83 ec 08
RSP: 002b:00007f72e433ef38 EFLAGS: 00000246 ORIG_RAX: 00000000000000e6
RAX: ffffffffffffffda RBX: 00007f72e43406c0 RCX: 00007f72e336a38e
RDX: 00007f72e433ef90 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000004 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000000380
R13: 0000000000000000 R14: 00007f72e3635fa0 R15: 00007ffc9b8b3788
Allocated by task 7179:
kasan_save_stack mm/kasan/common.c:57 [inline]
kasan_save_track+0x3f/0x90 mm/kasan/common.c:79
unpoison_slab_object mm/kasan/common.c:354 [inline]
__kasan_slab_alloc+0x6c/0x80 mm/kasan/common.c:380
kasan_slab_alloc include/linux/kasan.h:257 [inline]
slab_post_alloc_hook mm/slub.c:4757 [inline]
slab_alloc_node mm/slub.c:5071 [inline]
kmem_cache_alloc_node_noprof+0x353/0x620 mm/slub.c:5143
kmalloc_reserve+0x139/0x260 net/core/skbuff.c:628
__alloc_skb+0x219/0x680 net/core/skbuff.c:737
alloc_skb include/linux/skbuff.h:1398 [inline]
pn533_recv_response+0xc4/0x230 drivers/nfc/pn533/usb.c:65
__usb_hcd_giveback_urb+0x378/0x540 drivers/usb/core/hcd.c:1659
dummy_timer+0xa9a/0x4ce0 drivers/usb/gadget/udc/dummy_hcd.c:2051
__run_hrtimer kernel/time/hrtimer.c:2109 [inline]
__hrtimer_run_queues+0x3bc/0xa10 kernel/time/hrtimer.c:2166
hrtimer_run_softirq+0x1e3/0x2e0 kernel/time/hrtimer.c:2183
handle_softirqs+0x265/0x8d0 kernel/softirq.c:669
__do_softirq kernel/softirq.c:703 [inline]
invoke_softirq kernel/softirq.c:542 [inline]
__irq_exit_rcu+0xce/0x250 kernel/softirq.c:794
irq_exit_rcu+0x9/0x30 kernel/softirq.c:817
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1073 [inline]
sysvec_apic_timer_interrupt+0xa6/0xc0 arch/x86/kernel/apic/apic.c:1073
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
The buggy address belongs to the object at ffff888021391a00
which belongs to the cache skbuff_small_head of size 704
The buggy address is located 0 bytes to the right of
allocated 704-byte region [ffff888021391a00, ffff888021391cc0)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffff888021392700 pfn:0x21390
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000240(workingset|head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000240 ffff888140538dc0 ffff88801d5afe88 ffffea0001715d10
raw: ffff888021392700 000000020013000d 00000000f5000000 0000000000000000
head: 00fff00000000240 ffff888140538dc0 ffff88801d5afe88 ffffea0001715d10
head: ffff888021392700 000000020013000d 00000000f5000000 0000000000000000
head: 00fff00000000002 ffffffffffffff01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 6953, tgid 6953 (syz-executor), ts 423691944555
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0x1f9/0x250 mm/page_alloc.c:1871
prep_new_page+0x22/0xb0 mm/page_alloc.c:1879
get_page_from_freelist+0x24ef/0x2530 mm/page_alloc.c:4009
__alloc_frozen_pages_noprof+0x211/0x450 mm/page_alloc.c:5555
alloc_slab_page mm/slub.c:3423 [inline]
allocate_slab+0x7d/0x5e0 mm/slub.c:3538
new_slab mm/slub.c:3589 [inline]
refill_objects+0x2d5/0x350 mm/slub.c:7578
refill_sheaf mm/slub.c:2953 [inline]
__pcs_replace_empty_main+0x2c8/0x6c0 mm/slub.c:4849
alloc_from_pcs mm/slub.c:4925 [inline]
slab_alloc_node mm/slub.c:5059 [inline]
kmem_cache_alloc_node_noprof+0x43d/0x620 mm/slub.c:5143
kmalloc_reserve+0x139/0x260 net/core/skbuff.c:628
__alloc_skb+0x219/0x680 net/core/skbuff.c:737
alloc_skb include/linux/skbuff.h:1398 [inline]
nlmsg_new include/net/netlink.h:1055 [inline]
netlink_ack+0x136/0xb30 net/netlink/af_netlink.c:2522
netlink_rcv_skb+0x2a4/0x4a0 net/netlink/af_netlink.c:2591
netlink_unicast_kernel net/netlink/af_netlink.c:1336 [inline]
netlink_unicast+0x8ef/0xa80 net/netlink/af_netlink.c:1362
netlink_sendmsg+0x7f0/0xb20 net/netlink/af_netlink.c:1921
sock_sendmsg_nosec+0x14e/0x190 net/socket.c:800
__sock_sendmsg net/socket.c:818 [inline]
__sys_sendto+0x408/0x5a0 net/socket.c:2283
page last free pid 5004 tgid 5004 ts 402243425013 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1413 [inline]
__free_frozen_pages+0xd1a/0xe10 mm/page_alloc.c:2969
__slab_free+0x269/0x2c0 mm/slub.c:5964
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x99/0x100 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x148/0x160 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x22/0x80 mm/kasan/common.c:364
kasan_slab_alloc include/linux/kasan.h:257 [inline]
slab_post_alloc_hook mm/slub.c:4757 [inline]
slab_alloc_node mm/slub.c:5071 [inline]
__do_kmalloc_node mm/slub.c:5568 [inline]
__kmalloc_node_track_caller_noprof+0x446/0x720 mm/slub.c:5700
__do_krealloc mm/slub.c:7107 [inline]
krealloc_node_align_noprof+0x19a/0x390 mm/slub.c:7128
ima_collect_measurement+0x725/0xb40 security/integrity/ima/ima_api.c:316
process_measurement+0x133c/0x1c60 security/integrity/ima/ima_main.c:427
ima_file_check+0xdc/0x130 security/integrity/ima/ima_main.c:688
security_file_post_open+0xb3/0x260 security/security.c:2785
do_open fs/namei.c:4963 [inline]
path_openat+0x179e/0x20e0 fs/namei.c:5126
do_file_open+0x23e/0x4a0 fs/namei.c:5155
do_sys_openat2+0x115/0x200 fs/open.c:1496
do_sys_open fs/open.c:1502 [inline]
__do_sys_openat fs/open.c:1518 [inline]
__se_sys_openat fs/open.c:1513 [inline]
__x64_sys_openat+0x138/0x170 fs/open.c:1513
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x171/0x540 arch/x86/entry/syscall_64.c:89
Memory state around the buggy address:
ffff888021391b80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff888021391c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888021391c80: 00 00 00 00 00 00 00 00 fc fc fc fc fc fc fc fc
^
ffff888021391d00: fc fc fc fc fc fc fc fc fa fb fb fb fb fb fb fb
ffff888021391d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
----------------
Code disassembly (best guess):
0: f7 e8 imul %eax
2: 5d pop %rbp
3: a5 movsl %ds:(%rsi),%es:(%rdi)
4: 6c insb (%dx),%es:(%rdi)
5: f5 cmc
6: f7 c3 00 02 00 00 test $0x200,%ebx
c: 74 05 je 0x13
e: e8 50 77 99 f5 call 0xf5997763
13: 9c pushf
14: 58 pop %rax
15: a9 00 02 00 00 test $0x200,%eax
1a: 75 29 jne 0x45
1c: f7 c3 00 02 00 00 test $0x200,%ebx
22: 74 01 je 0x25
24: fb sti
25: bf 01 00 00 00 mov $0x1,%edi
* 2a: e8 34 88 5d f5 call 0xf55d8863 <-- trapping instruction
2f: 65 48 8b 05 fc 66 fa mov %gs:0x8fa66fc(%rip),%rax # 0x8fa6733
36: 08
37: 48 85 c0 test %rax,%rax
3a: 74 18 je 0x54
3c: 5b pop %rbx
3d: 41 5e pop %r14
3f: e9 .byte 0xe9