Re: [PATCH] mm: save current->journal_info before calling fault/page_mkwrite

2017-12-13 Thread Andrew Morton
On Thu, 14 Dec 2017 10:20:18 +0800 "Yan, Zheng" wrote: > >> + /* > >> + * If the fault happens during write_iter() copies data from > >> + * userspace, filesystem may have set current->journal_info. > >> + * If the userspace memory is mapped to a file on another > >> + * filesystem, faul

Re: [PATCH] mm: save current->journal_info before calling fault/page_mkwrite

2017-12-13 Thread Yan, Zheng
> On 14 Dec 2017, at 08:59, Andrew Morton wrote: > > On Wed, 13 Dec 2017 11:58:36 +0800 "Yan, Zheng" wrote: > >> We recently got an Oops report: >> >> BUG: unable to handle kernel NULL pointer dereference at (null) >> IP: jbd2__journal_start+0x38/0x1a2 >> [...] >> Call Trace: >> ext4_page_mk

Re: [PATCH] mm: save current->journal_info before calling fault/page_mkwrite

2017-12-13 Thread Andrew Morton
On Thu, 14 Dec 2017 10:09:58 +0800 "Yan, Zheng" wrote: > > > > On 14 Dec 2017, at 08:59, Andrew Morton wrote: > > > > On Wed, 13 Dec 2017 11:58:36 +0800 "Yan, Zheng" wrote: > > > >> We recently got an Oops report: > >> > >> BUG: unable to handle kernel NULL pointer dereference at (null) >

Re: [PATCH] mm: save current->journal_info before calling fault/page_mkwrite

2017-12-13 Thread Yan, Zheng
> On 14 Dec 2017, at 08:59, Andrew Morton wrote: > > On Wed, 13 Dec 2017 11:58:36 +0800 "Yan, Zheng" wrote: > >> We recently got an Oops report: >> >> BUG: unable to handle kernel NULL pointer dereference at (null) >> IP: jbd2__journal_start+0x38/0x1a2 >> [...] >> Call Trace: >> ext4_page_m

Re: [PATCH] mm: save current->journal_info before calling fault/page_mkwrite

2017-12-13 Thread Andrew Morton
On Wed, 13 Dec 2017 11:58:36 +0800 "Yan, Zheng" wrote: > We recently got an Oops report: > > BUG: unable to handle kernel NULL pointer dereference at (null) > IP: jbd2__journal_start+0x38/0x1a2 > [...] > Call Trace: > ext4_page_mkwrite+0x307/0x52b > _ext4_get_block+0xd8/0xd8 > do_page_mkwr

Re: [PATCH] mm: save current->journal_info before calling fault/page_mkwrite

2017-12-13 Thread Amon Ott
Am 13.12.2017 um 04:58 schrieb Yan, Zheng: > We recently got an Oops report: > > BUG: unable to handle kernel NULL pointer dereference at (null) > IP: jbd2__journal_start+0x38/0x1a2 > [...] > Call Trace: > ext4_page_mkwrite+0x307/0x52b > _ext4_get_block+0xd8/0xd8 > do_page_mkwrite+0x6e/0xd8