android_kernel_samsung_sm8650/fs/f2fs
Jaegeuk Kim 46c8cb782a FROMGIT: f2fs: fix null pointer panic in tracepoint in __replace_atomic_write_block
We got a kernel panic if old_addr is NULL.

https://bugzilla.kernel.org/show_bug.cgi?id=217266

BUG: kernel NULL pointer dereference, address: 0000000000000000
 Call Trace:
  <TASK>
  f2fs_commit_atomic_write+0x619/0x990 [f2fs a1b985b80f5babd6f3ea778384908880812bfa43]
  __f2fs_ioctl+0xd8e/0x4080 [f2fs a1b985b80f5babd6f3ea778384908880812bfa43]
  ? vfs_write+0x2ae/0x3f0
  ? vfs_write+0x2ae/0x3f0
  __x64_sys_ioctl+0x91/0xd0
  do_syscall_64+0x5c/0x90
  entry_SYSCALL_64_after_hwframe+0x72/0xdc
 RIP: 0033:0x7f69095fe53f

Bug: 276570882
Fixes: 2f3a9ae990a7 ("f2fs: introduce trace_f2fs_replace_atomic_write_block")
Cc: <stable@vger.kernel.org>
Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
(cherry picked from commit da6ea0b050fa720302b56fbb59307e7c7531a342
https: //git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs.git dev)
Change-Id: I872227fbdda6a7ce1144617550417f5ce9bb6fc7
2023-04-04 15:31:41 -07:00
..
acl.c f2fs: port to vfs{g,u}id_t and associated helpers 2022-10-04 13:31:43 -07:00
acl.h vfs: add rcu argument to ->get_acl() callback 2021-08-18 22:08:24 +02:00
checkpoint.c f2fs: fix typos in comments 2023-02-07 10:54:25 -08:00
compress.c FROMGIT: f2fs: fix scheduling while atomic in decompression path 2023-03-29 21:44:21 +00:00
data.c Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-6.1.y' into android14-6.1 2023-03-15 09:35:23 -07:00
debug.c f2fs: replace si->sbi w/ sbi in stat_show() 2023-02-14 10:12:47 -08:00
dir.c f2fs: merge f2fs_show_injection_info() into time_to_inject() 2023-01-30 16:26:18 -08:00
extent_cache.c FROMGIT: f2fs: remove entire rb_entry sharing 2023-03-21 19:33:50 +00:00
f2fs.h FROMGIT: f2fs: fix scheduling while atomic in decompression path 2023-03-29 21:44:21 +00:00
file.c f2fs: drop unnecessary arg for f2fs_ioc_*() 2023-02-27 14:59:30 -08:00
gc.c FROMGIT: f2fs: factor out victim_entry usage from general rb_tree use 2023-03-21 19:33:50 +00:00
gc.h FROMGIT: f2fs: factor out victim_entry usage from general rb_tree use 2023-03-21 19:33:50 +00:00
hash.c f2fs: don't use casefolded comparison for "." and ".." 2022-05-17 11:19:23 -07:00
inline.c f2fs: fix information leak in f2fs_move_inline_dirents() 2023-03-10 09:34:08 +01:00
inode.c Merge 6.1.16 into android14-6.1 2023-03-13 15:45:34 +00:00
iostat.c f2fs: use iostat_lat_type directly as a parameter in the iostat_update_and_unbind_ctx() 2023-02-07 10:54:25 -08:00
iostat.h f2fs: use iostat_lat_type directly as a parameter in the iostat_update_and_unbind_ctx() 2023-02-07 10:54:25 -08:00
Kconfig f2fs: introduce F2FS_UNFAIR_RWSEM to support unfair rwsem 2022-03-04 09:15:53 -08:00
Makefile f2fs: separate out iostat feature 2021-08-23 10:25:51 -07:00
namei.c f2fs: fix typos in comments 2023-02-07 10:54:25 -08:00
node.c f2fs: reduce stack memory cost by using bitfield in struct f2fs_io_info 2023-02-02 13:40:33 -08:00
node.h f2fs: add block_age-based extent cache 2022-12-19 11:05:25 -08:00
OWNERS ANDROID: OWNERS: add f2fs-related files 2021-03-18 21:10:53 +00:00
recovery.c f2fs: do some cleanup for f2fs module init 2022-12-19 11:05:24 -08:00
segment.c FROMGIT: f2fs: fix null pointer panic in tracepoint in __replace_atomic_write_block 2023-04-04 15:31:41 -07:00
segment.h f2fs: fix wrong segment count 2023-02-14 10:12:47 -08:00
shrinker.c f2fs: add block_age-based extent cache 2022-12-19 11:05:25 -08:00
super.c FROMGIT: f2fs: fix scheduling while atomic in decompression path 2023-03-29 21:44:21 +00:00
sysfs.c f2fs: make kobj_type structures constant 2023-02-13 10:11:25 -08:00
verity.c fsverity: pass pos and size to ->write_merkle_tree_block 2023-02-27 19:45:03 -08:00
xattr.c f2fs: support recording errors into superblock 2022-10-04 13:31:45 -07:00
xattr.h f2fs: code cleanup by removing ifdef macro surrounding 2020-05-26 18:56:10 -07:00