Bug 203737
Summary: | JFS: BUG: unable to handle kernel NULL pointer dereference at 0000000000000080 | ||
---|---|---|---|
Product: | File System | Reporter: | midwinter1993 |
Component: | JFS | Assignee: | Dave Kleikamp (shaggy) |
Status: | NEW --- | ||
Severity: | normal | CC: | alexander198961 |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 5.1.3 | Subsystem: | |
Regression: | No | Bisected commit-id: |
Description
midwinter1993
2019-05-28 02:00:37 UTC
I have done some changes and seems it starts working : --- fs/jfs/jfs_logmgr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/jfs/jfs_logmgr.c b/fs/jfs/jfs_logmgr.c index 6b68df3..3cd7026 100644 --- a/fs/jfs/jfs_logmgr.c +++ b/fs/jfs/jfs_logmgr.c @@ -1223,6 +1223,7 @@ static int open_dummy_log(struct super_block *sb) /* Make up some stuff */ dummy_log->base = 0; dummy_log->size = 1024; + dummy_log->bdev = sb->s_bdev; rc = lmLogInit(dummy_log); if (rc) { kfree(dummy_log); maybe reformat patch needed There seems bio_set_dev(bio, bdev) in case bdev is null then we get error |