Bug 9024 - i2c: smbus:NULL function pointer dereference
Summary: i2c: smbus:NULL function pointer dereference
Status: NEW
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: drivers (show other bugs) drivers
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: GuixinLiu
QA Contact: shuming
URL:
Whiteboard:
Keywords: Bugfix
Depends on:
Blocks:
 
Reported: 2024-05-14 18:11 UTC by caulif
Modified: 2024-05-26 22:07 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description caulif 2024-05-14 18:11:54 UTC
Description of problem:
Running i2cdetect on i2c slave device (i2c-designware) results in a kernel NULL pointer dereference, causing an internal error and crash.

Version-Release number of selected component (if applicable):
6.9.0-rc3-yocto-standard+

How reproducible:
Always

Steps to Reproduce:

Run i2cdetect on an i2c slave device using i2c-designware.
Actual results:
Kernel NULL pointer dereference at virtual address 0000000000000000, resulting in an internal error and system crash.

Expected results:
i2cdetect runs without causing a kernel NULL pointer dereference and does not crash the system.

Additional info:
Callers of __i2c_transfer() must verify that master_xfer is not NULL.
Comment 1 小龙 admin 2024-05-14 19:45:49 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3175
Comment 2 小龙 admin 2024-05-26 22:07:57 UTC
The PR Link: https://gitee.com/anolis/cloud-kernel/pulls/3270