Re: [PATCH] nfc: pn533: Fix null-ptr-deref in pn533_recv_frame()

From: Krzysztof Kozlowski
Date: Wed Apr 24 2024 - 01:39:11 EST


On 22/04/2024 10:04, Yuxuan Hu wrote:
> ? kthread_blkcg+0xa0/0xa0
> ret_from_fork_asm+0x11/0x20
> </TASK>
> Modules linked in: nfcvirt(O) pn533(O) nfc(O) ki_coverage(O) [last unloaded: pn533(O)]
> CR2: 0000000000000014
> ---[ end trace 0000000000000000 ]---
> RIP: 0010:pn533_recv_frame+0x18a/0x1e0 [pn533]
> Code: 43 ff ff ff 48 8b bb 80 02 00 00 48 c7 c6 0b 02 46 c0 31 c0 e8 97 64 4f c4 48 83 bb b0 01 00 00 00 74 3f 48 8b 83 b0 01 00 00 <c7> 40 14 fb ff ff ff 48 8b 83 b0 01 00 00 48 85 c0 0f 85 3b ff ff
> RSP: 0018:ffff88802665fc68 EFLAGS: 00010246
> RAX: 0000000000000000 RBX: ffff88804a13b800 RCX: ad381de3b3cd5e00
> RDX: 1ffff11004ccbf38 RSI: 0000000000000008 RDI: ffff88802665f9e0
> RBP: ffff88804fb25000 R08: ffff88802665f9e7 R09: 1ffff11004ccbf3c
> R10: dffffc0000000000 R11: ffffed1004ccbf3d R12: 0000000000001950
> R13: ffff88804ab80000 R14: ffff888021d22640 R15: ffff88802665fcb0
> FS: 0000000000000000(0000) GS:ffff88806d200000(0000) knlGS:0000000000000000
> CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> CR2: 0000000000000014 CR3: 0000000004ebc000 CR4: 00000000000006f0
>
> Signed-off-by: Yuxuan Hu <yuxuanhu@xxxxxxxxxxx>

Also, please provide here Fixes, Cc:stable and Closes tags.

Best regards,
Krzysztof