Re: [PATCH] PM / hibernate: Fix oops at snapshot_write().

2018-05-29 Thread Rafael J. Wysocki
On Saturday, May 26, 2018 2:59:36 AM CEST Tetsuo Handa wrote: > syzbot is reporting NULL pointer dereference at snapshot_write() [1]. > This is because data->handle is zero-cleared by ioctl(SNAPSHOT_FREE). > Fix this by checking data_of(data->handle) != NULL before using it. > > [1] >

[PATCH] PM / hibernate: Fix oops at snapshot_write().

2018-05-25 Thread Tetsuo Handa
syzbot is reporting NULL pointer dereference at snapshot_write() [1]. This is because data->handle is zero-cleared by ioctl(SNAPSHOT_FREE). Fix this by checking data_of(data->handle) != NULL before using it. [1] https://syzkaller.appspot.com/bug?id=828a3c71bd344a6de8b6a31233d51a72099f27fd